diff --git a/src/lsptoolshost/commands.ts b/src/lsptoolshost/commands.ts index b70c726a3..c4652dd5d 100644 --- a/src/lsptoolshost/commands.ts +++ b/src/lsptoolshost/commands.ts @@ -103,7 +103,7 @@ async function completionComplexEdit( ): Promise { let success = false; const uri = UriConverter.deserialize(uriStr); - const editor = vscode.window.visibleTextEditors.find((editor) => editor.document.uri.path === uri.path); + const editor = vscode.window.visibleTextEditors.find((editor) => editor.document.uri.fsPath === uri.fsPath); if (editor !== undefined) { const newRange = editor.document.validateRange(