Skip to content

Commit

Permalink
Merge pull request #6315 from KCFindstr/main
Browse files Browse the repository at this point in the history
Fix completionComplexEdit: Use fsPath instead of path
  • Loading branch information
genlu authored Sep 8, 2023
2 parents 5dc0e22 + f5f07ef commit d744fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lsptoolshost/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function completionComplexEdit(
): Promise<void> {
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(
Expand Down

0 comments on commit d744fdd

Please sign in to comment.