From 92654c3c7bd9e06f2f7575fa5d3820447898ba10 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Tue, 1 Sep 2026 12:31:13 +0200 Subject: [PATCH 1/6] Enable for agents window --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 683a0c574a..a9938b92e0 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "enabledApiProposals": [ "activeComment", + "agentsWindowActivation", "chatContextProvider", "chatParticipantAdditions", "chatParticipantPrivate", @@ -74,7 +75,10 @@ "untrustedWorkspaces": { "supported": true }, - "virtualWorkspaces": true + "virtualWorkspaces": true, + "agentsWindow": { + "supported": true + } }, "contributes": { "chatContext": [ From 09c22d493eaa0c0eacf51811999ae893976059ae Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Tue, 1 Sep 2026 17:29:07 +0200 Subject: [PATCH 2/6] Disable all the things that we don't support in the Agents window --- package.json | 518 +++++++++++++++++++++++++++------------------------ 1 file changed, 271 insertions(+), 247 deletions(-) diff --git a/package.json b/package.json index a9938b92e0..a4e3fee0cd 100644 --- a/package.json +++ b/package.json @@ -925,27 +925,27 @@ { "id": "github:login", "name": "%view.github.login.name%", - "when": "ReposManagerStateContext == NeedsAuthentication", + "when": "(ReposManagerStateContext == NeedsAuthentication) && !isSessionsWindow", "icon": "$(git-pull-request)" }, { "id": "pr:github", "name": "%view.pr.github.name%", - "when": "ReposManagerStateContext != NeedsAuthentication && !github:resolvingConflicts", + "when": "(ReposManagerStateContext != NeedsAuthentication && !github:resolvingConflicts) && !isSessionsWindow", "icon": "$(github-inverted)", "accessibilityHelpContent": "%view.pr.github.accessibilityHelpContent%" }, { "id": "issues:github", "name": "%view.issues.github.name%", - "when": "ReposManagerStateContext != NeedsAuthentication && !github:resolvingConflicts", + "when": "(ReposManagerStateContext != NeedsAuthentication && !github:resolvingConflicts) && !isSessionsWindow", "icon": "$(issues)", "accessibilityHelpContent": "%view.pr.github.accessibilityHelpContent%" }, { "id": "notifications:github", "name": "%view.notifications.github.name%", - "when": "ReposManagerStateContext != NeedsAuthentication && !github:resolvingConflicts && (remoteName != codespaces || !isWeb)", + "when": "(ReposManagerStateContext != NeedsAuthentication && !github:resolvingConflicts && (remoteName != codespaces || !isWeb)) && !isSessionsWindow", "icon": "$(bell)", "accessibilityHelpContent": "%view.pr.github.accessibilityHelpContent%", "visibility": "collapsed" @@ -953,7 +953,7 @@ { "id": "github:conflictResolution", "name": "%view.github.conflictResolution.name%", - "when": "github:resolvingConflicts", + "when": "(github:resolvingConflicts) && !isSessionsWindow", "icon": "$(git-merge)" } ], @@ -962,7 +962,7 @@ "id": "github:createPullRequestWebview", "type": "webview", "name": "%view.github.create.pull.request.name%", - "when": "github:createPullRequest || github:revertPullRequest", + "when": "(github:createPullRequest || github:revertPullRequest) && !isSessionsWindow", "icon": "$(git-pull-request-create)", "visibility": "visible", "initialSize": 2 @@ -970,7 +970,7 @@ { "id": "github:compareChangesFiles", "name": "%view.github.compare.changes.name%", - "when": "github:createPullRequest", + "when": "(github:createPullRequest) && !isSessionsWindow", "icon": "$(git-compare)", "visibility": "visible", "initialSize": 1 @@ -978,7 +978,7 @@ { "id": "github:compareChangesCommits", "name": "%view.github.compare.changesCommits.name%", - "when": "github:createPullRequest", + "when": "(github:createPullRequest) && !isSessionsWindow", "icon": "$(git-compare)", "visibility": "visible", "initialSize": 1 @@ -986,7 +986,7 @@ { "id": "prStatus:github", "name": "%view.pr.status.github.name%", - "when": "github:inReviewMode && !github:createPullRequest && !github:revertPullRequest", + "when": "(github:inReviewMode && !github:createPullRequest && !github:revertPullRequest) && !isSessionsWindow", "icon": "$(diff-multiple)", "visibility": "visible", "initialSize": 3 @@ -995,14 +995,14 @@ "id": "github:activePullRequest", "type": "webview", "name": "%view.github.active.pull.request.name%", - "when": "github:inReviewMode && github:focusedReview && !github:createPullRequest && !github:revertPullRequest && github:activePRCount <= 1", + "when": "(github:inReviewMode && github:focusedReview && !github:createPullRequest && !github:revertPullRequest && github:activePRCount <= 1) && !isSessionsWindow", "icon": "$(code-review)", "initialSize": 2 }, { "id": "github:activePullRequest:welcome", "name": "%view.github.active.pull.request.welcome.name%", - "when": "!github:stateValidated && github:focusedReview", + "when": "(!github:stateValidated && github:focusedReview) && !isSessionsWindow", "icon": "$(git-pull-request)" } ] @@ -1969,107 +1969,107 @@ "viewsWelcome": [ { "view": "github:login", - "when": "ReposManagerStateContext == NeedsAuthentication && github:hasGitHubRemotes", + "when": "(ReposManagerStateContext == NeedsAuthentication && github:hasGitHubRemotes) && !isSessionsWindow", "contents": "%welcome.github.login.contents%" }, { "view": "pr:github", - "when": "gitNotInstalled && config.git.enabled != false", + "when": "(gitNotInstalled && config.git.enabled != false) && !isSessionsWindow", "contents": "%welcome.github.noGit.contents%" }, { "view": "pr:github", - "when": "gitNotInstalled && config.git.enabled == false", + "when": "(gitNotInstalled && config.git.enabled == false) && !isSessionsWindow", "contents": "%welcome.github.noGitDisabled.contents%" }, { "view": "github:login", - "when": "ReposManagerStateContext == NeedsAuthentication && !github:hasGitHubRemotes && gitOpenRepositoryCount", + "when": "(ReposManagerStateContext == NeedsAuthentication && !github:hasGitHubRemotes && gitOpenRepositoryCount) && !isSessionsWindow", "contents": "%welcome.github.loginNoEnterprise.contents%" }, { "view": "github:login", - "when": "(ReposManagerStateContext == NeedsAuthentication) && ((!github:hasGitHubRemotes && gitOpenRepositoryCount) || config.github-enterprise.uri)", + "when": "((ReposManagerStateContext == NeedsAuthentication) && ((!github:hasGitHubRemotes && gitOpenRepositoryCount) || config.github-enterprise.uri)) && !isSessionsWindow", "contents": "%welcome.github.loginWithEnterprise.contents%" }, { "view": "pr:github", - "when": "git.state != initialized && !github:initialized && workspaceFolderCount > 0", + "when": "(git.state != initialized && !github:initialized && workspaceFolderCount > 0) && !isSessionsWindow", "contents": "%welcome.pr.github.uninitialized.contents%" }, { "view": "pr:github", - "when": "workspaceFolderCount > 0 && github:loadingPrsTree", + "when": "(workspaceFolderCount > 0 && github:loadingPrsTree) && !isSessionsWindow", "contents": "%welcome.pr.github.uninitialized.contents%" }, { "view": "pr:github", - "when": "workspaceFolderCount == 0", + "when": "(workspaceFolderCount == 0) && !isSessionsWindow", "contents": "%welcome.pr.github.noFolder.contents%" }, { "view": "pr:github", - "when": "git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 0", + "when": "(git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 0) && !isSessionsWindow", "contents": "%welcome.pr.github.noRepo.contents%" }, { "view": "pr:github", - "when": "git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 1", + "when": "(git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 1) && !isSessionsWindow", "contents": "%welcome.pr.github.parentRepo.contents%" }, { "view": "pr:github", - "when": "git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount > 1", + "when": "(git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount > 1) && !isSessionsWindow", "contents": "%welcome.pr.github.parentRepo.contents%" }, { "view": "issues:github", - "when": "git.state != initialized && !github:initialized && workspaceFolderCount > 0", + "when": "(git.state != initialized && !github:initialized && workspaceFolderCount > 0) && !isSessionsWindow", "contents": "%welcome.issues.github.uninitialized.contents%" }, { "view": "issues:github", - "when": "workspaceFolderCount > 0 && github:loadingPrsTree", + "when": "(workspaceFolderCount > 0 && github:loadingPrsTree) && !isSessionsWindow", "contents": "%welcome.issues.github.uninitialized.contents%" }, { "view": "issues:github", - "when": "workspaceFolderCount == 0", + "when": "(workspaceFolderCount == 0) && !isSessionsWindow", "contents": "%welcome.issues.github.noFolder.contents%" }, { "view": "issues:github", - "when": "git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 0", + "when": "(git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 0) && !isSessionsWindow", "contents": "%welcome.issues.github.noRepo.contents%" }, { "view": "issues:github", - "when": "git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 1", + "when": "(git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount == 1) && !isSessionsWindow", "contents": "%welcome.pr.github.parentRepo.contents%" }, { "view": "issues:github", - "when": "git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount > 1", + "when": "(git.state == initialized && gitOpenRepositoryCount == 0 && workspaceFolderCount > 0 && git.parentRepositoryCount > 1) && !isSessionsWindow", "contents": "%welcome.pr.github.parentRepo.contents%" }, { "view": "github:activePullRequest:welcome", - "when": "!github:stateValidated", + "when": "(!github:stateValidated) && !isSessionsWindow", "contents": "%welcome.github.activePullRequest.contents%" }, { "view": "notifications:github", - "when": "!github:notificationCount && workspaceFolderCount > 0", + "when": "(!github:notificationCount && workspaceFolderCount > 0) && !isSessionsWindow", "contents": "%welcome.github.notificationsLoading.contents%" }, { "view": "notifications:github", - "when": "workspaceFolderCount == 0", + "when": "(workspaceFolderCount == 0) && !isSessionsWindow", "contents": "%welcome.issues.github.noFolder.contents%" }, { "view": "notifications:github", - "when": "ReposManagerStateContext == RepositoriesLoaded && github:notificationCount == -1", + "when": "(ReposManagerStateContext == RepositoriesLoaded && github:notificationCount == -1) && !isSessionsWindow", "contents": "%welcome.github.notifications.contents%" } ], @@ -2077,56 +2077,80 @@ { "key": "ctrl+shift+space", "command": "issue.suggestRefresh", - "when": "suggestWidgetVisible" + "when": "(suggestWidgetVisible) && !isSessionsWindow" }, { "key": "ctrl+s", "mac": "cmd+s", "command": "issue.createIssueFromFile", - "when": "resourceScheme == newIssue && config.files.autoSave != off" + "when": "(resourceScheme == newIssue && config.files.autoSave != off) && !isSessionsWindow" }, { "key": "ctrl+enter", "mac": "cmd+enter", "command": "issue.createIssueFromFile", - "when": "resourceScheme == newIssue" + "when": "(resourceScheme == newIssue) && !isSessionsWindow" }, { "key": "ctrl+k m", "mac": "cmd+k m", "command": "pr.makeSuggestion", - "when": "commentEditorFocused" + "when": "(commentEditorFocused) && !isSessionsWindow" }, { "key": "ctrl+r", "mac": "cmd+r", "command": "pr.refreshDescription", - "when": "activeWebviewPanelId == 'PullRequestOverview'" + "when": "(activeWebviewPanelId == 'PullRequestOverview') && !isSessionsWindow" }, { "key": "shift+alt+r", "mac": "shift+alt+cmd+r", "command": "pr.revealFileInOS", - "when": "focusedView =~ /(pr|prStatus):github/ && listFocus" + "when": "(focusedView =~ /(pr|prStatus):github/ && listFocus) && !isSessionsWindow" } ], "menus": { "commandPalette": [ + { + "command": "pr.deleteLocalBranchesNRemotes", + "when": "!isSessionsWindow" + }, + { + "command": "pr.diffOutdatedCommentWithHead", + "when": "!isSessionsWindow" + }, + { + "command": "pr.checkoutOnCodespacesFromDescription", + "when": "!isSessionsWindow" + }, + { + "command": "issue.openIssueOnGitHub", + "when": "!isSessionsWindow" + }, + { + "command": "issue.createIssueFromSelection", + "when": "!isSessionsWindow" + }, + { + "command": "issue.createIssueFromClipboard", + "when": "!isSessionsWindow" + }, { "command": "github.api.preloadPullRequest", "when": "false" }, { "command": "pr.addAttestationCommit", - "when": "config.githubPullRequests.enableAttestationCommits" + "when": "(config.githubPullRequests.enableAttestationCommits) && !isSessionsWindow" }, { "command": "pr.configureRemotes", - "when": "gitHubOpenRepositoryCount != 0" + "when": "(gitHubOpenRepositoryCount != 0) && !isSessionsWindow" }, { "command": "pr.configurePRViewlet", - "when": "gitHubOpenRepositoryCount != 0" + "when": "(gitHubOpenRepositoryCount != 0) && !isSessionsWindow" }, { "command": "pr.pick", @@ -2158,7 +2182,7 @@ }, { "command": "pr.exit", - "when": "github:inReviewMode" + "when": "(github:inReviewMode) && !isSessionsWindow" }, { "command": "pr.dismissNotification", @@ -2170,7 +2194,7 @@ }, { "command": "pr.resetViewedFiles", - "when": "github:inReviewMode" + "when": "(github:inReviewMode) && !isSessionsWindow" }, { "command": "review.openFile", @@ -2182,7 +2206,7 @@ }, { "command": "pr.create", - "when": "gitHubOpenRepositoryCount != 0 && github:authenticated" + "when": "(gitHubOpenRepositoryCount != 0 && github:authenticated) && !isSessionsWindow" }, { "command": "pr.pushAndCreate", @@ -2190,7 +2214,7 @@ }, { "command": "pr.merge", - "when": "gitHubOpenRepositoryCount != 0 && github:inReviewMode" + "when": "(gitHubOpenRepositoryCount != 0 && github:inReviewMode) && !isSessionsWindow" }, { "command": "pr.readyForReview", @@ -2210,15 +2234,15 @@ }, { "command": "pr.openPullRequestOnGitHub", - "when": "gitHubOpenRepositoryCount != 0 && github:inReviewMode" + "when": "(gitHubOpenRepositoryCount != 0 && github:inReviewMode) && !isSessionsWindow" }, { "command": "pr.openAllDiffs", - "when": "gitHubOpenRepositoryCount != 0 && github:inReviewMode" + "when": "(gitHubOpenRepositoryCount != 0 && github:inReviewMode) && !isSessionsWindow" }, { "command": "pr.refreshDescription", - "when": "gitHubOpenRepositoryCount != 0 && github:inReviewMode" + "when": "(gitHubOpenRepositoryCount != 0 && github:inReviewMode) && !isSessionsWindow" }, { "command": "pr.openFileOnGitHub", @@ -2258,11 +2282,11 @@ }, { "command": "pr.openDescription", - "when": "gitHubOpenRepositoryCount != 0 && github:inReviewMode" + "when": "(gitHubOpenRepositoryCount != 0 && github:inReviewMode) && !isSessionsWindow" }, { "command": "pr.focusDescriptionInput", - "when": "github:pullRequestDescriptionVisible" + "when": "(github:pullRequestDescriptionVisible) && !isSessionsWindow" }, { "command": "pr.showDiffSinceLastReview", @@ -2274,7 +2298,7 @@ }, { "command": "pr.closeRelatedEditors", - "when": "gitHubOpenRepositoryCount != 0" + "when": "(gitHubOpenRepositoryCount != 0) && !isSessionsWindow" }, { "command": "pr.toggleEditorCommentingOn", @@ -2358,11 +2382,11 @@ }, { "command": "review.createSuggestionFromChange", - "when": "activeEditor == workbench.editors.textDiffEditor && (resourcePath in github:unviewedFiles || resourcePath in github:viewedFiles)" + "when": "(activeEditor == workbench.editors.textDiffEditor && (resourcePath in github:unviewedFiles || resourcePath in github:viewedFiles)) && !isSessionsWindow" }, { "command": "pr.refreshList", - "when": "gitHubOpenRepositoryCount != 0 && github:authenticated && github:hasGitHubRemotes" + "when": "(gitHubOpenRepositoryCount != 0 && github:authenticated && github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "pr.setFileListLayoutAsTree", @@ -2382,7 +2406,7 @@ }, { "command": "pr.signin", - "when": "gitHubOpenRepositoryCount != 0 && github:hasGitHubRemotes" + "when": "(gitHubOpenRepositoryCount != 0 && github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "pr.signinNoEnterprise", @@ -2390,7 +2414,7 @@ }, { "command": "pr.signinenterprise", - "when": "gitHubOpenRepositoryCount != 0 && github:hasGitHubRemotes" + "when": "(gitHubOpenRepositoryCount != 0 && github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "pr.signinAndRefreshList", @@ -2466,7 +2490,7 @@ }, { "command": "pr.checkoutByNumber", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && github:authenticated" + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && github:authenticated) && !isSessionsWindow" }, { "command": "pr.collapseAllComments", @@ -2474,7 +2498,7 @@ }, { "command": "pr.copyVscodeDevPrLink", - "when": "github:inReviewMode && remoteName != codespaces && embedderIdentifier != github.dev" + "when": "(github:inReviewMode && remoteName != codespaces && embedderIdentifier != github.dev) && !isSessionsWindow" }, { "command": "pr.copyPrLink", @@ -2482,19 +2506,19 @@ }, { "command": "pr.goToNextDiffInPr", - "when": "activeEditor == workbench.editors.textDiffEditor && resourcePath in github:unviewedFiles" + "when": "(activeEditor == workbench.editors.textDiffEditor && resourcePath in github:unviewedFiles) && !isSessionsWindow" }, { "command": "pr.goToNextDiffInPr", - "when": "activeEditor == workbench.editors.textDiffEditor && resourcePath in github:viewedFiles" + "when": "(activeEditor == workbench.editors.textDiffEditor && resourcePath in github:viewedFiles) && !isSessionsWindow" }, { "command": "pr.goToPreviousDiffInPr", - "when": "activeEditor == workbench.editors.textDiffEditor && resourcePath in github:unviewedFiles" + "when": "(activeEditor == workbench.editors.textDiffEditor && resourcePath in github:unviewedFiles) && !isSessionsWindow" }, { "command": "pr.goToPreviousDiffInPr", - "when": "activeEditor == workbench.editors.textDiffEditor && resourcePath in github:viewedFiles" + "when": "(activeEditor == workbench.editors.textDiffEditor && resourcePath in github:viewedFiles) && !isSessionsWindow" }, { "command": "pr.copyCommentLink", @@ -2562,7 +2586,7 @@ }, { "command": "pr.refreshComments", - "when": "gitHubOpenRepositoryCount != 0" + "when": "(gitHubOpenRepositoryCount != 0) && !isSessionsWindow" }, { "command": "pr.resolveConflict", @@ -2570,7 +2594,7 @@ }, { "command": "pr.acceptMerge", - "when": "isMergeResultEditor && mergeEditorBaseUri =~ /^(githubpr|gitpr):/" + "when": "(isMergeResultEditor && mergeEditorBaseUri =~ /^(githubpr|gitpr):/) && !isSessionsWindow" }, { "command": "issue.openDescription", @@ -2578,19 +2602,19 @@ }, { "command": "issue.copyGithubPermalink", - "when": "github:hasGitHubRemotes" + "when": "(github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "issue.copyGithubHeadLink", - "when": "github:hasGitHubRemotes" + "when": "(github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "issue.copyMarkdownGithubPermalink", - "when": "github:hasGitHubRemotes" + "when": "(github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "issue.openGithubPermalink", - "when": "github:hasGitHubRemotes" + "when": "(github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "issue.openIssue", @@ -2654,7 +2678,7 @@ }, { "command": "issue.createIssue", - "when": "github:hasGitHubRemotes && github:authenticated" + "when": "(github:hasGitHubRemotes && github:authenticated) && !isSessionsWindow" }, { "command": "issue.createIssueFromFile", @@ -2718,11 +2742,11 @@ }, { "command": "pr.openPullsWebsite", - "when": "github:hasGitHubRemotes" + "when": "(github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "issues.openIssuesWebsite", - "when": "github:hasGitHubRemotes" + "when": "(github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "issue.chatSummarizeIssue", @@ -2778,7 +2802,7 @@ }, { "command": "review.copyPrLink", - "when": "github:inReviewMode" + "when": "(github:inReviewMode) && !isSessionsWindow" }, { "command": "pr.generateTitleAndDescription", @@ -2788,540 +2812,540 @@ "view/title": [ { "command": "pr.create", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github) && !isSessionsWindow", "group": "navigation@1" }, { "command": "pr.refreshList", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github) && !isSessionsWindow", "group": "navigation@2" }, { "command": "pr.openPullsWebsite", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github) && !isSessionsWindow", "group": "overflow@1" }, { "command": "pr.checkoutByNumber", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github) && !isSessionsWindow", "group": "overflow@2" }, { "command": "pr.configurePRViewlet", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == pr:github) && !isSessionsWindow", "group": "overflow@3" }, { "command": "pr.refreshChanges", - "when": "view == prStatus:github", + "when": "(view == prStatus:github) && !isSessionsWindow", "group": "navigation@2" }, { "command": "pr.setFileListLayoutAsTree", - "when": "view == prStatus:github && fileListLayout:flat", + "when": "(view == prStatus:github && fileListLayout:flat) && !isSessionsWindow", "group": "navigation1" }, { "command": "pr.setFileListLayoutAsFlat", - "when": "view == prStatus:github && !fileListLayout:flat", + "when": "(view == prStatus:github && !fileListLayout:flat) && !isSessionsWindow", "group": "navigation1" }, { "command": "pr.toggleHideViewedFiles", - "when": "view == prStatus:github", + "when": "(view == prStatus:github) && !isSessionsWindow", "group": "navigation1" }, { "command": "pr.toggleEditorCommentingOn", - "when": "view == prStatus:github && !commentingEnabled", + "when": "(view == prStatus:github && !commentingEnabled) && !isSessionsWindow", "group": "navigation@0" }, { "command": "pr.toggleEditorCommentingOff", - "when": "view == prStatus:github && commentingEnabled", + "when": "(view == prStatus:github && commentingEnabled) && !isSessionsWindow", "group": "navigation@0" }, { "command": "issue.createIssue", - "when": "view == issues:github && github:hasGitHubRemotes", + "when": "(view == issues:github && github:hasGitHubRemotes) && !isSessionsWindow", "group": "navigation@1" }, { "command": "issue.refresh", - "when": "view == issues:github", + "when": "(view == issues:github) && !isSessionsWindow", "group": "navigation@2" }, { "command": "issues.openIssuesWebsite", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == issues:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == issues:github) && !isSessionsWindow", "group": "overflow@1" }, { "command": "issues.configureIssuesViewlet", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == issues:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == issues:github) && !isSessionsWindow", "group": "overflow@2" }, { "command": "pr.refreshActivePullRequest", - "when": "view == github:activePullRequest && github:hasGitHubRemotes", + "when": "(view == github:activePullRequest && github:hasGitHubRemotes) && !isSessionsWindow", "group": "navigation@1" }, { "command": "pr.openDescription", - "when": "view == github:activePullRequest && github:hasGitHubRemotes", + "when": "(view == github:activePullRequest && github:hasGitHubRemotes) && !isSessionsWindow", "group": "navigation@2" }, { "command": "pr.openPullRequestOnGitHub", - "when": "view == github:activePullRequest && github:hasGitHubRemotes", + "when": "(view == github:activePullRequest && github:hasGitHubRemotes) && !isSessionsWindow", "group": "navigation@3" }, { "command": "pr.addAssigneesToNewPr", - "when": "view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions", + "when": "(view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions) && !isSessionsWindow", "group": "navigation@1" }, { "command": "pr.addReviewersToNewPr", - "when": "view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions", + "when": "(view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions) && !isSessionsWindow", "group": "navigation@2" }, { "command": "pr.addLabelsToNewPr", - "when": "view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions", + "when": "(view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions) && !isSessionsWindow", "group": "navigation@3" }, { "command": "pr.addMilestoneToNewPr", - "when": "view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions", + "when": "(view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions) && !isSessionsWindow", "group": "navigation@4" }, { "command": "pr.addProjectsToNewPr", - "when": "view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions", + "when": "(view == github:createPullRequestWebview && github:createPrPermissions != READ && github:createPrPermissions) && !isSessionsWindow", "group": "navigation@5" }, { "command": "pr.refreshComments", - "when": "view == workbench.panel.comments", + "when": "(view == workbench.panel.comments) && !isSessionsWindow", "group": "navigation" }, { "command": "notifications.sortByTimestamp", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github) && !isSessionsWindow", "group": "sortNotifications@1" }, { "command": "notifications.sortByPriority", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github) && !isSessionsWindow", "group": "sortNotifications@2" }, { "command": "notifications.configureNotificationsViewlet", - "when": "view == notifications:github", + "when": "(view == notifications:github) && !isSessionsWindow", "group": "sortNotifications@3" }, { "command": "notifications.markPullRequestsAsRead", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github && config.githubPullRequests.experimental.notificationsMarkPullRequests == markAsRead", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github && config.githubPullRequests.experimental.notificationsMarkPullRequests == markAsRead) && !isSessionsWindow", "group": "navigation@0" }, { "command": "notifications.markPullRequestsAsDone", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github && config.githubPullRequests.experimental.notificationsMarkPullRequests == markAsDone", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github && config.githubPullRequests.experimental.notificationsMarkPullRequests == markAsDone) && !isSessionsWindow", "group": "navigation@0" }, { "command": "notifications.refresh", - "when": "gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github", + "when": "(gitHubOpenRepositoryCount != 0 && github:initialized && view == notifications:github) && !isSessionsWindow", "group": "navigation@1" } ], "view/item/context": [ { "command": "pr.pick", - "when": "view == pr:github && viewItem =~ /(pullrequest(:local)?:nonactive)/", + "when": "(view == pr:github && viewItem =~ /(pullrequest(:local)?:nonactive)/) && !isSessionsWindow", "group": "1_pullrequest@1" }, { "command": "pr.exit", - "when": "view == pr:github && viewItem =~ /pullrequest(:local)?:active/", + "when": "(view == pr:github && viewItem =~ /pullrequest(:local)?:active/) && !isSessionsWindow", "group": "1_pullrequest@1" }, { "command": "pr.pickOnVscodeDev", - "when": "view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && (!isWeb || remoteName != codespaces && virtualWorkspace != vscode-vfs)", + "when": "(view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && (!isWeb || remoteName != codespaces && virtualWorkspace != vscode-vfs)) && !isSessionsWindow", "group": "1_pullrequest@2" }, { "command": "pr.pickOnCodespaces", - "when": "view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && (!isWeb || remoteName != codespaces && virtualWorkspace != vscode-vfs)", + "when": "(view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && (!isWeb || remoteName != codespaces && virtualWorkspace != vscode-vfs)) && !isSessionsWindow", "group": "1_pullrequest@3" }, { "command": "pr.pickInWorktree", - "when": "view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && !isWeb", + "when": "(view == pr:github && viewItem =~ /pullrequest(:local)?:nonactive/ && !isWeb) && !isSessionsWindow", "group": "1_pullrequest@4" }, { "command": "pr.openChanges", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/", + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/) && !isSessionsWindow", "group": "2_pullrequest@1" }, { "command": "pr.openDescriptionToTheSide", "group": "2_pullrequest@2", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/" + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/) && !isSessionsWindow" }, { "command": "pr.openPullRequestOnGitHub", - "when": "view == pr:github && viewItem =~ /pullrequest/", + "when": "(view == pr:github && viewItem =~ /pullrequest/) && !isSessionsWindow", "group": "2_pullrequest@3" }, { "command": "pr.refreshPullRequest", - "when": "view == pr:github && viewItem =~ /pullrequest/", + "when": "(view == pr:github && viewItem =~ /pullrequest/) && !isSessionsWindow", "group": "3_pullrequest@1" }, { "command": "pr.deleteLocalBranch", - "when": "view == pr:github && viewItem =~ /pullrequest:local:nonactive/", + "when": "(view == pr:github && viewItem =~ /pullrequest:local:nonactive/) && !isSessionsWindow", "group": "4_pullrequest@4" }, { "command": "pr.dismissNotification", - "when": "view == pr:github && viewItem =~ /pullrequest(.*):notification/", + "when": "(view == pr:github && viewItem =~ /pullrequest(.*):notification/) && !isSessionsWindow", "group": "4_pullrequest@5" }, { "command": "pr.markAllCopilotNotificationsAsRead", - "when": "view == pr:github && viewItem =~ /copilot-query/", + "when": "(view == pr:github && viewItem =~ /copilot-query/) && !isSessionsWindow", "group": "0_category@1" }, { "command": "issue.chatSummarizeIssue", - "when": "view == pr:github && viewItem =~ /pullrequest/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures", + "when": "(view == pr:github && viewItem =~ /pullrequest/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures) && !isSessionsWindow", "group": "5_pullrequest@2" }, { "command": "pr.pick", - "when": "view == pr:github && viewItem =~ /(pullrequest(:local)?:nonactive)/", + "when": "(view == pr:github && viewItem =~ /(pullrequest(:local)?:nonactive)/) && !isSessionsWindow", "group": "inline@1" }, { "command": "pr.openChanges", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/", + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description)/) && !isSessionsWindow", "group": "inline@0" }, { "command": "pr.showDiffSinceLastReview", "group": "inline@1", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description):(active|nonactive):hasChangesSinceReview:showingAllChanges/" + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description):(active|nonactive):hasChangesSinceReview:showingAllChanges/) && !isSessionsWindow" }, { "command": "pr.showDiffAll", "group": "inline@1", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description):(active|nonactive):hasChangesSinceReview:showingChangesSinceReview/" + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /(pullrequest|description):(active|nonactive):hasChangesSinceReview:showingChangesSinceReview/) && !isSessionsWindow" }, { "command": "notification.chatSummarizeNotification", "group": "issues_0@0", - "when": "view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest') && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures" + "when": "(view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest') && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures) && !isSessionsWindow" }, { "command": "notification.openOnGitHub", "group": "issues_0@1", - "when": "view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')" + "when": "(view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')) && !isSessionsWindow" }, { "command": "notification.markAsRead", "group": "inline@3", - "when": "view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')" + "when": "(view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')) && !isSessionsWindow" }, { "command": "notification.markAsRead", "group": "issues_0@2", - "when": "view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')" + "when": "(view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')) && !isSessionsWindow" }, { "command": "notification.markAsDone", "group": "inline@4", - "when": "view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')" + "when": "(view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')) && !isSessionsWindow" }, { "command": "notification.markAsDone", "group": "issues_0@3", - "when": "view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')" + "when": "(view == notifications:github && (viewItem == 'Issue' || viewItem == 'PullRequest')) && !isSessionsWindow" }, { "command": "pr.openPullRequestOnGitHub", "group": "inline@3", - "when": "view == prStatus:github && viewItem =~ /description/ && github:activePRCount >= 2" + "when": "(view == prStatus:github && viewItem =~ /description/ && github:activePRCount >= 2) && !isSessionsWindow" }, { "command": "pr.copyCommitHash", - "when": "view == prStatus:github && viewItem =~ /commit/" + "when": "(view == prStatus:github && viewItem =~ /commit/) && !isSessionsWindow" }, { "command": "review.openFile", "group": "inline@0", - "when": "openDiffOnClick && showInlineOpenFileAction && view == prStatus:github && viewItem =~ /filechange(?!:DELETE)/" + "when": "(openDiffOnClick && showInlineOpenFileAction && view == prStatus:github && viewItem =~ /filechange(?!:DELETE)/) && !isSessionsWindow" }, { "command": "pr.openDiffView", "group": "inline@0", - "when": "!openDiffOnClick && showInlineOpenFileAction && view == prStatus:github && viewItem =~ /filechange(?!:DELETE)/" + "when": "(!openDiffOnClick && showInlineOpenFileAction && view == prStatus:github && viewItem =~ /filechange(?!:DELETE)/) && !isSessionsWindow" }, { "command": "pr.openFileOnGitHub", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange/", + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /filechange/) && !isSessionsWindow", "group": "0_open@0" }, { "command": "pr.revealFileInOS", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange(?!:ADD)/", + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /filechange(?!:ADD)/) && !isSessionsWindow", "group": "0_open@1" }, { "command": "pr.openOriginalFile", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange:MODIFY/", + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /filechange:MODIFY/) && !isSessionsWindow", "group": "0_open@2" }, { "command": "pr.openModifiedFile", - "when": "view =~ /(pr|prStatus):github/ && viewItem =~ /filechange:MODIFY/", + "when": "(view =~ /(pr|prStatus):github/ && viewItem =~ /filechange:MODIFY/) && !isSessionsWindow", "group": "0_open@3" }, { "command": "review.diffWithPrHead", "group": "1_diff@0", - "when": "openDiffOnClick && view == prStatus:github && viewItem =~ /filechange(?!:DELETE)/" + "when": "(openDiffOnClick && view == prStatus:github && viewItem =~ /filechange(?!:DELETE)/) && !isSessionsWindow" }, { "command": "review.diffLocalWithPrHead", "group": "1_diff@1", - "when": "openDiffOnClick && view == prStatus:github && viewItem =~ /filechange(?!:DELETE)/" + "when": "(openDiffOnClick && view == prStatus:github && viewItem =~ /filechange(?!:DELETE)/) && !isSessionsWindow" }, { "command": "pr.editQuery", - "when": "view == pr:github && viewItem == query", + "when": "(view == pr:github && viewItem == query) && !isSessionsWindow", "group": "inline" }, { "command": "pr.editQuery", - "when": "view == pr:github && viewItem == query" + "when": "(view == pr:github && viewItem == query) && !isSessionsWindow" }, { "command": "issue.openIssue", - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/", + "when": "(view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/) && !isSessionsWindow", "group": "issues_0@1" }, { "command": "issue.goToLinkedCode", - "when": "view == issues:github && viewItem =~ /^link(current|continue)?issue/", + "when": "(view == issues:github && viewItem =~ /^link(current|continue)?issue/) && !isSessionsWindow", "group": "issues_0@0" }, { "command": "issue.startWorking", - "when": "view == issues:github && viewItem =~ /^(link)?issue/ && config.githubIssues.useBranchForIssues != on", + "when": "(view == issues:github && viewItem =~ /^(link)?issue/ && config.githubIssues.useBranchForIssues != on) && !isSessionsWindow", "group": "inline@2" }, { "command": "issue.startWorkingBranchDescriptiveTitle", - "when": "view == issues:github && viewItem =~ /^(link)?issue/ && config.githubIssues.useBranchForIssues == on", + "when": "(view == issues:github && viewItem =~ /^(link)?issue/ && config.githubIssues.useBranchForIssues == on) && !isSessionsWindow", "group": "inline@2" }, { "command": "issue.startWorking", - "when": "view == issues:github && viewItem =~ /^(link)?continueissue/ && config.githubIssues.useBranchForIssues != on", + "when": "(view == issues:github && viewItem =~ /^(link)?continueissue/ && config.githubIssues.useBranchForIssues != on) && !isSessionsWindow", "group": "inline@2" }, { "command": "issue.startWorkingBranchDescriptiveTitle", - "when": "view == issues:github && viewItem =~ /^(link)?continueissue/ && config.githubIssues.useBranchForIssues == on", + "when": "(view == issues:github && viewItem =~ /^(link)?continueissue/ && config.githubIssues.useBranchForIssues == on) && !isSessionsWindow", "group": "inline@2" }, { "command": "issue.startWorking", "alt": "issue.startWorkingBranchPrompt", - "when": "view == issues:github && viewItem =~ /^(link)?issue/", + "when": "(view == issues:github && viewItem =~ /^(link)?issue/) && !isSessionsWindow", "group": "issues_0@2" }, { "command": "issue.continueWorking", - "when": "view == issues:github && viewItem =~ /^(link)?continueissue/", + "when": "(view == issues:github && viewItem =~ /^(link)?continueissue/) && !isSessionsWindow", "group": "issues_0@2" }, { "command": "pr.create", - "when": "view == issues:github && viewItem =~ /^(link)?currentissue/", + "when": "(view == issues:github && viewItem =~ /^(link)?currentissue/) && !isSessionsWindow", "group": "issues_0@2" }, { "command": "issue.stopWorking", - "when": "view == issues:github && viewItem =~ /^(link)?currentissue/", + "when": "(view == issues:github && viewItem =~ /^(link)?currentissue/) && !isSessionsWindow", "group": "issues_0@3" }, { "command": "issue.stopWorking", - "when": "view == issues:github && viewItem =~ /^(link)?currentissue/ && config.githubIssues.useBranchForIssues != on", + "when": "(view == issues:github && viewItem =~ /^(link)?currentissue/ && config.githubIssues.useBranchForIssues != on) && !isSessionsWindow", "group": "inline@1" }, { "command": "issue.stopWorkingBranchDescriptiveTitle", - "when": "view == issues:github && viewItem =~ /^(link)?currentissue/ && config.githubIssues.useBranchForIssues == on", + "when": "(view == issues:github && viewItem =~ /^(link)?currentissue/ && config.githubIssues.useBranchForIssues == on) && !isSessionsWindow", "group": "inline@1" }, { "command": "issue.chatSummarizeIssue", - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures", + "when": "(view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures) && !isSessionsWindow", "group": "issues_1@0" }, { "command": "issue.chatSuggestFix", - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures", + "when": "(view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && github.copilot-chat.activated && config.githubPullRequests.experimental.chat && !config.chat.disableAIFeatures) && !isSessionsWindow", "group": "issues_1@1" }, { "command": "issue.assignToCodingAgent", - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && config.githubPullRequests.codingAgent.enabled && !config.chat.disableAIFeatures", + "when": "(view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/ && config.githubPullRequests.codingAgent.enabled && !config.chat.disableAIFeatures) && !isSessionsWindow", "group": "issues_1@2" }, { "command": "issue.copyIssueNumber", - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/", + "when": "(view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/) && !isSessionsWindow", "group": "issues_2@1" }, { "command": "issue.copyIssueUrl", - "when": "view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/", + "when": "(view == issues:github && viewItem =~ /^(link)?(current|continue)?issue/) && !isSessionsWindow", "group": "issues_2@2" }, { "command": "issue.editQuery", - "when": "view == issues:github && viewItem == query", + "when": "(view == issues:github && viewItem == query) && !isSessionsWindow", "group": "inline" }, { "command": "issue.editQuery", - "when": "view == issues:github && viewItem == query" + "when": "(view == issues:github && viewItem == query) && !isSessionsWindow" } ], "commentsView/commentThread/context": [ { "command": "pr.diffOutdatedCommentWithHead", "group": "inline@0", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /outdated/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /outdated/) && !isSessionsWindow" }, { "command": "pr.resolveReviewThread", "group": "inline@1", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/) && !isSessionsWindow" }, { "command": "pr.unresolveReviewThreadFromView", "group": "inline@1", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/) && !isSessionsWindow" }, { "command": "pr.diffOutdatedCommentWithHead", "group": "context@0", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /outdated/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /outdated/) && !isSessionsWindow" }, { "command": "pr.resolveReviewThread", "group": "context@1", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/) && !isSessionsWindow" }, { "command": "pr.unresolveReviewThreadFromView", "group": "context@1", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/) && !isSessionsWindow" }, { "command": "pr.applySuggestionWithCopilot", "group": "context@2", - "when": "commentController =~ /^github-review/ && !config.chat.disableAIFeatures" + "when": "(commentController =~ /^github-review/ && !config.chat.disableAIFeatures) && !isSessionsWindow" } ], "editor/title": [ { "command": "pr.openPullRequestOnGitHub", "group": "navigation", - "when": "activeWebviewPanelId == 'PullRequestOverview'" + "when": "(activeWebviewPanelId == 'PullRequestOverview') && !isSessionsWindow" }, { "command": "review.openFile", "group": "navigation", - "when": "resourceScheme =~ /^review$/ && isInDiffEditor" + "when": "(resourceScheme =~ /^review$/ && isInDiffEditor) && !isSessionsWindow" }, { "command": "review.openLocalFile", "group": "navigation", - "when": "resourceScheme =~ /^review$/ && !isInDiffEditor" + "when": "(resourceScheme =~ /^review$/ && !isInDiffEditor) && !isSessionsWindow" }, { "command": "issue.createIssueFromFile", "group": "navigation", - "when": "resourceFilename == NewIssue.md" + "when": "(resourceFilename == NewIssue.md) && !isSessionsWindow" }, { "command": "pr.markFileAsViewed", "group": "navigation", - "when": "resourceScheme != pr && resourceScheme != review && resourceScheme != filechange && resourcePath in github:unviewedFiles" + "when": "(resourceScheme != pr && resourceScheme != review && resourceScheme != filechange && resourcePath in github:unviewedFiles) && !isSessionsWindow" }, { "command": "pr.unmarkFileAsViewed", "group": "navigation", - "when": "resourceScheme != pr && resourceScheme != review && resourceScheme != filechange && resourcePath in github:viewedFiles" + "when": "(resourceScheme != pr && resourceScheme != review && resourceScheme != filechange && resourcePath in github:viewedFiles) && !isSessionsWindow" }, { "command": "pr.openDiffViewFromEditor", "group": "navigation", - "when": "!isInDiffEditor && resourceScheme != pr && resourceScheme != review && resourceScheme != filechange && resourcePath in github:unviewedFiles" + "when": "(!isInDiffEditor && resourceScheme != pr && resourceScheme != review && resourceScheme != filechange && resourcePath in github:unviewedFiles) && !isSessionsWindow" }, { "command": "pr.openDiffViewFromEditor", "group": "navigation", - "when": "!isInDiffEditor && resourceScheme != pr && resourceScheme != review && resourceScheme != filechange && resourcePath in github:viewedFiles" + "when": "(!isInDiffEditor && resourceScheme != pr && resourceScheme != review && resourceScheme != filechange && resourcePath in github:viewedFiles) && !isSessionsWindow" }, { "command": "pr.addFileComment", "group": "navigation", - "when": "(resourceScheme == pr) || (resourcePath in github:viewedFiles) || (resourcePath in github:unviewedFiles)" + "when": "((resourceScheme == pr) || (resourcePath in github:viewedFiles) || (resourcePath in github:unviewedFiles)) && !isSessionsWindow" } ], "editor/content": [ { "command": "pr.acceptMerge", - "when": "isMergeResultEditor && mergeEditorBaseUri =~ /^(githubpr|gitpr):/" + "when": "(isMergeResultEditor && mergeEditorBaseUri =~ /^(githubpr|gitpr):/) && !isSessionsWindow" } ], "scm/title": [ { "command": "pr.create", - "when": "scmProvider =~ /^git|^remoteHub:github/ && scmProviderRootUri in github:reposNotInReviewMode", + "when": "(scmProvider =~ /^git|^remoteHub:github/ && scmProviderRootUri in github:reposNotInReviewMode) && !isSessionsWindow", "group": "navigation" } ], "scm/resourceGroup/context": [ { "command": "review.createSuggestionsFromChanges", - "when": "scmProviderRootUri in github:reposInReviewMode && scmProvider =~ /^git|^remoteHub:github/ && scmResourceGroup == workingTree", + "when": "(scmProviderRootUri in github:reposInReviewMode && scmProvider =~ /^git|^remoteHub:github/ && scmResourceGroup == workingTree) && !isSessionsWindow", "group": "inline@-2" } ], "scm/resourceState/context": [ { "command": "review.createSuggestionsFromChanges", - "when": "scmProviderRootUri in github:reposInReviewMode && scmProvider =~ /^git|^remoteHub:github/ && scmResourceGroup == workingTree", + "when": "(scmProviderRootUri in github:reposInReviewMode && scmProvider =~ /^git|^remoteHub:github/ && scmResourceGroup == workingTree) && !isSessionsWindow", "group": "1_modification@5" } ], "scm/repository": [ { "command": "pr.create", - "when": "scmProvider =~ /^git|^remoteHub:github/ && scmProviderRootUri in github:reposNotInReviewMode", + "when": "(scmProvider =~ /^git|^remoteHub:github/ && scmProviderRootUri in github:reposNotInReviewMode) && !isSessionsWindow", "group": "inline" } ], @@ -3329,355 +3353,355 @@ { "command": "pr.createComment", "group": "inline@1", - "when": "(commentController =~ /^github-browse/ && prInDraft) || (commentController =~ /^github-review/ && reviewInDraftMode)" + "when": "((commentController =~ /^github-browse/ && prInDraft) || (commentController =~ /^github-review/ && reviewInDraftMode)) && !isSessionsWindow" }, { "command": "pr.createSingleComment", "group": "inline@1", - "when": "config.githubPullRequests.defaultCommentType != review && ((commentController =~ /^github-browse/ && !prInDraft) || (commentController =~ /^github-review/ && !reviewInDraftMode))" + "when": "(config.githubPullRequests.defaultCommentType != review && ((commentController =~ /^github-browse/ && !prInDraft) || (commentController =~ /^github-review/ && !reviewInDraftMode))) && !isSessionsWindow" }, { "command": "pr.startReview", "group": "inline@1", - "when": "config.githubPullRequests.defaultCommentType == review && ((commentController =~ /^github-browse/ && !prInDraft) || (commentController =~ /^github-review/ && !reviewInDraftMode))" + "when": "(config.githubPullRequests.defaultCommentType == review && ((commentController =~ /^github-browse/ && !prInDraft) || (commentController =~ /^github-review/ && !reviewInDraftMode))) && !isSessionsWindow" }, { "command": "pr.startReview", "group": "inline@2", - "when": "config.githubPullRequests.defaultCommentType != review && ((commentController =~ /^github-browse/ && !prInDraft) || (commentController =~ /^github-review/ && !reviewInDraftMode))" + "when": "(config.githubPullRequests.defaultCommentType != review && ((commentController =~ /^github-browse/ && !prInDraft) || (commentController =~ /^github-review/ && !reviewInDraftMode))) && !isSessionsWindow" }, { "command": "pr.createSingleComment", "group": "inline@2", - "when": "config.githubPullRequests.defaultCommentType == review && ((commentController =~ /^github-browse/ && !prInDraft) || commentController =~ /^github-review/ && !reviewInDraftMode)" + "when": "(config.githubPullRequests.defaultCommentType == review && ((commentController =~ /^github-browse/ && !prInDraft) || commentController =~ /^github-review/ && !reviewInDraftMode)) && !isSessionsWindow" } ], "comments/comment/editorActions": [ { "command": "pr.makeSuggestion", "group": "inline@3", - "when": "commentController =~ /^github-(browse|review)/ && !github:activeCommentHasSuggestion" + "when": "(commentController =~ /^github-(browse|review)/ && !github:activeCommentHasSuggestion) && !isSessionsWindow" }, { "command": "pr.uploadFile", "group": "inline@4", - "when": "commentController =~ /^github-(browse|review)/" + "when": "(commentController =~ /^github-(browse|review)/) && !isSessionsWindow" } ], "comments/commentThread/additionalActions": [ { "command": "pr.resolveReviewThread", "group": "inline@1", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/) && !isSessionsWindow" }, { "command": "pr.unresolveReviewThread", "group": "inline@1", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/) && !isSessionsWindow" }, { "command": "pr.openReview", "group": "inline@2", - "when": "(commentController =~ /^github-browse/ && prInDraft) || (commentController =~ /^github-review/ && reviewInDraftMode)" + "when": "((commentController =~ /^github-browse/ && prInDraft) || (commentController =~ /^github-review/ && reviewInDraftMode)) && !isSessionsWindow" } ], "comments/commentThread/title/context": [ { "command": "pr.resolveReviewThread", "group": "inline@3", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/) && !isSessionsWindow" }, { "command": "pr.unresolveReviewThread", "group": "inline@3", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/) && !isSessionsWindow" } ], "comments/commentThread/comment/context": [ { "command": "pr.resolveReviewThread", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canResolve/) && !isSessionsWindow" }, { "command": "pr.unresolveReviewThread", - "when": "commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/" + "when": "(commentController =~ /^github-(browse|review)/ && commentThread =~ /canUnresolve/) && !isSessionsWindow" }, { "command": "pr.applySuggestion", - "when": "commentController =~ /^github-review/ && comment =~ /hasSuggestion/" + "when": "(commentController =~ /^github-review/ && comment =~ /hasSuggestion/) && !isSessionsWindow" }, { "command": "pr.applySuggestionWithCopilot", - "when": "commentController =~ /^github-review/ && !config.chat.disableAIFeatures" + "when": "(commentController =~ /^github-review/ && !config.chat.disableAIFeatures) && !isSessionsWindow" } ], "comments/comment/title": [ { "command": "pr.applySuggestion", "group": "inline@0", - "when": "commentController =~ /^github-review/ && comment =~ /hasSuggestion/" + "when": "(commentController =~ /^github-review/ && comment =~ /hasSuggestion/) && !isSessionsWindow" }, { "command": "pr.applySuggestionWithCopilot", "group": "overflow@0", - "when": "commentController =~ /^github-review/ && !config.chat.disableAIFeatures" + "when": "(commentController =~ /^github-review/ && !config.chat.disableAIFeatures) && !isSessionsWindow" }, { "command": "pr.editComment", "group": "overflow@1", - "when": "commentController =~ /^github-(browse|review)/ && comment =~ /canEdit/" + "when": "(commentController =~ /^github-(browse|review)/ && comment =~ /canEdit/) && !isSessionsWindow" }, { "command": "pr.deleteComment", "group": "overflow@2", - "when": "commentController =~ /^github-(browse|review)/ && comment =~ /canDelete/" + "when": "(commentController =~ /^github-(browse|review)/ && comment =~ /canDelete/) && !isSessionsWindow" }, { "command": "pr.copyCommentLink", "group": "overflow@3", - "when": "commentController =~ /^github-(browse|review)/ && comment =~ /canEdit/" + "when": "(commentController =~ /^github-(browse|review)/ && comment =~ /canEdit/) && !isSessionsWindow" } ], "comments/commentThread/title": [ { "command": "pr.refreshComments", "group": "0_refresh@0", - "when": "commentController =~ /^github-(browse|review)/" + "when": "(commentController =~ /^github-(browse|review)/) && !isSessionsWindow" }, { "command": "pr.collapseAllComments", "group": "1_collapse@0", - "when": "commentController =~ /^github-(browse|review)/" + "when": "(commentController =~ /^github-(browse|review)/) && !isSessionsWindow" } ], "comments/comment/context": [ { "command": "pr.saveComment", "group": "inline@1", - "when": "commentController =~ /^github-(browse|review)/" + "when": "(commentController =~ /^github-(browse|review)/) && !isSessionsWindow" }, { "command": "pr.cancelEditComment", "group": "inline@2", - "when": "commentController =~ /^github-(browse|review)/" + "when": "(commentController =~ /^github-(browse|review)/) && !isSessionsWindow" } ], "editor/context/copy": [ { "command": "issue.copyGithubPermalink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "3_githubPullRequests@0" }, { "command": "issue.copyMarkdownGithubPermalink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "3_githubPullRequests@1" }, { "command": "issue.copyGithubHeadLink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "3_githubPullRequests@2" } ], "editor/context/share": [ { "command": "issue.copyGithubPermalink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@0" }, { "command": "issue.copyMarkdownGithubPermalink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@1" }, { "command": "issue.copyGithubHeadLink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@2" }, { "command": "issue.copyGithubDevLink", - "when": "github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev", + "when": "(github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev) && !isSessionsWindow", "group": "0_vscode@0" } ], "editor/context": [ { "command": "review.createSuggestionFromChange", - "when": "activeEditor == workbench.editors.textDiffEditor && (resourcePath in github:unviewedFiles || resourcePath in github:viewedFiles)", + "when": "(activeEditor == workbench.editors.textDiffEditor && (resourcePath in github:unviewedFiles || resourcePath in github:viewedFiles)) && !isSessionsWindow", "group": "2_git@6" } ], "file/share": [ { "command": "issue.copyGithubPermalink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@0" }, { "command": "pr.copyVscodeDevPrLink", - "when": "github:hasGitHubRemotes && github:inReviewMode && remoteName != codespaces && embedderIdentifier != github.dev", + "when": "(github:hasGitHubRemotes && github:inReviewMode && remoteName != codespaces && embedderIdentifier != github.dev) && !isSessionsWindow", "group": "1_githubPullRequests@1" }, { "command": "issue.copyMarkdownGithubPermalink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@2" }, { "command": "issue.copyGithubHeadLink", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@3" }, { "command": "issue.copyGithubDevLinkFile", - "when": "github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev", + "when": "(github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev) && !isSessionsWindow", "group": "0_vscode@0" } ], "editor/lineNumber/context": [ { "command": "issue.copyGithubPermalink", - "when": "github:hasGitHubRemotes && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on", + "when": "(github:hasGitHubRemotes && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on) && !isSessionsWindow", "group": "1_cutcopypaste@3" }, { "command": "issue.copyMarkdownGithubPermalink", - "when": "github:hasGitHubRemotes && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on", + "when": "(github:hasGitHubRemotes && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on) && !isSessionsWindow", "group": "1_cutcopypaste@4" }, { "command": "issue.copyGithubHeadLink", - "when": "github:hasGitHubRemotes && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on", + "when": "(github:hasGitHubRemotes && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on) && !isSessionsWindow", "group": "1_cutcopypaste@5" }, { "command": "issue.copyGithubDevLink", - "when": "github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev", + "when": "(github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev) && !isSessionsWindow", "group": "1_cutcopypaste@0" } ], "editor/title/context": [ { "command": "pr.closeRelatedEditors", - "when": "resourceScheme == 'pr' || resourceScheme == 'review' || resourcePath in github:unviewedFiles || resourcePath in github:viewedFiles", + "when": "(resourceScheme == 'pr' || resourceScheme == 'review' || resourcePath in github:unviewedFiles || resourcePath in github:viewedFiles) && !isSessionsWindow", "group": "1_close@60" } ], "editor/title/context/share": [ { "command": "issue.copyGithubPermalinkWithoutRange", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@10" }, { "command": "issue.copyMarkdownGithubPermalinkWithoutRange", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@11" }, { "command": "issue.copyGithubHeadLinkWithoutRange", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "1_githubPullRequests@12" }, { "command": "issue.copyGithubDevLinkWithoutRange", - "when": "github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev", + "when": "(github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev) && !isSessionsWindow", "group": "0_vscode@0" } ], "explorer/context/share": [ { "command": "issue.copyGithubPermalinkWithoutRange", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "5_githubPulLRequests@10" }, { "command": "issue.copyMarkdownGithubPermalinkWithoutRange", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "5_githubPulLRequests@11" }, { "command": "issue.copyGithubHeadLinkWithoutRange", - "when": "github:hasGitHubRemotes", + "when": "(github:hasGitHubRemotes) && !isSessionsWindow", "group": "5_githubPulLRequests@12" }, { "command": "issue.copyGithubDevLinkWithoutRange", - "when": "github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev", + "when": "(github:hasGitHubRemotes && remoteName == codespaces && isWeb || github:hasGitHubRemotes && embedderIdentifier == github.dev) && !isSessionsWindow", "group": "0_vscode@0" } ], "menuBar/edit/copy": [ { "command": "issue.copyGithubPermalink", - "when": "github:hasGitHubRemotes" + "when": "(github:hasGitHubRemotes) && !isSessionsWindow" }, { "command": "issue.copyMarkdownGithubPermalink", - "when": "github:hasGitHubRemotes" + "when": "(github:hasGitHubRemotes) && !isSessionsWindow" } ], "remoteHub/pullRequest": [ { "command": "pr.create", - "when": "scmProvider =~ /^remoteHub:github/", + "when": "(scmProvider =~ /^remoteHub:github/) && !isSessionsWindow", "group": "1_modification@0" } ], "webview/context": [ { "command": "pr.createPrMenuCreate", - "when": "webviewId == 'github:createPullRequestWebview' && github:createPrMenu", + "when": "(webviewId == 'github:createPullRequestWebview' && github:createPrMenu) && !isSessionsWindow", "group": "0_create@0" }, { "command": "pr.createPrMenuDraft", - "when": "webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuDraft", + "when": "(webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuDraft) && !isSessionsWindow", "group": "0_create@1" }, { "command": "pr.createPrMenuMergeWhenReady", - "when": "webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuMergeWhenReady", + "when": "(webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuMergeWhenReady) && !isSessionsWindow", "group": "1_create@0" }, { "command": "pr.createPrMenuMerge", - "when": "webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuMerge", + "when": "(webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuMerge) && !isSessionsWindow", "group": "1_create@0" }, { "command": "pr.createPrMenuSquash", - "when": "webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuSquash", + "when": "(webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuSquash) && !isSessionsWindow", "group": "1_create@1" }, { "command": "pr.createPrMenuRebase", - "when": "webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuRebase", + "when": "(webviewId == 'github:createPullRequestWebview' && github:createPrMenu && github:createPrMenuRebase) && !isSessionsWindow", "group": "1_create@2" }, { "command": "review.comment", - "when": "webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentComment", + "when": "(webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentComment) && !isSessionsWindow", "group": "1_review@1" }, { "command": "review.approve", - "when": "webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentApprove", + "when": "(webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentApprove) && !isSessionsWindow", "group": "1_review@2" }, { "command": "review.requestChanges", - "when": "webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentRequestChanges", + "when": "(webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentRequestChanges) && !isSessionsWindow", "group": "1_review@3" }, { "command": "review.approveOnDotCom", - "when": "webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentApproveOnDotCom" + "when": "(webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentApproveOnDotCom) && !isSessionsWindow" }, { "command": "review.requestChangesOnDotCom", - "when": "webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentRequestChangesOnDotCom" + "when": "(webviewId == 'github:activePullRequest' && github:reviewCommentMenu && github:reviewCommentRequestChangesOnDotCom) && !isSessionsWindow" }, { "command": "review.commentDescription", @@ -3720,31 +3744,31 @@ }, { "command": "pr.readyForReview", - "when": "(webviewId == 'github:activePullRequest') && github:readyForReviewMenu" + "when": "((webviewId == 'github:activePullRequest') && github:readyForReviewMenu) && !isSessionsWindow" }, { "command": "pr.readyForReviewAndMerge", - "when": "(webviewId == 'github:activePullRequest') && github:readyForReviewMenu && github:readyForReviewMenuWithMerge" + "when": "((webviewId == 'github:activePullRequest') && github:readyForReviewMenu && github:readyForReviewMenuWithMerge) && !isSessionsWindow" }, { "command": "pr.openChanges", "group": "checkout@0", - "when": "webviewId == PullRequestOverview && github:checkoutMenu" + "when": "(webviewId == PullRequestOverview && github:checkoutMenu) && !isSessionsWindow" }, { "command": "pr.pickInWorktreeFromDescription", "group": "checkout@1", - "when": "webviewId == PullRequestOverview && github:checkoutMenu && !isWeb" + "when": "(webviewId == PullRequestOverview && github:checkoutMenu && !isWeb) && !isSessionsWindow" }, { "command": "pr.checkoutOnVscodeDevFromDescription", "group": "checkout@2", - "when": "webviewId == PullRequestOverview && github:checkoutMenu" + "when": "(webviewId == PullRequestOverview && github:checkoutMenu) && !isSessionsWindow" }, { "command": "pr.checkoutOnCodespacesFromDescription", "group": "checkout@3", - "when": "webviewId == PullRequestOverview && github:checkoutMenu" + "when": "(webviewId == PullRequestOverview && github:checkoutMenu) && !isSessionsWindow" }, { "command": "pr.openSessionLogFromDescription", From 96d301c14ab14376cd28835522758bbbaf0b5657 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Tue, 1 Sep 2026 17:30:22 +0200 Subject: [PATCH 3/6] Add remaining proposals --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index a4e3fee0cd..539a7f33c9 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "enabledApiProposals": [ "activeComment", + "agentSessionsWorkspace", "agentsWindowActivation", "chatContextProvider", "chatParticipantAdditions", @@ -32,6 +33,7 @@ "contribEditorContentMenu", "contribShareMenu", "diffCommand", + "externalUriOpener", "languageModelToolResultAudience", "markdownAlertSyntax", "quickDiffProvider", From aa2880e33c849afcb5fd59b8b409e18183e86573 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Wed, 2 Sep 2026 12:12:38 +0200 Subject: [PATCH 4/6] One more when --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 539a7f33c9..6abb82240d 100644 --- a/package.json +++ b/package.json @@ -3730,7 +3730,7 @@ }, { "command": "pr.copyPrLink", - "when": "(webviewId == PullRequestOverview || webviewId == IssueOverview) && github:copyMenu" + "when": "(webviewId == PullRequestOverview || (webviewId == IssueOverview && !isSessionsWindow)) && github:copyMenu" }, { "command": "pr.copyVscodeDevPrLink", From 440bbbc5523cc680dcb5d25304c10e0507d80d14 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Wed, 2 Sep 2026 12:14:52 +0200 Subject: [PATCH 5/6] Bump engine version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index d1b7dc26ed..a161f93cea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -114,7 +114,7 @@ }, "engines": { "node": ">=20", - "vscode": "^1.130.0" + "vscode": "^1.137.0" } }, "node_modules/@acemir/cssom": { diff --git a/package.json b/package.json index 6abb82240d..f38b4f7798 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "publisher": "GitHub", "engines": { "node": ">=20", - "vscode": "^1.130.0" + "vscode": "^1.137.0" }, "categories": [ "Other", From 5eacb03a887255a5d38dee259fc89c4d3358b20a Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Wed, 2 Sep 2026 12:15:25 +0200 Subject: [PATCH 6/6] proposals --- ...scode.proposed.agentSessionsWorkspace.d.ts | 18 ++ ...scode.proposed.agentsWindowActivation.d.ts | 6 + .../vscode.proposed.externalUriOpener.d.ts | 163 ++++++++++++++++++ 3 files changed, 187 insertions(+) create mode 100644 src/@types/vscode.proposed.agentSessionsWorkspace.d.ts create mode 100644 src/@types/vscode.proposed.agentsWindowActivation.d.ts create mode 100644 src/@types/vscode.proposed.externalUriOpener.d.ts diff --git a/src/@types/vscode.proposed.agentSessionsWorkspace.d.ts b/src/@types/vscode.proposed.agentSessionsWorkspace.d.ts new file mode 100644 index 0000000000..278e4ccb7a --- /dev/null +++ b/src/@types/vscode.proposed.agentSessionsWorkspace.d.ts @@ -0,0 +1,18 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +declare module 'vscode' { + + export namespace workspace { + + /** + * Indicates whether the current workspace is an agent sessions workspace. + * + * Agent sessions workspace is a special workspace used for AI agent interactions + * where the window is dedicated to agent session management. + */ + export const isAgentSessionsWorkspace: boolean; + } +} diff --git a/src/@types/vscode.proposed.agentsWindowActivation.d.ts b/src/@types/vscode.proposed.agentsWindowActivation.d.ts new file mode 100644 index 0000000000..43146aa06c --- /dev/null +++ b/src/@types/vscode.proposed.agentsWindowActivation.d.ts @@ -0,0 +1,6 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +// Empty placeholder because this proposal only enables the `capabilities.agentsWindow` property in package.json. diff --git a/src/@types/vscode.proposed.externalUriOpener.d.ts b/src/@types/vscode.proposed.externalUriOpener.d.ts new file mode 100644 index 0000000000..ceb28ac33e --- /dev/null +++ b/src/@types/vscode.proposed.externalUriOpener.d.ts @@ -0,0 +1,163 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +declare module 'vscode' { + + // https://github.com/microsoft/vscode/issues/109277 + + /** + * Details if an `ExternalUriOpener` can open a uri. + * + * The priority is also used to rank multiple openers against each other and determine + * if an opener should be selected automatically or if the user should be prompted to + * select an opener. + * + * The editor will try to use the best available opener, as sorted by `ExternalUriOpenerPriority`. + * If there are multiple potential "best" openers for a URI, then the user will be prompted + * to select an opener. + */ + export enum ExternalUriOpenerPriority { + /** + * The opener is disabled and will never be shown to users. + * + * Note that the opener can still be used if the user specifically + * configures it in their settings. + */ + None = 0, + + /** + * The opener can open the uri but will not cause a prompt on its own + * since the editor always contributes a built-in `Default` opener. + */ + Option = 1, + + /** + * The opener can open the uri. + * + * The editor's built-in opener has `Default` priority. This means that any additional `Default` + * openers will cause the user to be prompted to select from a list of all potential openers. + */ + Default = 2, + + /** + * The opener can open the uri and should be automatically selected over any + * default openers, include the built-in one from the editor. + * + * A preferred opener will be automatically selected if no other preferred openers + * are available. If multiple preferred openers are available, then the user + * is shown a prompt with all potential openers (not just preferred openers). + */ + Preferred = 3, + } + + /** + * Handles opening uris to external resources, such as http(s) links. + * + * Extensions can implement an `ExternalUriOpener` to open `http` links to a webserver + * inside of the editor instead of having the link be opened by the web browser. + * + * Currently openers may only be registered for `http` and `https` uris. + */ + export interface ExternalUriOpener { + + /** + * Check if the opener can open a uri. + * + * @param uri The uri being opened. This is the uri that the user clicked on. It has + * not yet gone through port forwarding. + * @param token Cancellation token indicating that the result is no longer needed. + * + * @return Priority indicating if the opener can open the external uri. + */ + canOpenExternalUri(uri: Uri, token: CancellationToken): ExternalUriOpenerPriority | Thenable; + + /** + * Open a uri. + * + * This is invoked when: + * + * - The user clicks a link which does not have an assigned opener. In this case, first `canOpenExternalUri` + * is called and if the user selects this opener, then `openExternalUri` is called. + * - The user sets the default opener for a link in their settings and then visits a link. + * + * @param resolvedUri The uri to open. This uri may have been transformed by port forwarding, so it + * may not match the original uri passed to `canOpenExternalUri`. Use `ctx.originalUri` to check the + * original uri. + * @param ctx Additional information about the uri being opened. + * @param token Cancellation token indicating that opening has been canceled. + * + * @return Thenable indicating that the opening has completed. + */ + openExternalUri(resolvedUri: Uri, ctx: OpenExternalUriContext, token: CancellationToken): Thenable | void; + } + + /** + * Additional information about the uri being opened. + */ + export interface OpenExternalUriContext { + /** + * The uri that triggered the open. + * + * This is the original uri that the user clicked on or that was passed to `openExternal.` + * Due to port forwarding, this may not match the `resolvedUri` passed to `openExternalUri`. + */ + readonly sourceUri: Uri; + } + + /** + * Additional metadata about a registered `ExternalUriOpener`. + */ + export interface ExternalUriOpenerMetadata { + + /** + * List of uri schemes the opener is triggered for. + * + * Currently only `http` and `https` are supported. + */ + readonly schemes: readonly string[]; + + /** + * Text displayed to the user that explains what the opener does. + * + * For example, 'Open in browser preview' + */ + readonly label: string; + } + + namespace window { + /** + * Register a new `ExternalUriOpener`. + * + * When a uri is about to be opened, an `onOpenExternalUri:SCHEME` activation event is fired. + * + * @param id Unique id of the opener, such as `myExtension.browserPreview`. This is used in settings + * and commands to identify the opener. + * @param opener Opener to register. + * @param metadata Additional information about the opener. + * + * @returns Disposable that unregisters the opener. + */ + export function registerExternalUriOpener(id: string, opener: ExternalUriOpener, metadata: ExternalUriOpenerMetadata): Disposable; + } + + export interface OpenExternalOptions { + /** + * Allows using openers contributed by extensions through `registerExternalUriOpener` + * when opening the resource. + * + * If `true`, the editor will check if any contributed openers can handle the + * uri, and fallback to the default opener behavior. + * + * If it is string, this specifies the id of the `ExternalUriOpener` + * that should be used if it is available. Use `'default'` to force the editor's + * standard external opener to be used. + */ + readonly allowContributedOpeners?: boolean | string; + } + + namespace env { + export function openExternal(target: Uri, options?: OpenExternalOptions): Thenable; + } +}