File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/contrib/chat/browser/actions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import { IUntitledTextResourceEditorInput } from 'vs/workbench/common/editor';
27
27
import { CHAT_CATEGORY } from 'vs/workbench/contrib/chat/browser/actions/chatActions' ;
28
28
import { IChatWidgetService } from 'vs/workbench/contrib/chat/browser/chat' ;
29
29
import { ICodeBlockActionContext } from 'vs/workbench/contrib/chat/browser/codeBlockPart' ;
30
- import { CONTEXT_IN_CHAT_SESSION , CONTEXT_PROVIDER_EXISTS } from 'vs/workbench/contrib/chat/common/chatContextKeys' ;
30
+ import { CONTEXT_IN_CHAT_INPUT , CONTEXT_IN_CHAT_SESSION , CONTEXT_PROVIDER_EXISTS } from 'vs/workbench/contrib/chat/common/chatContextKeys' ;
31
31
import { IChatService , IDocumentContext , InteractiveSessionCopyKind } from 'vs/workbench/contrib/chat/common/chatService' ;
32
32
import { IChatResponseViewModel , isResponseVM } from 'vs/workbench/contrib/chat/common/chatViewModel' ;
33
33
import { CTX_INLINE_CHAT_VISIBLE } from 'vs/workbench/contrib/inlineChat/common/inlineChat' ;
@@ -191,7 +191,7 @@ export function registerChatCodeBlockActions() {
191
191
when : CONTEXT_IN_CHAT_SESSION ,
192
192
} ,
193
193
keybinding : {
194
- when : CONTEXT_IN_CHAT_SESSION ,
194
+ when : ContextKeyExpr . and ( CONTEXT_IN_CHAT_SESSION , CONTEXT_IN_CHAT_INPUT . negate ( ) ) ,
195
195
primary : KeyMod . CtrlCmd | KeyCode . Enter ,
196
196
mac : { primary : KeyMod . WinCtrl | KeyCode . Enter } ,
197
197
weight : KeybindingWeight . WorkbenchContrib
You can’t perform that action at this time.
0 commit comments