mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Clicking OS notification always opens secondary side bar, even if I'm working with Chat in editor (#276015)
(fix #270619)
This commit is contained in:
@@ -57,7 +57,7 @@ export interface IChatWidgetService {
|
||||
|
||||
export async function showChatWidgetInViewOrEditor(accessor: ServicesAccessor, widget: IChatWidget) {
|
||||
if ('viewId' in widget.viewContext) {
|
||||
await accessor.get(IViewsService).openView(widget.location);
|
||||
await accessor.get(IViewsService).openView(widget.viewContext.viewId);
|
||||
} else {
|
||||
const sessionResource = widget.viewModel?.sessionResource;
|
||||
if (sessionResource) {
|
||||
|
||||
Reference in New Issue
Block a user