Skip to content

Commit d744fdd

Browse files
authored
Merge pull request #6315 from KCFindstr/main
Fix completionComplexEdit: Use fsPath instead of path
2 parents 5dc0e22 + f5f07ef commit d744fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lsptoolshost/commands.ts

+1-1
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)