Use uri instead of string

This commit is contained in:
Matt Bierner 2022-04-20 17:43:02 -07:00
parent b438e8438d
commit 62eebab685
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -22,8 +22,8 @@ export interface MdReferencesResponse {
}
interface MdFileRenameEdit {
readonly from: string;
readonly to: string;
readonly from: vscode.Uri;
readonly to: vscode.Uri;
}
/**
@ -161,7 +161,7 @@ export class MdRenameProvider extends Disposable implements vscode.RenameProvide
}
// First rename the file
fileRenames.push({ from: targetUri.toString(), to: resolvedNewFilePath.toString() });
fileRenames.push({ from: targetUri, to: resolvedNewFilePath });
edit.renameFile(targetUri, resolvedNewFilePath);
// Then update all refs to it