Skip to content

Commit

Permalink
Fix completionComplexEdit: Use fsPath instead of path
Browse files Browse the repository at this point in the history
  • Loading branch information
KCFindstr committed Sep 8, 2023
1 parent 06b7116 commit f5f07ef
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 f5f07ef

Please sign in to comment.