Skip to content

Commit f496271

Browse files
filter only worktrees for open command (microsoft#257933)
1 parent 74b360a commit f496271

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/git/src/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3640,7 +3640,7 @@ export class CommandCenter {
36403640
}
36413641
}
36423642

3643-
@command('git.openWorktree', { repository: true })
3643+
@command('git.openWorktree', { repository: true, repositoryFilter: ['worktree'] })
36443644
async openWorktreeInCurrentWindow(repository: Repository): Promise<void> {
36453645
if (!repository) {
36463646
return;
@@ -3650,7 +3650,7 @@ export class CommandCenter {
36503650
await commands.executeCommand('vscode.openFolder', uri, { forceReuseWindow: true });
36513651
}
36523652

3653-
@command('git.openWorktreeInNewWindow', { repository: true })
3653+
@command('git.openWorktreeInNewWindow', { repository: true, repositoryFilter: ['worktree'] })
36543654
async openWorktreeInNewWindow(repository: Repository): Promise<void> {
36553655
if (!repository) {
36563656
return;

0 commit comments

Comments
 (0)