mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-19 17:58:39 +00:00
Hide ContinueChatInSessionAction when ChatEditingEditorContent is shown (#281381)
* Initial plan * Hide ContinueChatInSessionAction when showing ChatEditingEditorContent overlay Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: joshspicer <23246594+joshspicer@users.noreply.github.com>
This commit is contained in:
@@ -37,6 +37,7 @@ import { ChatAgentLocation } from '../../common/constants.js';
|
||||
import { PROMPT_LANGUAGE_ID } from '../../common/promptSyntax/promptTypes.js';
|
||||
import { AgentSessionProviders, getAgentSessionProviderIcon, getAgentSessionProviderName } from '../agentSessions/agentSessions.js';
|
||||
import { IChatWidgetService } from '../chat.js';
|
||||
import { ctxHasEditorModification } from '../chatEditing/chatEditingEditorContextKeys.js';
|
||||
import { CHAT_SETUP_ACTION_ID } from './chatActions.js';
|
||||
import { PromptFileVariableKind, toPromptFileVariableEntry } from '../../common/chatVariableEntries.js';
|
||||
import { NEW_CHAT_SESSION_ACTION_ID } from '../chatSessions/common.js';
|
||||
@@ -73,6 +74,7 @@ export class ContinueChatInSessionAction extends Action2 {
|
||||
ContextKeyExpr.equals(ResourceContextKey.Scheme.key, Schemas.untitled),
|
||||
ContextKeyExpr.equals(ResourceContextKey.LangId.key, PROMPT_LANGUAGE_ID),
|
||||
ContextKeyExpr.notEquals(chatEditingWidgetFileStateContextKey.key, ModifiedFileEntryState.Modified),
|
||||
ctxHasEditorModification.negate(),
|
||||
),
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user