Skip to content

Commit c228ff9

Browse files
authored
moving open chat view command to view so that it applies when the view is moved out of the container (same as search) (microsoft#232175)
1 parent 372134d commit c228ff9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/vs/workbench/contrib/chat/browser/chatParticipantContributions.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -290,17 +290,7 @@ export class ChatExtensionPointHandler implements IWorkbenchContribution {
290290
storageId: viewContainerId,
291291
hideIfEmpty: true,
292292
order: 100,
293-
openCommandActionDescriptor: {
294-
id: viewContainerId,
295-
keybindings: {
296-
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
297-
mac: {
298-
primary: KeyMod.CtrlCmd | KeyMod.WinCtrl | KeyCode.KeyI
299-
}
300-
},
301-
order: 100
302-
},
303-
}, ViewContainerLocation.AuxiliaryBar);
293+
}, ViewContainerLocation.AuxiliaryBar, { doNotRegisterOpenCommand: true });
304294

305295
return viewContainer;
306296
}
@@ -316,6 +306,16 @@ export class ChatExtensionPointHandler implements IWorkbenchContribution {
316306
name: { value: name, original: name },
317307
canToggleVisibility: false,
318308
canMoveView: true,
309+
openCommandActionDescriptor: {
310+
id: CHAT_SIDEBAR_PANEL_ID,
311+
keybindings: {
312+
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
313+
mac: {
314+
primary: KeyMod.CtrlCmd | KeyMod.WinCtrl | KeyCode.KeyI
315+
}
316+
},
317+
order: 100
318+
},
319319
ctorDescriptor: new SyncDescriptor(ChatViewPane, [{ location: ChatAgentLocation.Panel }]),
320320
when: ContextKeyExpr.or(CONTEXT_CHAT_PANEL_PARTICIPANT_REGISTERED, CONTEXT_CHAT_EXTENSION_INVALID)
321321
}];

0 commit comments

Comments
 (0)