mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix new path suggestion for move to file (#183474)
Turns our `newFileName` is actually a path :)
This commit is contained in:
parent
049ee36265
commit
710d6ea32c
|
@ -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..."),
|
||||
|
|
Loading…
Reference in a new issue