Path: blob/main/src/vs/sessions/contrib/changes/common/changes.ts
13401 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';67export const CHANGES_VIEW_ID = 'workbench.view.agentSessions.changes';8export const CHANGES_VIEW_CONTAINER_ID = 'workbench.view.agentSessions.changesContainer';910export const enum ChangesViewMode {11List = 'list',12Tree = 'tree'13}1415export const enum ChangesVersionMode {16BranchChanges = 'branchChanges',17UncommittedChanges = 'uncommittedChanges',18OutgoingChanges = 'outgoingChanges',19AllChanges = 'allChanges',20LastTurn = 'lastTurn'21}2223export const enum IsolationMode {24Workspace = 'workspace',25Worktree = 'worktree'26}2728export const ChangesContextKeys = {29ChangeKind: new RawContextKey<'root' | 'folder' | 'file'>('sessions.changeKind', 'file'),30VersionMode: new RawContextKey<ChangesVersionMode>('sessions.changesVersionMode', ChangesVersionMode.BranchChanges),31ViewMode: new RawContextKey<ChangesViewMode>('sessions.changesViewMode', ChangesViewMode.List)32};3334export const ActiveSessionContextKeys = {35IsolationMode: new RawContextKey<IsolationMode>('sessions.isolationMode', IsolationMode.Workspace),36HasChanges: new RawContextKey<boolean>('sessions.hasChanges', false),37HasGitRepository: new RawContextKey<boolean>('sessions.hasGitRepository', true),38HasUpstream: new RawContextKey<boolean>('sessions.hasUpstream', false),39HasIncomingChanges: new RawContextKey<boolean>('sessions.hasIncomingChanges', false),40HasOutgoingChanges: new RawContextKey<boolean>('sessions.hasOutgoingChanges', false),41HasUncommittedChanges: new RawContextKey<boolean>('sessions.hasUncommittedChanges', true),42IsMergeBaseBranchProtected: new RawContextKey<boolean>('sessions.isMergeBaseBranchProtected', false),43HasGitHubRemote: new RawContextKey<boolean>('sessions.hasGitHubRemote', false),44HasPullRequest: new RawContextKey<boolean>('sessions.hasPullRequest', false),45HasOpenPullRequest: new RawContextKey<boolean>('sessions.hasOpenPullRequest', false),46};474849