@@ -8,7 +8,6 @@ import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
8
8
import { localize2 } from 'vs/nls' ;
9
9
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey' ;
10
10
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
11
- import { TerminalSettingId } from 'vs/platform/terminal/common/terminal' ;
12
11
import { AbstractInlineChatAction } from 'vs/workbench/contrib/inlineChat/browser/inlineChatActions' ;
13
12
import { CTX_INLINE_CHAT_EMPTY , CTX_INLINE_CHAT_FOCUSED , CTX_INLINE_CHAT_HAS_PROVIDER } from 'vs/workbench/contrib/inlineChat/common/inlineChat' ;
14
13
import { isDetachedTerminalInstance } from 'vs/workbench/contrib/terminal/browser/terminal' ;
@@ -29,7 +28,6 @@ registerActiveXtermAction({
29
28
f1 : true ,
30
29
category : AbstractInlineChatAction . category ,
31
30
precondition : ContextKeyExpr . and (
32
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
33
31
ContextKeyExpr . or ( TerminalContextKeys . processSupported , TerminalContextKeys . terminalHasBeenCreated ) ,
34
32
// TODO: This needs to change to check for a terminal location capable agent
35
33
CTX_INLINE_CHAT_HAS_PROVIDER
@@ -73,7 +71,6 @@ registerActiveXtermAction({
73
71
} ,
74
72
f1 : true ,
75
73
precondition : ContextKeyExpr . and (
76
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
77
74
ContextKeyExpr . and ( TerminalChatContextKeys . focused , TerminalChatContextKeys . visible )
78
75
) ,
79
76
run : ( _xterm , _accessor , activeInstance ) => {
@@ -96,7 +93,6 @@ registerActiveXtermAction({
96
93
f1 : true ,
97
94
category : AbstractInlineChatAction . category ,
98
95
precondition : ContextKeyExpr . and (
99
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
100
96
TerminalChatContextKeys . focused
101
97
) ,
102
98
run : ( _xterm , _accessor , activeInstance ) => {
@@ -120,7 +116,6 @@ registerActiveXtermAction({
120
116
f1 : true ,
121
117
category : AbstractInlineChatAction . category ,
122
118
precondition : ContextKeyExpr . and (
123
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
124
119
TerminalChatContextKeys . focused
125
120
) ,
126
121
run : ( _xterm , _accessor , activeInstance ) => {
@@ -148,7 +143,6 @@ registerActiveXtermAction({
148
143
} ,
149
144
f1 : true ,
150
145
precondition : ContextKeyExpr . and (
151
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
152
146
ContextKeyExpr . or ( TerminalContextKeys . processSupported , TerminalContextKeys . terminalHasBeenCreated ) ,
153
147
TerminalChatContextKeys . focused ,
154
148
TerminalChatContextKeys . responseContainsCodeBlock
@@ -168,7 +162,6 @@ registerActiveXtermAction({
168
162
title : localize2 ( 'runCommand' , 'Run Chat Command' ) ,
169
163
shortTitle : localize2 ( 'run' , 'Run' ) ,
170
164
precondition : ContextKeyExpr . and (
171
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
172
165
ContextKeyExpr . or ( TerminalContextKeys . processSupported , TerminalContextKeys . terminalHasBeenCreated ) ,
173
166
TerminalChatContextKeys . requestActive . negate ( ) ,
174
167
TerminalChatContextKeys . agentRegistered ,
@@ -201,7 +194,6 @@ registerActiveXtermAction({
201
194
title : localize2 ( 'runFirstCommand' , 'Run First Chat Command' ) ,
202
195
shortTitle : localize2 ( 'runFirst' , 'Run First' ) ,
203
196
precondition : ContextKeyExpr . and (
204
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
205
197
ContextKeyExpr . or ( TerminalContextKeys . processSupported , TerminalContextKeys . terminalHasBeenCreated ) ,
206
198
TerminalChatContextKeys . requestActive . negate ( ) ,
207
199
TerminalChatContextKeys . agentRegistered ,
@@ -233,7 +225,6 @@ registerActiveXtermAction({
233
225
title : localize2 ( 'insertCommand' , 'Insert Chat Command' ) ,
234
226
shortTitle : localize2 ( 'insert' , 'Insert' ) ,
235
227
precondition : ContextKeyExpr . and (
236
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
237
228
ContextKeyExpr . or ( TerminalContextKeys . processSupported , TerminalContextKeys . terminalHasBeenCreated ) ,
238
229
TerminalChatContextKeys . requestActive . negate ( ) ,
239
230
TerminalChatContextKeys . agentRegistered ,
@@ -266,7 +257,6 @@ registerActiveXtermAction({
266
257
title : localize2 ( 'insertFirstCommand' , 'Insert First Chat Command' ) ,
267
258
shortTitle : localize2 ( 'insertFirst' , 'Insert First' ) ,
268
259
precondition : ContextKeyExpr . and (
269
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
270
260
ContextKeyExpr . or ( TerminalContextKeys . processSupported , TerminalContextKeys . terminalHasBeenCreated ) ,
271
261
TerminalChatContextKeys . requestActive . negate ( ) ,
272
262
TerminalChatContextKeys . agentRegistered ,
@@ -297,7 +287,6 @@ registerActiveXtermAction({
297
287
id : TerminalChatCommandId . ViewInChat ,
298
288
title : localize2 ( 'viewInChat' , 'View in Chat' ) ,
299
289
precondition : ContextKeyExpr . and (
300
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
301
290
ContextKeyExpr . or ( TerminalContextKeys . processSupported , TerminalContextKeys . terminalHasBeenCreated ) ,
302
291
TerminalChatContextKeys . requestActive . negate ( ) ,
303
292
TerminalChatContextKeys . agentRegistered ,
@@ -328,7 +317,6 @@ registerActiveXtermAction({
328
317
id : TerminalChatCommandId . MakeRequest ,
329
318
title : localize2 ( 'makeChatRequest' , 'Make Chat Request' ) ,
330
319
precondition : ContextKeyExpr . and (
331
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
332
320
ContextKeyExpr . or ( TerminalContextKeys . processSupported , TerminalContextKeys . terminalHasBeenCreated ) ,
333
321
TerminalChatContextKeys . requestActive . negate ( ) ,
334
322
TerminalChatContextKeys . agentRegistered ,
@@ -359,7 +347,6 @@ registerActiveXtermAction({
359
347
id : TerminalChatCommandId . Cancel ,
360
348
title : localize2 ( 'cancelChat' , 'Cancel Chat' ) ,
361
349
precondition : ContextKeyExpr . and (
362
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
363
350
TerminalChatContextKeys . requestActive ,
364
351
TerminalChatContextKeys . agentRegistered
365
352
) ,
@@ -382,7 +369,6 @@ registerActiveXtermAction({
382
369
id : TerminalChatCommandId . FeedbackReportIssue ,
383
370
title : localize2 ( 'reportIssue' , 'Report Issue' ) ,
384
371
precondition : ContextKeyExpr . and (
385
- ContextKeyExpr . has ( `config.${ TerminalSettingId . ExperimentalInlineChat } ` ) ,
386
372
TerminalChatContextKeys . requestActive . negate ( ) ,
387
373
TerminalChatContextKeys . responseContainsCodeBlock . notEqualsTo ( undefined ) ,
388
374
TerminalChatContextKeys . responseSupportsIssueReporting
0 commit comments