Skip to content

Commit ec56f20

Browse files
authored
Prompt for sign in from the Sessions view (#7630)
and add a "start a coding agent" button Part of #7614
1 parent 3546591 commit ec56f20

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,6 +1850,16 @@
18501850
"view": "notifications:github",
18511851
"when": "ReposManagerStateContext == RepositoriesLoaded && github:notificationCount == -1",
18521852
"contents": "%welcome.github.notifications.contents%"
1853+
},
1854+
{
1855+
"view": "workbench.view.chat.sessions.copilot-swe-agent",
1856+
"when": "ReposManagerStateContext == NeedsAuthentication && github:hasGitHubRemotes",
1857+
"contents": "%welcome.chat.sessions.copilot-swe-agent.login.contents%"
1858+
},
1859+
{
1860+
"view": "workbench.view.chat.sessions.copilot-swe-agent",
1861+
"when": "ReposManagerStateContext != NeedsAuthentication && github:hasGitHubRemotes",
1862+
"contents": "%welcome.chat.sessions.copilot-swe-agent.startSession.contents%"
18531863
}
18541864
],
18551865
"keybindings": [

package.nls.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,20 @@
378378
"welcome.issues.github.noFolder.contents": "You have not yet opened a folder.",
379379
"welcome.issues.github.noRepo.contents": "No git repositories found",
380380
"welcome.github.activePullRequest.contents": "Loading...",
381+
"welcome.chat.sessions.copilot-swe-agent.login.contents": {
382+
"message": "Sign in to get started with Copilot coding agent\n[Sign in](command:pr.signin)",
383+
"comment": [
384+
"Do not translate what's inside of (...). It is link syntax.",
385+
"{Locked='](command:pr.signin)'}"
386+
]
387+
},
388+
"welcome.chat.sessions.copilot-swe-agent.startSession.contents": {
389+
"message": "No Copilot coding agent sessions\n[Start a coding session](command:workbench.action.chat.open?%7B%22query%22%3A%22%23copilotCodingAgent%20%22%2C%22isPartialQuery%22%3Atrue%7D)",
390+
"comment": [
391+
"Do not translate what's inside of (...). It is link syntax.",
392+
"{Locked='](command:workbench.action.chat.open?%7B%22query%22%3A%22%23copilotCodingAgent%20%22%2C%22isPartialQuery%22%3Atrue%7D)'}"
393+
]
394+
},
381395
"languageModelTools.github-pull-request_issue_fetch.displayName": "Get a GitHub Issue or PR",
382396
"languageModelTools.github-pull-request_issue_summarize.displayName": "Summarize a GitHub Issue or PR",
383397
"languageModelTools.github-pull-request_notification_fetch.displayName": "Get a GitHub Notification",

0 commit comments

Comments
 (0)