Fix new path suggestion for move to file (#183474)

Turns our `newFileName` is actually a path :)
This commit is contained in:
Matt Bierner 2023-05-25 15:29:58 -07:00 committed by GitHub
parent 049ee36265
commit 710d6ea32c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,7 @@ class MoveToFileRefactorCommand implements Command {
if (response.type !== 'response' || !response.body) {
return;
}
const defaultUri = vscode.Uri.joinPath(Utils.dirname(document.uri), response.body.newFileName);
const defaultUri = this.client.toResource(response.body.newFileName);
const selectExistingFileItem: vscode.QuickPickItem = {
label: vscode.l10n.t("Select existing file..."),