Git - when doing a git rename close the old file and open the new one (#238368)
parent
d24b8fb490
commit
15006ee21f
|
@ -1341,6 +1341,10 @@ export class CommandCenter {
|
|||
}
|
||||
|
||||
await repository.move(from, to);
|
||||
|
||||
// Close active editor and open the renamed file
|
||||
await commands.executeCommand('workbench.action.closeActiveEditor');
|
||||
await commands.executeCommand('vscode.open', Uri.file(path.join(repository.root, to)), { viewColumn: ViewColumn.Active });
|
||||
}
|
||||
|
||||
@command('git.stage')
|
||||
|
|
Loading…
Reference in New Issue