Skip to content
Merged
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
12 changes: 8 additions & 4 deletions src/@types/vscode.proposed.agentSessionsWorkspace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ declare module 'vscode' {
export namespace workspace {

/**
* Indicates whether the current workspace is an agent sessions workspace.
* Whether the editor manages the workspace for agent sessions, rather than the user
* opening it. A workspace that the user opened is not agent-managed, even when agents
* work in it.
*
* Agent sessions workspace is a special workspace used for AI agent interactions
* where the window is dedicated to agent session management.
* The {@linkcode workspace.workspaceFolders workspace folders} of an agent-managed
* workspace follow the active agent session and can change when the user switches
* sessions. Sessions can span projects, so resources outside the current folders can
* still be part of the user's work.
*/
export const isAgentSessionsWorkspace: boolean;
export const isAgentManaged: boolean;
}
}
2 changes: 1 addition & 1 deletion src/github/pullRequestOverview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ export class PullRequestOverviewPanel extends IssueOverviewPanel<PullRequestMode
currentUserReviewState: reviewState,
revertable: pullRequest.state === GithubItemStateEnum.Merged,
isCopilotOnMyBehalf: false,
isAgentSessionsWorkspace: vscode.workspace.isAgentSessionsWorkspace,
isAgentSessionsWorkspace: vscode.workspace.isAgentManaged,
overviewTabs: vscode.workspace.getConfiguration(PR_SETTINGS_NAMESPACE).get<boolean | 'agents'>(EXPERIMENTAL_OVERVIEW_TABS, false),
stack: initialStack,
stackLoaded: false,
Expand Down
Loading