Skip to content

Commit 641eb4c

Browse files
authored
Hide notebook chat actions from f1. (microsoft#209501)
1 parent 98ce5b3 commit 641eb4c

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.ts

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ registerAction2(class extends NotebookAction {
3939
group: 'navigation',
4040
order: 1,
4141
when: CTX_NOTEBOOK_CHAT_HAS_ACTIVE_REQUEST.negate()
42-
}
42+
},
43+
f1: false
4344
});
4445
}
4546

@@ -64,7 +65,8 @@ registerAction2(class extends NotebookCellAction {
6465
),
6566
weight: KeybindingWeight.EditorCore + 7,
6667
primary: KeyMod.CtrlCmd | KeyCode.UpArrow
67-
}
68+
},
69+
f1: false
6870
});
6971
}
7072

@@ -105,7 +107,8 @@ registerAction2(class extends NotebookAction {
105107
),
106108
weight: KeybindingWeight.EditorCore + 7,
107109
primary: KeyMod.CtrlCmd | KeyCode.DownArrow
108-
}
110+
},
111+
f1: false
109112
});
110113
}
111114

@@ -134,7 +137,8 @@ registerAction2(class extends NotebookCellAction {
134137
),
135138
weight: KeybindingWeight.EditorCore + 7,
136139
primary: KeyMod.CtrlCmd | KeyCode.UpArrow
137-
}
140+
},
141+
f1: false
138142
});
139143
}
140144

@@ -164,7 +168,8 @@ registerAction2(class extends NotebookCellAction {
164168
),
165169
weight: KeybindingWeight.EditorCore + 7,
166170
primary: KeyMod.CtrlCmd | KeyCode.DownArrow
167-
}
171+
},
172+
f1: false
168173
});
169174
}
170175

@@ -186,7 +191,8 @@ registerAction2(class extends NotebookAction {
186191
group: 'navigation',
187192
order: 1,
188193
when: CTX_NOTEBOOK_CHAT_HAS_ACTIVE_REQUEST
189-
}
194+
},
195+
f1: false
190196
});
191197
}
192198

@@ -206,7 +212,8 @@ registerAction2(class extends NotebookAction {
206212
id: MENU_CELL_CHAT_WIDGET,
207213
group: 'navigation',
208214
order: 2
209-
}
215+
},
216+
f1: false
210217
});
211218
}
212219

@@ -253,7 +260,8 @@ registerAction2(class extends NotebookAction {
253260
order: 0,
254261
when: CTX_INLINE_CHAT_RESPONSE_TYPES.notEqualsTo(InlineChatResponseTypes.OnlyMessages),
255262
}
256-
]
263+
],
264+
f1: false
257265
});
258266
}
259267

@@ -278,7 +286,8 @@ registerAction2(class extends NotebookAction {
278286
id: MENU_CELL_CHAT_WIDGET_STATUS,
279287
group: 'main',
280288
order: 1
281-
}
289+
},
290+
f1: false
282291
});
283292
}
284293

@@ -298,7 +307,8 @@ registerAction2(class extends NotebookAction {
298307
group: 'inline',
299308
order: 1,
300309
when: CTX_INLINE_CHAT_LAST_RESPONSE_TYPE.notEqualsTo(undefined),
301-
}
310+
},
311+
f1: false
302312
});
303313
}
304314

@@ -318,7 +328,8 @@ registerAction2(class extends NotebookAction {
318328
group: 'inline',
319329
order: 2,
320330
when: CTX_INLINE_CHAT_LAST_RESPONSE_TYPE.notEqualsTo(undefined),
321-
}
331+
},
332+
f1: false
322333
});
323334
}
324335

@@ -338,7 +349,8 @@ registerAction2(class extends NotebookAction {
338349
group: 'inline',
339350
order: 3,
340351
when: CTX_INLINE_CHAT_LAST_RESPONSE_TYPE.notEqualsTo(undefined),
341-
}
352+
},
353+
f1: false
342354
});
343355
}
344356

@@ -535,6 +547,7 @@ registerAction2(class extends NotebookAction {
535547
weight: KeybindingWeight.WorkbenchContrib
536548
}
537549
],
550+
f1: false
538551
});
539552
}
540553

@@ -558,6 +571,7 @@ registerAction2(class extends NotebookAction {
558571
weight: KeybindingWeight.WorkbenchContrib
559572
}
560573
],
574+
f1: false
561575
});
562576
}
563577

@@ -581,6 +595,7 @@ registerAction2(class extends NotebookAction {
581595
weight: KeybindingWeight.WorkbenchContrib
582596
}
583597
],
598+
f1: false
584599
});
585600
}
586601

@@ -600,7 +615,8 @@ registerAction2(class extends NotebookAction {
600615
when: ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED),
601616
weight: KeybindingWeight.EditorCore + 10,
602617
primary: KeyCode.UpArrow,
603-
}
618+
},
619+
f1: false
604620
});
605621
}
606622

@@ -620,7 +636,8 @@ registerAction2(class extends NotebookAction {
620636
when: ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED),
621637
weight: KeybindingWeight.EditorCore + 10,
622638
primary: KeyCode.DownArrow
623-
}
639+
},
640+
f1: false
624641
});
625642
}
626643

@@ -646,7 +663,8 @@ registerAction2(class extends NotebookCellAction {
646663
NOTEBOOK_CELL_GENERATED_BY_CHAT,
647664
ContextKeyExpr.equals(`config.${NotebookSetting.cellChat}`, true)
648665
)
649-
}
666+
},
667+
f1: false
650668
});
651669
}
652670

0 commit comments

Comments
 (0)