Skip to content

Commit 2ec8536

Browse files
authored
More welcome view states in the Chat Sessions view (#7772)
Fixes #259285
1 parent 0002eff commit 2ec8536

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,6 +1885,21 @@
18851885
"when": "ReposManagerStateContext == RepositoriesLoaded && github:notificationCount == -1",
18861886
"contents": "%welcome.github.notifications.contents%"
18871887
},
1888+
{
1889+
"view": "workbench.view.chat.sessions.copilot-swe-agent",
1890+
"when": "workspaceFolderCount == 0",
1891+
"contents": "%welcome.pr.github.noFolder.contents%"
1892+
},
1893+
{
1894+
"view": "workbench.view.chat.sessions.copilot-swe-agent",
1895+
"when": "git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 0",
1896+
"contents": "%welcome.pr.github.noRepo.contents%"
1897+
},
1898+
{
1899+
"view": "workbench.view.chat.sessions.copilot-swe-agent",
1900+
"when": "git.state == initialized && workspaceFolderCount > 0 && (git.parentRepositoryCount > 0 || gitOpenRepositoryCount > 0) && !github:hasGitHubRemotes",
1901+
"contents": "%welcome.chat.sessions.copilot-swe-agent.noGitHub.contents%"
1902+
},
18881903
{
18891904
"view": "workbench.view.chat.sessions.copilot-swe-agent",
18901905
"when": "ReposManagerStateContext == NeedsAuthentication && github:hasGitHubRemotes",

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@
397397
"{Locked='](command:workbench.action.chat.open?%7B%22query%22%3A%22%23copilotCodingAgent%20%22%2C%22isPartialQuery%22%3Atrue%7D)'}"
398398
]
399399
},
400+
"welcome.chat.sessions.copilot-swe-agent.noGitHub.contents": "Clone or open a GitHub repository to get started",
400401
"languageModelTools.github-pull-request_issue_fetch.displayName": "Get a GitHub Issue or pull request",
401402
"languageModelTools.github-pull-request_issue_summarize.displayName": "Summarize a GitHub Issue or pull request",
402403
"languageModelTools.github-pull-request_notification_fetch.displayName": "Get a GitHub Notification",

0 commit comments

Comments
 (0)