mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
SCM - worktree context menu improvements (#257242)
This commit is contained in:
@@ -3482,9 +3482,8 @@ export class CommandCenter {
|
||||
}
|
||||
|
||||
@command('git.openWorktree', { repository: true })
|
||||
async openWorktreeInCurrentWindow(repository: Repository, ...args: SourceControl[]): Promise<void> {
|
||||
// If multiple repositories are selected, no action is taken
|
||||
if (args.length > 0) {
|
||||
async openWorktreeInCurrentWindow(repository: Repository): Promise<void> {
|
||||
if (!repository) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3493,9 +3492,8 @@ export class CommandCenter {
|
||||
}
|
||||
|
||||
@command('git.openWorktreeInNewWindow', { repository: true })
|
||||
async openWorktreeInNewWindow(repository: Repository, ...args: SourceControl[]): Promise<void> {
|
||||
// If multiple repositories are selected, no action is taken
|
||||
if (args.length > 0) {
|
||||
async openWorktreeInNewWindow(repository: Repository): Promise<void> {
|
||||
if (!repository) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user