Skip to content

Commit 710d6ea

Browse files
authored
Fix new path suggestion for move to file (microsoft#183474)
Turns our `newFileName` is actually a path :)
1 parent 049ee36 commit 710d6ea

File tree

1 file changed

+1
-1
lines changed
  • extensions/typescript-language-features/src/languageFeatures

1 file changed

+1
-1
lines changed

extensions/typescript-language-features/src/languageFeatures/refactor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class MoveToFileRefactorCommand implements Command {
175175
if (response.type !== 'response' || !response.body) {
176176
return;
177177
}
178-
const defaultUri = vscode.Uri.joinPath(Utils.dirname(document.uri), response.body.newFileName);
178+
const defaultUri = this.client.toResource(response.body.newFileName);
179179

180180
const selectExistingFileItem: vscode.QuickPickItem = {
181181
label: vscode.l10n.t("Select existing file..."),

0 commit comments

Comments
 (0)