Commit 0539406
committed
Send document Uri instead of path for extension command execution
This change fixes an issue which causes the language server to crash
when running a registered $psEditor command from within an untitled
file. This happens because the workspace code in the language server
expects to receive Uri paths instead of local file paths when referring
to an editor buffer. The fix is to send the untitled file's Uri instead
of its non-existent file path.
Resolves #810.
Resolves PowerShell/PowerShellEditorServices #434.1 parent b5c0abe commit 0539406
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
0 commit comments