Skip to content

Commit f5f07ef

Browse files
committed
Fix completionComplexEdit: Use fsPath instead of path
1 parent 06b7116 commit f5f07ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lsptoolshost/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function completionComplexEdit(
103103
): Promise<void> {
104104
let success = false;
105105
const uri = UriConverter.deserialize(uriStr);
106-
const editor = vscode.window.visibleTextEditors.find((editor) => editor.document.uri.path === uri.path);
106+
const editor = vscode.window.visibleTextEditors.find((editor) => editor.document.uri.fsPath === uri.fsPath);
107107

108108
if (editor !== undefined) {
109109
const newRange = editor.document.validateRange(

0 commit comments

Comments
 (0)