mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 07:47:23 +01:00
add openPullRequest command and update related logic in GitHub extension
This commit is contained in:
@@ -74,6 +74,11 @@
|
||||
"command": "github.createPullRequest",
|
||||
"title": "%command.createPullRequest%",
|
||||
"icon": "$(git-pull-request)"
|
||||
},
|
||||
{
|
||||
"command": "github.openPullRequest",
|
||||
"title": "%command.openPullRequest%",
|
||||
"icon": "$(git-pull-request)"
|
||||
}
|
||||
],
|
||||
"continueEditSession": [
|
||||
@@ -95,6 +100,10 @@
|
||||
"command": "github.createPullRequest",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "github.openPullRequest",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "github.graph.openOnGitHub",
|
||||
"when": "false"
|
||||
@@ -179,7 +188,13 @@
|
||||
"command": "github.createPullRequest",
|
||||
"group": "navigation",
|
||||
"order": 1,
|
||||
"when": "isSessionsWindow && agentSessionHasChanges && chatSessionType == copilotcli"
|
||||
"when": "isSessionsWindow && agentSessionHasChanges && chatSessionType == copilotcli && !github.hasOpenPullRequest"
|
||||
},
|
||||
{
|
||||
"command": "github.openPullRequest",
|
||||
"group": "navigation",
|
||||
"order": 1,
|
||||
"when": "isSessionsWindow && agentSessionHasChanges && chatSessionType == copilotcli && github.hasOpenPullRequest"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user