mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Fix new path suggestion for move to file (#183474)
Turns our `newFileName` is actually a path :)
This commit is contained in:
@@ -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..."),
|
||||
|
||||
Reference in New Issue
Block a user