Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,12 @@
"category": "%command.pull.request.category%",
"icon": "$(cloud)"
},
{
"command": "pr.pickInWorktree",
"title": "%command.pr.pickInWorktree.title%",
"category": "%command.pull.request.category%",
"icon": "$(folder-library)"
},
{
"command": "pr.exit",
"title": "%command.pr.exit.title%",
Expand Down Expand Up @@ -2059,6 +2065,10 @@
"command": "pr.pickOnCodespaces",
"when": "false"
},
{
"command": "pr.pickInWorktree",
"when": "false"
},
{
"command": "pr.exit",
"when": "github:inReviewMode"
Expand Down Expand Up @@ -2857,6 +2867,11 @@
"when": "view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && (!isWeb || remoteName != codespaces && virtualWorkspace != vscode-vfs)",
"group": "1_pullrequest@3"
},
{
"command": "pr.pickInWorktree",
"when": "view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && !isWeb",
"group": "1_pullrequest@4"
},
{
"command": "pr.openChanges",
"when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/",
Expand Down
1 change: 1 addition & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
"command.pr.openChanges.title": "Open Changes",
"command.pr.pickOnVscodeDev.title": "Checkout Pull Request on vscode.dev",
"command.pr.pickOnCodespaces.title": "Checkout Pull Request on Codespaces",
"command.pr.pickInWorktree.title": "Checkout Pull Request in Worktree",
"command.pr.exit.title": "Checkout Default Branch",
"command.pr.dismissNotification.title": "Dismiss Notification",
"command.pr.markAllCopilotNotificationsAsRead.title": "Dismiss All Copilot Notifications",
Expand Down
3 changes: 3 additions & 0 deletions src/@types/git.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ export interface Repository {
applyStash(index?: number): Promise<void>;
popStash(index?: number): Promise<void>;
dropStash(index?: number): Promise<void>;

createWorktree(options?: { path?: string; commitish?: string; branch?: string }): Promise<string>;
deleteWorktree(path: string, options?: { force?: boolean }): Promise<void>;
}

export interface RemoteSource {
Expand Down
2 changes: 0 additions & 2 deletions src/@types/vscode.proposed.chatContextProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ declare module 'vscode' {
/**
* An optional command that is executed when the context item is clicked.
* The original context item will be passed as the first argument to the command.
* The original context item will be passed as the first argument to the command.
*/
command?: Command;
}
Expand Down Expand Up @@ -158,7 +157,6 @@ declare module 'vscode' {
* `resolveChatContext` is only called for items that do not have a `value`.
*
* Called when the resource is a webview or a text editor.
* Called when the resource is a webview or a text editor.
*
* @param options Options include the resource for which to provide context.
* @param token A cancellation token.
Expand Down
Loading
Loading