From f5f07ef912e38e274284784fee0cdf223872e666 Mon Sep 17 00:00:00 2001 From: KCFindstr <792491320@qq.com> Date: Fri, 8 Sep 2023 01:19:16 -0700 Subject: [PATCH] Fix completionComplexEdit: Use fsPath instead of path --- src/lsptoolshost/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(