@codingame/monaco-vscode-api 1.69.24 → 1.76.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- import './polyfill.js';
1
+ import { n, a as assertAllDefined } from './polyfill.js';
2
2
  import { I as ILifecycleService } from './missing-services.js';
3
- import { _ as __decorate, E as Emitter, N as NotificationsFilter, a as __param, b as NeverShowAgainScope } from './workspace.js';
4
- import { n, B as ButtonBar, a as attachButtonStyler, g as getServiceOverride$1, b as attachProgressBarStyler } from './layout.js';
5
- import { focusBorder, registerColor, textLinkForeground, editorErrorForeground, editorWarningForeground, editorInfoForeground, widgetShadow, contrastBorder, editorWidgetBackground, lighten, darken, editorWidgetForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
3
+ import { _ as __decorate, E as Emitter, N as NotificationsFilter, a as __param, b as NeverShowAgainScope } from './contextkey.js';
4
+ import { widgetShadow, registerColor, widgetBorder, contrastBorder, editorWidgetBackground, lighten, darken } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
6
5
  import { localize } from 'monaco-editor/esm/vs/nls.js';
7
6
  import { Disposable, toDisposable, DisposableStore, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
8
7
  import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
9
8
  import { NoOpNotification, Severity, INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
10
9
  import { isCancellationError } from 'monaco-editor/esm/vs/base/common/errors.js';
11
10
  import { toErrorMessage } from 'monaco-editor/esm/vs/base/common/errorMessage.js';
11
+ import { parseLinkedText } from 'monaco-editor/esm/vs/base/common/linkedText.js';
12
12
  import { equals, isNonEmptyArray } from 'monaco-editor/esm/vs/base/common/arrays.js';
13
13
  import { Action, ActionRunner } from 'monaco-editor/esm/vs/base/common/actions.js';
14
14
  import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
@@ -18,29 +18,33 @@ import { RawContextKey, IContextKeyService, ContextKeyExpr } from 'monaco-editor
18
18
  import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
19
19
  import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
20
20
  import { isEqual, basename, dirname, extname } from 'monaco-editor/esm/vs/base/common/resources.js';
21
+ import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
21
22
  import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
22
23
  import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
23
24
  import { WorkbenchList, IListService } from 'monaco-editor/esm/vs/platform/list/browser/listService.js';
24
25
  import { MenuRegistry, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
25
26
  import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
26
27
  import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
27
- import { registerThemingParticipant, ThemeIcon, Themable, IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
28
+ import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
28
29
  import { IClipboardService } from 'monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js';
29
- import { Dimension, addDisposableListener, EventType, EventHelper, clearNode, scheduleAtNextAnimationFrame, isAncestor, $, trackFocus, getClientArea } from 'monaco-editor/esm/vs/base/browser/dom.js';
30
+ import { B as ButtonBar, g as getServiceOverride$1 } from './layout.js';
31
+ import { Dimension, addDisposableListener, EventType, EventHelper, clearNode, scheduleAtNextAnimationFrame, isAncestor, $, trackFocus, getClientArea, isEventLike } from 'monaco-editor/esm/vs/base/browser/dom.js';
30
32
  import { DomEmitter } from 'monaco-editor/esm/vs/base/browser/event.js';
31
33
  import { Gesture, EventType as EventType$1 } from 'monaco-editor/esm/vs/base/browser/touch.js';
32
34
  import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
33
35
  import { ProgressBar } from 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
36
+ import { defaultProgressBarStyles, defaultButtonStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
34
37
  import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
35
38
  import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
36
39
  import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
37
40
  import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
38
41
  import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
42
+ import { StandardKeyboardEvent } from 'monaco-editor/esm/vs/base/browser/keyboardEvent.js';
39
43
  import { DropdownMenuActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js';
40
- import { a as assertAllDefined } from './types.js';
41
44
  import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
42
45
  import { I as IWorkbenchLayoutService } from './layoutService.js';
43
46
  import { I as IntervalCounter } from './async.js';
47
+ import { Themable, IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
44
48
  import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
45
49
  import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
46
50
  import { o as onServicesInitialized } from './tools.js';
@@ -50,13 +54,13 @@ function isErrorWithActions(obj) {
50
54
  const candidate = obj;
51
55
  return candidate instanceof Error && Array.isArray(candidate.actions);
52
56
  }
53
- var css$3 = "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-workbench > .notifications-toasts {\n\tposition: absolute;\n\tz-index: 1000;\n\tright: 3px;\n\tbottom: 26px;\n\tdisplay: none;\n\toverflow: hidden;\n}\n\n.monaco-workbench.nostatusbar > .notifications-toasts {\n\tbottom: 3px;\n}\n\n.monaco-workbench > .notifications-toasts.visible {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.monaco-workbench > .notifications-toasts .notification-toast-container {\n\toverflow: hidden; /* this ensures that the notification toast does not shine through */\n}\n\n.monaco-workbench > .notifications-toasts .notification-toast-container > .notification-toast {\n\tmargin: 8px; /* enables separation and drop shadows around toasts */\n\ttransform: translate3d(0px, 100%, 0px); /* move the notification 50px to the bottom (to prevent bleed through) */\n\topacity: 0; /* fade the toast in */\n\ttransition:\ttransform 300ms ease-out, opacity 300ms ease-out;\n}\n\n.monaco-workbench.reduce-motion > .notifications-toasts .notification-toast-container > .notification-toast {\n\ttransition:\ttransform 0ms ease-out, opacity 0ms ease-out;\n}\n\n.monaco-workbench > .notifications-toasts .notification-toast-container > .notification-toast.notification-fade-in {\n\topacity: 1;\n\ttransform: none;\n}\n\n.monaco-workbench > .notifications-toasts .notification-toast-container > .notification-toast.notification-fade-in-done {\n\topacity: 1;\n\ttransform: none;\n\ttransition:\tnone;\n}\n";
57
+ var css$3 = ".monaco-workbench>.notifications-toasts{bottom:26px;display:none;overflow:hidden;position:absolute;right:3px;z-index:1000}.monaco-workbench.nostatusbar>.notifications-toasts{bottom:3px}.monaco-workbench>.notifications-toasts.visible{display:flex;flex-direction:column}.monaco-workbench>.notifications-toasts .notification-toast-container{overflow:hidden}.monaco-workbench>.notifications-toasts .notification-toast-container>.notification-toast{border-radius:4px;margin:8px;opacity:0;transform:translate3d(0,100%,0);transition:transform .3s ease-out,opacity .3s ease-out}.monaco-workbench.reduce-motion>.notifications-toasts .notification-toast-container>.notification-toast{transition:transform 0ms ease-out,opacity 0ms ease-out}.monaco-workbench>.notifications-toasts .notification-toast-container>.notification-toast.notification-fade-in{opacity:1;transform:none}.monaco-workbench>.notifications-toasts .notification-toast-container>.notification-toast.notification-fade-in-done{opacity:1;transform:none;transition:none}.monaco-workbench>.notifications-toasts .codicon.codicon-error{color:var(--vscode-notificationsErrorIcon-foreground)!important}.monaco-workbench>.notifications-toasts .codicon.codicon-warning{color:var(--vscode-notificationsWarningIcon-foreground)!important}.monaco-workbench>.notifications-toasts .codicon.codicon-info{color:var(--vscode-notificationsInfoIcon-foreground)!important}";
54
58
  n(css$3,{});
55
- var css$2 = "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/** Notification: Container */\n\n.monaco-workbench .notifications-list-container .notification-list-item {\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-direction: column-reverse; /* the details row appears first in order for better keyboard access to notification buttons */\n\tpadding: 10px 5px;\n\theight: 100%;\n\tbox-sizing: border-box;\n}\n\n.monaco-workbench .notifications-list-container .notification-offset-helper {\n\topacity: 0;\n\tposition: absolute;\n\tline-height: 22px;\n\tword-wrap: break-word; /* never overflow long words, but break to next line */\n}\n\n/** Notification: Main Row */\n\n.monaco-workbench .notifications-list-container .notification-list-item > .notification-list-item-main-row {\n\tdisplay: flex;\n\tflex-grow: 1;\n}\n\n/** Notification: Icon */\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-icon {\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 0 0 16px;\n\theight: 22px;\n\tmargin-right: 4px;\n\tmargin-left: 4px;\n\tfont-size: 18px;\n\tbackground-position: center;\n\tbackground-repeat: no-repeat;\n}\n\n/** Notification: Message */\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message {\n\tline-height: 22px;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tflex: 1; /* let the message always grow */\n\tuser-select: text;\n\t-webkit-user-select: text;\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message a:focus {\n\toutline-width: 1px;\n\toutline-style: solid;\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item.expanded .notification-list-item-message {\n\twhite-space: normal;\n\tword-wrap: break-word; /* never overflow long words, but break to next line */\n}\n\n/** Notification: Toolbar Container */\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-toolbar-container {\n\tdisplay: none;\n\theight: 22px;\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item:hover .notification-list-item-toolbar-container,\n.monaco-workbench .notifications-list-container .monaco-list-row.focused .notification-list-item .notification-list-item-toolbar-container,\n.monaco-workbench .notifications-list-container .notification-list-item.expanded .notification-list-item-toolbar-container {\n\tdisplay: block;\n}\n\n/** Notification: Details Row */\n\n.monaco-workbench .notifications-list-container .notification-list-item > .notification-list-item-details-row {\n\tdisplay: none;\n\talign-items: center;\n\tpadding-left: 5px;\n\toverflow: hidden; /* details row should never overflow */\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item.expanded > .notification-list-item-details-row {\n\tdisplay: flex;\n}\n\n/** Notification: Source */\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-source {\n\tflex: 1;\n\tfont-size: 12px;\n\toverflow: hidden; /* always give away space to buttons container */\n\ttext-overflow: ellipsis;\n}\n\n/** Notification: Buttons */\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container {\n\tdisplay: flex;\n\toverflow: hidden;\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container > .monaco-button-dropdown,\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container > .monaco-button {\n\tmargin: 4px 5px; /* allows button focus outline to be visible */\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-button {\n\toutline-offset: 2px !important;\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-text-button {\n\twidth: fit-content;\n\twidth: -moz-fit-content;\n\tpadding: 5px 10px;\n\tdisplay: inline-block;\t/* to enable ellipsis in text overflow */\n\tfont-size: 12px;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-dropdown-button {\n\tpadding: 5px\n}\n\n/** Notification: Progress */\n\n.monaco-workbench .notifications-list-container .progress-bit {\n\theight: 2px;\n\tbottom: 0;\n}\n";
59
+ var css$2 = ".monaco-workbench .notifications-list-container{background:var(--vscode-notifications-background);border-radius:inherit;color:var(--vscode-notifications-foreground);outline-color:var(--vscode-contrastBorder)}.monaco-workbench .notifications-list-container .notification-list-item{border-radius:4px;box-sizing:border-box;display:flex;flex-direction:column;flex-direction:column-reverse;height:100%;padding:10px 5px}.monaco-workbench .notifications-list-container .notification-offset-helper{word-wrap:break-word;line-height:22px;opacity:0;position:absolute}.monaco-workbench .notifications-list-container .monaco-scrollable-element{border-radius:4px}.monaco-workbench .notifications-list-container .notification-list-item>.notification-list-item-main-row{display:flex;flex-grow:1}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-icon{align-items:center;background-position:50%;background-repeat:no-repeat;display:flex;flex:0 0 16px;font-size:18px;height:22px;margin-left:4px;margin-right:4px}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message{flex:1;line-height:22px;overflow:hidden;text-overflow:ellipsis;user-select:text;-webkit-user-select:text}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message a{color:var(--vscode-notificationLink-foreground)}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message a:focus{outline-color:var(--vscode-focusBorder);outline-style:solid;outline-width:1px}.monaco-workbench .notifications-list-container .notification-list-item.expanded .notification-list-item-message{word-wrap:break-word;white-space:normal}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-toolbar-container{display:none;height:22px}.monaco-workbench .notifications-list-container .monaco-list-row.focused .notification-list-item .notification-list-item-toolbar-container,.monaco-workbench .notifications-list-container .notification-list-item.expanded .notification-list-item-toolbar-container,.monaco-workbench .notifications-list-container .notification-list-item:hover .notification-list-item-toolbar-container{display:block}.monaco-workbench .notifications-list-container .notification-list-item>.notification-list-item-details-row{align-items:center;display:none;overflow:hidden;padding-left:5px}.monaco-workbench .notifications-list-container .notification-list-item.expanded>.notification-list-item-details-row{display:flex}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-source{flex:1;font-size:12px;overflow:hidden;text-overflow:ellipsis}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container{display:flex;overflow:hidden}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container>.monaco-button,.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container>.monaco-button-dropdown{margin:4px 5px}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-button{outline-offset:2px!important}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-text-button{display:inline-block;font-size:12px;overflow:hidden;padding:4px 10px;text-overflow:ellipsis;width:fit-content}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-dropdown-button{padding:5px}.monaco-workbench .notifications-list-container .progress-bit{bottom:0;height:2px}";
56
60
  n(css$2,{});
57
61
  const NOTIFICATIONS_CENTER_BORDER = ( (registerColor('notificationCenter.border', {
58
- dark: null,
59
- light: null,
62
+ dark: widgetBorder,
63
+ light: widgetBorder,
60
64
  hcDark: contrastBorder,
61
65
  hcLight: contrastBorder
62
66
  }, (localize(
@@ -64,23 +68,14 @@ const NOTIFICATIONS_CENTER_BORDER = ( (registerColor('notificationCenter.border'
64
68
  "Notifications center border color. Notifications slide in from the bottom right of the window."
65
69
  )))));
66
70
  const NOTIFICATIONS_TOAST_BORDER = ( (registerColor('notificationToast.border', {
67
- dark: null,
68
- light: null,
71
+ dark: widgetBorder,
72
+ light: widgetBorder,
69
73
  hcDark: contrastBorder,
70
74
  hcLight: contrastBorder
71
75
  }, (localize(
72
76
  'notificationToastBorder',
73
77
  "Notification toast border color. Notifications slide in from the bottom right of the window."
74
78
  )))));
75
- const NOTIFICATIONS_FOREGROUND = ( (registerColor('notifications.foreground', {
76
- dark: editorWidgetForeground,
77
- light: editorWidgetForeground,
78
- hcDark: editorWidgetForeground,
79
- hcLight: editorWidgetForeground
80
- }, (localize(
81
- 'notificationsForeground',
82
- "Notifications foreground color. Notifications slide in from the bottom right of the window."
83
- )))));
84
79
  const NOTIFICATIONS_BACKGROUND = ( (registerColor('notifications.background', {
85
80
  dark: editorWidgetBackground,
86
81
  light: editorWidgetBackground,
@@ -90,15 +85,6 @@ const NOTIFICATIONS_BACKGROUND = ( (registerColor('notifications.background', {
90
85
  'notificationsBackground',
91
86
  "Notifications background color. Notifications slide in from the bottom right of the window."
92
87
  )))));
93
- const NOTIFICATIONS_LINKS = ( (registerColor('notificationLink.foreground', {
94
- dark: textLinkForeground,
95
- light: textLinkForeground,
96
- hcDark: textLinkForeground,
97
- hcLight: textLinkForeground
98
- }, (localize(
99
- 'notificationsLink',
100
- "Notification links foreground color. Notifications slide in from the bottom right of the window."
101
- )))));
102
88
  const NOTIFICATIONS_CENTER_HEADER_FOREGROUND = ( (registerColor('notificationCenterHeader.foreground', {
103
89
  dark: null,
104
90
  light: null,
@@ -117,75 +103,6 @@ const NOTIFICATIONS_CENTER_HEADER_BACKGROUND = ( (registerColor('notificationCen
117
103
  'notificationCenterHeaderBackground',
118
104
  "Notifications center header background color. Notifications slide in from the bottom right of the window."
119
105
  )))));
120
- const NOTIFICATIONS_BORDER = ( (registerColor('notifications.border', {
121
- dark: NOTIFICATIONS_CENTER_HEADER_BACKGROUND,
122
- light: NOTIFICATIONS_CENTER_HEADER_BACKGROUND,
123
- hcDark: NOTIFICATIONS_CENTER_HEADER_BACKGROUND,
124
- hcLight: NOTIFICATIONS_CENTER_HEADER_BACKGROUND
125
- }, (localize(
126
- 'notificationsBorder',
127
- "Notifications border color separating from other notifications in the notifications center. Notifications slide in from the bottom right of the window."
128
- )))));
129
- const NOTIFICATIONS_ERROR_ICON_FOREGROUND = ( (registerColor('notificationsErrorIcon.foreground', {
130
- dark: editorErrorForeground,
131
- light: editorErrorForeground,
132
- hcDark: editorErrorForeground,
133
- hcLight: editorErrorForeground
134
- }, (localize(
135
- 'notificationsErrorIconForeground',
136
- "The color used for the icon of error notifications. Notifications slide in from the bottom right of the window."
137
- )))));
138
- const NOTIFICATIONS_WARNING_ICON_FOREGROUND = ( (registerColor('notificationsWarningIcon.foreground', {
139
- dark: editorWarningForeground,
140
- light: editorWarningForeground,
141
- hcDark: editorWarningForeground,
142
- hcLight: editorWarningForeground
143
- }, (localize(
144
- 'notificationsWarningIconForeground',
145
- "The color used for the icon of warning notifications. Notifications slide in from the bottom right of the window."
146
- )))));
147
- const NOTIFICATIONS_INFO_ICON_FOREGROUND = ( (registerColor('notificationsInfoIcon.foreground', {
148
- dark: editorInfoForeground,
149
- light: editorInfoForeground,
150
- hcDark: editorInfoForeground,
151
- hcLight: editorInfoForeground
152
- }, (localize(
153
- 'notificationsInfoIconForeground',
154
- "The color used for the icon of info notifications. Notifications slide in from the bottom right of the window."
155
- )))));
156
- class LinkedText {
157
- constructor(nodes) {
158
- this.nodes = nodes;
159
- }
160
- toString() {
161
- return this.nodes.map(node => typeof node === 'string' ? node : node.label).join('');
162
- }
163
- }
164
- const LINK_REGEX = /\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: ("|')([^\3]+)(\3))?\)/gi;
165
- function parseLinkedText(text) {
166
- const result = [];
167
- let index = 0;
168
- let match;
169
- while (match = LINK_REGEX.exec(text)) {
170
- if (match.index - index > 0) {
171
- result.push(text.substring(index, match.index));
172
- }
173
- const [, label, href, , title] = match;
174
- if (title) {
175
- result.push({ label, href, title });
176
- }
177
- else {
178
- result.push({ label, href });
179
- }
180
- index = match.index + match[0].length;
181
- }
182
- if (index < text.length) {
183
- result.push(text.substring(index));
184
- }
185
- return (
186
- (new LinkedText(result))
187
- );
188
- }
189
106
  class NotificationHandle extends Disposable {
190
107
  constructor(item, onClose) {
191
108
  super();
@@ -245,9 +162,7 @@ class NotificationsModel extends Disposable {
245
162
  return NotificationsModel.NO_OP_NOTIFICATION;
246
163
  }
247
164
  const duplicate = this.findNotification(item);
248
- if (duplicate) {
249
- duplicate.close();
250
- }
165
+ duplicate?.close();
251
166
  this._notifications.splice(0, 0, item);
252
167
  this._onDidChangeNotification.fire({ item, index: 0, kind: 0 });
253
168
  return (
@@ -361,28 +276,6 @@ class NotificationViewItemProgress extends Disposable {
361
276
  }
362
277
  }
363
278
  class NotificationViewItem extends Disposable {
364
- constructor(id, _severity, _sticky, _silent, _message, _source, progress, actions) {
365
- super();
366
- this.id = id;
367
- this._severity = _severity;
368
- this._sticky = _sticky;
369
- this._silent = _silent;
370
- this._message = _message;
371
- this._source = _source;
372
- this._visible = false;
373
- this._onDidChangeExpansion = this._register(( (new Emitter())));
374
- this.onDidChangeExpansion = this._onDidChangeExpansion.event;
375
- this._onDidClose = this._register(( (new Emitter())));
376
- this.onDidClose = this._onDidClose.event;
377
- this._onDidChangeContent = this._register(( (new Emitter())));
378
- this.onDidChangeContent = this._onDidChangeContent.event;
379
- this._onDidChangeVisibility = this._register(( (new Emitter())));
380
- this.onDidChangeVisibility = this._onDidChangeVisibility.event;
381
- if (progress) {
382
- this.setProgress(progress);
383
- }
384
- this.setActions(actions);
385
- }
386
279
  static create(notification, filter = NotificationsFilter.OFF) {
387
280
  if (!notification || !notification.message || isCancellationError(notification.message)) {
388
281
  return undefined;
@@ -437,6 +330,28 @@ class NotificationViewItem extends Disposable {
437
330
  const linkedText = parseLinkedText(message);
438
331
  return { raw, linkedText, original: input };
439
332
  }
333
+ constructor(id, _severity, _sticky, _silent, _message, _source, progress, actions) {
334
+ super();
335
+ this.id = id;
336
+ this._severity = _severity;
337
+ this._sticky = _sticky;
338
+ this._silent = _silent;
339
+ this._message = _message;
340
+ this._source = _source;
341
+ this._visible = false;
342
+ this._onDidChangeExpansion = this._register(( (new Emitter())));
343
+ this.onDidChangeExpansion = this._onDidChangeExpansion.event;
344
+ this._onDidClose = this._register(( (new Emitter())));
345
+ this.onDidClose = this._onDidClose.event;
346
+ this._onDidChangeContent = this._register(( (new Emitter())));
347
+ this.onDidChangeContent = this._onDidChangeContent.event;
348
+ this._onDidChangeVisibility = this._register(( (new Emitter())));
349
+ this.onDidChangeVisibility = this._onDidChangeVisibility.event;
350
+ if (progress) {
351
+ this.setProgress(progress);
352
+ }
353
+ this.setActions(actions);
354
+ }
440
355
  setProgress(progress) {
441
356
  if (progress.infinite) {
442
357
  this.progress.infinite();
@@ -627,7 +542,7 @@ class StatusMessageViewItem {
627
542
  return { message, options };
628
543
  }
629
544
  }
630
- var css$1 = "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-toolbar-container .action-item,\n.monaco-workbench > .notifications-center > .notifications-center-header > .notifications-center-header-toolbar .action-item {\n\tmargin-right: 4px;\n}\n\n.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-toolbar-container .action-item:first-child,\n.monaco-workbench > .notifications-center > .notifications-center-header > .notifications-center-header-toolbar .action-item:first-child {\n\tmargin-left: 4px;\n}\n";
545
+ var css$1 = ".monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-toolbar-container .action-item,.monaco-workbench>.notifications-center>.notifications-center-header>.notifications-center-header-toolbar .action-item{margin-right:4px}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-toolbar-container .action-item:first-child,.monaco-workbench>.notifications-center>.notifications-center-header>.notifications-center-header-toolbar .action-item:first-child{margin-left:4px}";
631
546
  n(css$1,{});
632
547
  function notificationToMetrics(message, source, silent) {
633
548
  return {
@@ -732,14 +647,20 @@ let ResourceContextKey = class ResourceContextKey {
732
647
  this._resourceKey.set(value ? ( (value.toString())) : null);
733
648
  this._schemeKey.set(value ? value.scheme : null);
734
649
  this._filenameKey.set(value ? basename(value) : null);
735
- this._dirnameKey.set(value ? dirname(value).fsPath : null);
736
- this._pathKey.set(value ? value.fsPath : null);
650
+ this._dirnameKey.set(value ? this.uriToPath(dirname(value)) : null);
651
+ this._pathKey.set(value ? this.uriToPath(value) : null);
737
652
  this._setLangId();
738
653
  this._extensionKey.set(value ? extname(value) : null);
739
654
  this._hasResource.set(Boolean(value));
740
655
  this._isFileSystemResource.set(value ? this._fileService.hasProvider(value) : false);
741
656
  });
742
657
  }
658
+ uriToPath(uri) {
659
+ if (uri.scheme === Schemas.file) {
660
+ return uri.fsPath;
661
+ }
662
+ return uri.path;
663
+ }
743
664
  reset() {
744
665
  this._value = undefined;
745
666
  this._contextKeyService.bufferChangeEvents(() => {
@@ -877,9 +798,7 @@ function registerNotificationCommands(center, toasts, model) {
877
798
  primary: 17 ,
878
799
  handler: (accessor, args) => {
879
800
  const notification = getNotificationFromContext(accessor.get(IListService), args);
880
- if (notification) {
881
- notification.expand();
882
- }
801
+ notification?.expand();
883
802
  }
884
803
  });
885
804
  KeybindingsRegistry.registerCommandAndKeybindingRule({
@@ -889,9 +808,7 @@ function registerNotificationCommands(center, toasts, model) {
889
808
  primary: 15 ,
890
809
  handler: (accessor, args) => {
891
810
  const notification = getNotificationFromContext(accessor.get(IListService), args);
892
- if (notification) {
893
- notification.collapse();
894
- }
811
+ notification?.collapse();
895
812
  }
896
813
  });
897
814
  KeybindingsRegistry.registerCommandAndKeybindingRule({
@@ -902,9 +819,7 @@ function registerNotificationCommands(center, toasts, model) {
902
819
  secondary: [3 ],
903
820
  handler: accessor => {
904
821
  const notification = getNotificationFromContext(accessor.get(IListService));
905
- if (notification) {
906
- notification.toggle();
907
- }
822
+ notification?.toggle();
908
823
  }
909
824
  });
910
825
  KeybindingsRegistry.registerKeybindingRule({
@@ -924,7 +839,7 @@ function registerNotificationCommands(center, toasts, model) {
924
839
  weight: 200 ,
925
840
  when: ( (ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext))),
926
841
  primary: 18 ,
927
- handler: (accessor) => {
842
+ handler: () => {
928
843
  toasts.focusNext();
929
844
  }
930
845
  });
@@ -933,7 +848,7 @@ function registerNotificationCommands(center, toasts, model) {
933
848
  weight: 200 ,
934
849
  when: ( (ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext))),
935
850
  primary: 16 ,
936
- handler: (accessor) => {
851
+ handler: () => {
937
852
  toasts.focusPrevious();
938
853
  }
939
854
  });
@@ -943,7 +858,7 @@ function registerNotificationCommands(center, toasts, model) {
943
858
  when: ( (ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext))),
944
859
  primary: 11 ,
945
860
  secondary: [14 ],
946
- handler: (accessor) => {
861
+ handler: () => {
947
862
  toasts.focusFirst();
948
863
  }
949
864
  });
@@ -953,7 +868,7 @@ function registerNotificationCommands(center, toasts, model) {
953
868
  when: ( (ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext))),
954
869
  primary: 12 ,
955
870
  secondary: [13 ],
956
- handler: (accessor) => {
871
+ handler: () => {
957
872
  toasts.focusLast();
958
873
  }
959
874
  });
@@ -1177,16 +1092,23 @@ class NotificationMessageRenderer {
1177
1092
  else if (!title) {
1178
1093
  title = node.href;
1179
1094
  }
1180
- const anchor = $('a', { href: node.href, title: title, }, node.label);
1095
+ const anchor = $('a', { href: node.href, title, tabIndex: 0 }, node.label);
1181
1096
  if (actionHandler) {
1182
- const onPointer = (e) => {
1183
- EventHelper.stop(e, true);
1097
+ const handleOpen = (e) => {
1098
+ if (isEventLike(e)) {
1099
+ EventHelper.stop(e, true);
1100
+ }
1184
1101
  actionHandler.callback(node.href);
1185
1102
  };
1186
- const onClick = actionHandler.toDispose.add(( (new DomEmitter(anchor, 'click')))).event;
1103
+ const onClick = actionHandler.toDispose.add(( (new DomEmitter(anchor, EventType.CLICK)))).event;
1104
+ const onKeydown = actionHandler.toDispose.add(( (new DomEmitter(anchor, EventType.KEY_DOWN)))).event;
1105
+ const onSpaceOrEnter = actionHandler.toDispose.add(Event.chain(onKeydown)).filter(e => {
1106
+ const event = ( (new StandardKeyboardEvent(e)));
1107
+ return event.equals(10 ) || event.equals(3 );
1108
+ }).event;
1187
1109
  actionHandler.toDispose.add(Gesture.addTarget(anchor));
1188
1110
  const onTap = actionHandler.toDispose.add(( (new DomEmitter(anchor, EventType$1.Tap)))).event;
1189
- Event.any(onClick, onTap)(onPointer, null, actionHandler.toDispose);
1111
+ Event.any(onClick, onTap, onSpaceOrEnter)(handleOpen, null, actionHandler.toDispose);
1190
1112
  }
1191
1113
  messageContainer.appendChild(anchor);
1192
1114
  }
@@ -1195,9 +1117,8 @@ class NotificationMessageRenderer {
1195
1117
  }
1196
1118
  }
1197
1119
  let NotificationRenderer = class NotificationRenderer {
1198
- constructor(actionRunner, themeService, contextMenuService, instantiationService) {
1120
+ constructor(actionRunner, contextMenuService, instantiationService) {
1199
1121
  this.actionRunner = actionRunner;
1200
- this.themeService = themeService;
1201
1122
  this.contextMenuService = contextMenuService;
1202
1123
  this.instantiationService = instantiationService;
1203
1124
  }
@@ -1249,8 +1170,7 @@ let NotificationRenderer = class NotificationRenderer {
1249
1170
  data.mainRow.appendChild(data.icon);
1250
1171
  data.mainRow.appendChild(data.message);
1251
1172
  data.mainRow.appendChild(toolbarContainer);
1252
- data.progress = ( (new ProgressBar(container)));
1253
- data.toDispose.add(attachProgressBarStyler(data.progress, this.themeService));
1173
+ data.progress = ( (new ProgressBar(container, defaultProgressBarStyles)));
1254
1174
  data.toDispose.add(data.progress);
1255
1175
  data.renderer = this.instantiationService.createInstance(NotificationTemplateRenderer, data, this.actionRunner);
1256
1176
  data.toDispose.add(data.renderer);
@@ -1265,18 +1185,16 @@ let NotificationRenderer = class NotificationRenderer {
1265
1185
  };
1266
1186
  NotificationRenderer.TEMPLATE_ID = 'notification';
1267
1187
  NotificationRenderer = ( (__decorate([
1268
- ( (__param(1, IThemeService))),
1269
- ( (__param(2, IContextMenuService))),
1270
- ( (__param(3, IInstantiationService)))
1188
+ ( (__param(1, IContextMenuService))),
1189
+ ( (__param(2, IInstantiationService)))
1271
1190
  ], NotificationRenderer)));
1272
1191
  let NotificationTemplateRenderer = class NotificationTemplateRenderer extends Disposable {
1273
- constructor(template, actionRunner, openerService, instantiationService, themeService, keybindingService, contextMenuService) {
1192
+ constructor(template, actionRunner, openerService, instantiationService, keybindingService, contextMenuService) {
1274
1193
  super();
1275
1194
  this.template = template;
1276
1195
  this.actionRunner = actionRunner;
1277
1196
  this.openerService = openerService;
1278
1197
  this.instantiationService = instantiationService;
1279
- this.themeService = themeService;
1280
1198
  this.keybindingService = keybindingService;
1281
1199
  this.contextMenuService = contextMenuService;
1282
1200
  this.inputDisposables = this._register(( (new DisposableStore())));
@@ -1326,10 +1244,10 @@ let NotificationTemplateRenderer = class NotificationTemplateRenderer extends Di
1326
1244
  renderSeverity(notification) {
1327
1245
  NotificationTemplateRenderer.SEVERITIES.forEach(severity => {
1328
1246
  if (notification.severity !== severity) {
1329
- this.template.icon.classList.remove(...this.toSeverityIcon(severity).classNamesArray);
1247
+ this.template.icon.classList.remove(...ThemeIcon.asClassNameArray(this.toSeverityIcon(severity)));
1330
1248
  }
1331
1249
  });
1332
- this.template.icon.classList.add(...this.toSeverityIcon(notification.severity).classNamesArray);
1250
+ this.template.icon.classList.add(...ThemeIcon.asClassNameArray(this.toSeverityIcon(notification.severity)));
1333
1251
  }
1334
1252
  renderMessage(notification) {
1335
1253
  clearNode(this.template.message);
@@ -1344,10 +1262,6 @@ let NotificationTemplateRenderer = class NotificationTemplateRenderer extends Di
1344
1262
  else {
1345
1263
  this.template.message.removeAttribute('title');
1346
1264
  }
1347
- const links = this.template.message.querySelectorAll('a');
1348
- for (let i = 0; i < links.length; i++) {
1349
- links.item(i).tabIndex = -1;
1350
- }
1351
1265
  return messageOverflows;
1352
1266
  }
1353
1267
  renderSecondaryActions(notification, messageOverflows) {
@@ -1408,7 +1322,8 @@ let NotificationTemplateRenderer = class NotificationTemplateRenderer extends Di
1408
1322
  const action = primaryActions[i];
1409
1323
  const options = {
1410
1324
  title: true,
1411
- secondary: i > 0
1325
+ secondary: i > 0,
1326
+ ...defaultButtonStyles
1412
1327
  };
1413
1328
  const dropdownActions = action instanceof ChoiceAction ? action.menu : undefined;
1414
1329
  const button = this.inputDisposables.add(dropdownActions ?
@@ -1426,7 +1341,6 @@ let NotificationTemplateRenderer = class NotificationTemplateRenderer extends Di
1426
1341
  }
1427
1342
  actionRunner.run(action);
1428
1343
  }));
1429
- this.inputDisposables.add(attachButtonStyler(button, this.themeService));
1430
1344
  }
1431
1345
  }
1432
1346
  }
@@ -1469,13 +1383,12 @@ NotificationTemplateRenderer.SEVERITIES = [Severity.Info, Severity.Warning, Seve
1469
1383
  NotificationTemplateRenderer = ( (__decorate([
1470
1384
  ( (__param(2, IOpenerService))),
1471
1385
  ( (__param(3, IInstantiationService))),
1472
- ( (__param(4, IThemeService))),
1473
- ( (__param(5, IKeybindingService))),
1474
- ( (__param(6, IContextMenuService)))
1386
+ ( (__param(4, IKeybindingService))),
1387
+ ( (__param(5, IContextMenuService)))
1475
1388
  ], NotificationTemplateRenderer)));
1476
- let NotificationsList = class NotificationsList extends Themable {
1477
- constructor(container, options, instantiationService, themeService, contextMenuService) {
1478
- super(themeService);
1389
+ let NotificationsList = class NotificationsList extends Disposable {
1390
+ constructor(container, options, instantiationService, contextMenuService) {
1391
+ super();
1479
1392
  this.container = container;
1480
1393
  this.options = options;
1481
1394
  this.instantiationService = instantiationService;
@@ -1563,7 +1476,6 @@ let NotificationsList = class NotificationsList extends Themable {
1563
1476
  }
1564
1477
  }));
1565
1478
  this.container.appendChild(this.listContainer);
1566
- this.updateStyles();
1567
1479
  }
1568
1480
  updateNotificationsList(start, deleteCount, items = []) {
1569
1481
  const [list, listContainer] = assertAllDefined(this.list, this.listContainer);
@@ -1630,16 +1542,6 @@ let NotificationsList = class NotificationsList extends Themable {
1630
1542
  }
1631
1543
  return isAncestor(document.activeElement, this.listContainer);
1632
1544
  }
1633
- updateStyles() {
1634
- if (this.listContainer) {
1635
- const foreground = this.getColor(NOTIFICATIONS_FOREGROUND);
1636
- this.listContainer.style.color = foreground ? foreground : '';
1637
- const background = this.getColor(NOTIFICATIONS_BACKGROUND);
1638
- this.listContainer.style.background = background ? background : '';
1639
- const outlineColor = this.getColor(contrastBorder);
1640
- this.listContainer.style.outlineColor = outlineColor ? outlineColor : '';
1641
- }
1642
- }
1643
1545
  layout(width, maxHeight) {
1644
1546
  if (this.listContainer && this.list) {
1645
1547
  this.listContainer.style.width = `${width}px`;
@@ -1656,46 +1558,8 @@ let NotificationsList = class NotificationsList extends Themable {
1656
1558
  };
1657
1559
  NotificationsList = ( (__decorate([
1658
1560
  ( (__param(2, IInstantiationService))),
1659
- ( (__param(3, IThemeService))),
1660
- ( (__param(4, IContextMenuService)))
1561
+ ( (__param(3, IContextMenuService)))
1661
1562
  ], NotificationsList)));
1662
- registerThemingParticipant((theme, collector) => {
1663
- const linkColor = theme.getColor(NOTIFICATIONS_LINKS);
1664
- if (linkColor) {
1665
- collector.addRule(`.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message a { color: ${linkColor}; }`);
1666
- }
1667
- const focusOutline = theme.getColor(focusBorder);
1668
- if (focusOutline) {
1669
- collector.addRule(`
1670
- .monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message a:focus {
1671
- outline-color: ${focusOutline};
1672
- }`);
1673
- }
1674
- const notificationErrorIconForegroundColor = theme.getColor(NOTIFICATIONS_ERROR_ICON_FOREGROUND);
1675
- if (notificationErrorIconForegroundColor) {
1676
- collector.addRule(`
1677
- .monaco-workbench .notifications-center ${Codicon.error.cssSelector},
1678
- .monaco-workbench .notifications-toasts ${Codicon.error.cssSelector} {
1679
- color: ${notificationErrorIconForegroundColor};
1680
- }`);
1681
- }
1682
- const notificationWarningIconForegroundColor = theme.getColor(NOTIFICATIONS_WARNING_ICON_FOREGROUND);
1683
- if (notificationWarningIconForegroundColor) {
1684
- collector.addRule(`
1685
- .monaco-workbench .notifications-center ${Codicon.warning.cssSelector},
1686
- .monaco-workbench .notifications-toasts ${Codicon.warning.cssSelector} {
1687
- color: ${notificationWarningIconForegroundColor};
1688
- }`);
1689
- }
1690
- const notificationInfoIconForegroundColor = theme.getColor(NOTIFICATIONS_INFO_ICON_FOREGROUND);
1691
- if (notificationInfoIconForegroundColor) {
1692
- collector.addRule(`
1693
- .monaco-workbench .notifications-center ${Codicon.info.cssSelector},
1694
- .monaco-workbench .notifications-toasts ${Codicon.info.cssSelector} {
1695
- color: ${notificationInfoIconForegroundColor};
1696
- }`);
1697
- }
1698
- });
1699
1563
  var ToastVisibility;
1700
1564
  ( ((function(ToastVisibility) {
1701
1565
  ToastVisibility[ToastVisibility["HIDDEN_OR_VISIBLE"] = 0] = "HIDDEN_OR_VISIBLE";
@@ -1703,6 +1567,7 @@ var ToastVisibility;
1703
1567
  ToastVisibility[ToastVisibility["VISIBLE"] = 2] = "VISIBLE";
1704
1568
  })(ToastVisibility || (ToastVisibility = {}))));
1705
1569
  let NotificationsToasts = class NotificationsToasts extends Themable {
1570
+ get isVisible() { return !!this._isVisible; }
1706
1571
  constructor(container, model, instantiationService, layoutService, themeService, editorGroupService, contextKeyService, lifecycleService, hostService) {
1707
1572
  super(themeService);
1708
1573
  this.container = container;
@@ -1722,7 +1587,6 @@ let NotificationsToasts = class NotificationsToasts extends Themable {
1722
1587
  this.addedToastsIntervalCounter = ( (new IntervalCounter(NotificationsToasts.SPAM_PROTECTION.interval)));
1723
1588
  this.registerListeners();
1724
1589
  }
1725
- get isVisible() { return !!this._isVisible; }
1726
1590
  registerListeners() {
1727
1591
  this._register(this.layoutService.onDidLayout(dimension => this.layout(Dimension.lift(dimension))));
1728
1592
  this.lifecycleService.when(3 ).then(() => {
@@ -2285,7 +2149,7 @@ NotificationService.DND_SETTINGS_KEY = 'notifications.doNotDisturbMode';
2285
2149
  NotificationService = ( (__decorate([
2286
2150
  ( (__param(0, IStorageService)))
2287
2151
  ], NotificationService)));
2288
- var css = "/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-workbench > .notifications-center {\n\tposition: absolute;\n\tz-index: 1000;\n\tright: 8px;\n\tbottom: 31px;\n\tdisplay: none;\n\toverflow: hidden;\n}\n\n.monaco-workbench.nostatusbar > .notifications-center {\n\tbottom: 8px;\n}\n\n.monaco-workbench > .notifications-center.visible {\n\tdisplay: block;\n}\n\n/* Header */\n\n.monaco-workbench > .notifications-center > .notifications-center-header {\n\tdisplay: flex;\n\talign-items: center;\n\tpadding-left: 8px;\n\tpadding-right: 5px;\n\theight: 35px;\n}\n\n.monaco-workbench > .notifications-center > .notifications-center-header > .notifications-center-header-title {\n\ttext-transform: uppercase;\n\tfont-size: 11px;\n}\n\n.monaco-workbench > .notifications-center > .notifications-center-header > .notifications-center-header-toolbar {\n\tflex: 1;\n}\n\n.monaco-workbench > .notifications-center > .notifications-center-header > .notifications-center-header-toolbar .actions-container {\n\tjustify-content: flex-end;\n}\n";
2152
+ var css = ".monaco-workbench>.notifications-center{border-radius:4px;bottom:31px;display:none;overflow:hidden;position:absolute;right:8px;z-index:1000}.monaco-workbench.nostatusbar>.notifications-center{bottom:8px}.monaco-workbench>.notifications-center.visible{display:block}.monaco-workbench>.notifications-center>.notifications-center-header{align-items:center;display:flex;height:35px;padding-left:8px;padding-right:5px}.monaco-workbench>.notifications-center>.notifications-center-header>.notifications-center-header-title{font-size:11px;text-transform:uppercase}.monaco-workbench>.notifications-center>.notifications-center-header>.notifications-center-header-toolbar{flex:1}.monaco-workbench>.notifications-center>.notifications-center-header>.notifications-center-header-toolbar .actions-container{justify-content:flex-end}.monaco-workbench>.notifications-center .notifications-list-container .monaco-list-row[data-last-element=false]>.notification-list-item{border-bottom:1px solid var(--vscode-notifications-border)}.monaco-workbench>.notifications-center .notifications-list-container,.monaco-workbench>.notifications-center .notifications-list-container .monaco-scrollable-element,.monaco-workbench>.notifications-center .notifications-list-container .notification-list-item{border-radius:0}.monaco-workbench>.notifications-center .codicon.codicon-error{color:var(--vscode-notificationsErrorIcon-foreground)}.monaco-workbench>.notifications-center .codicon.codicon-warning{color:var(--vscode-notificationsWarningIcon-foreground)}.monaco-workbench>.notifications-center .codicon.codicon-info{color:var(--vscode-notificationsInfoIcon-foreground)}";
2289
2153
  n(css,{});
2290
2154
  let NotificationsCenter = class NotificationsCenter extends Themable {
2291
2155
  constructor(container, model, themeService, instantiationService, layoutService, contextKeyService, editorGroupService, keybindingService, notificationService) {
@@ -2442,9 +2306,9 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
2442
2306
  const borderColor = this.getColor(NOTIFICATIONS_CENTER_BORDER);
2443
2307
  this.notificationsCenterContainer.style.border = borderColor ? `1px solid ${borderColor}` : '';
2444
2308
  const headerForeground = this.getColor(NOTIFICATIONS_CENTER_HEADER_FOREGROUND);
2445
- this.notificationsCenterHeader.style.color = headerForeground ? ( (headerForeground.toString())) : '';
2309
+ this.notificationsCenterHeader.style.color = headerForeground ?? '';
2446
2310
  const headerBackground = this.getColor(NOTIFICATIONS_CENTER_HEADER_BACKGROUND);
2447
- this.notificationsCenterHeader.style.background = headerBackground ? ( (headerBackground.toString())) : '';
2311
+ this.notificationsCenterHeader.style.background = headerBackground ?? '';
2448
2312
  }
2449
2313
  }
2450
2314
  layout(dimension) {
@@ -2489,12 +2353,6 @@ NotificationsCenter = ( (__decorate([
2489
2353
  ( (__param(7, IKeybindingService))),
2490
2354
  ( (__param(8, INotificationService)))
2491
2355
  ], NotificationsCenter)));
2492
- registerThemingParticipant((theme, collector) => {
2493
- const notificationBorderColor = theme.getColor(NOTIFICATIONS_BORDER);
2494
- if (notificationBorderColor) {
2495
- collector.addRule(`.monaco-workbench > .notifications-center .notifications-list-container .monaco-list-row[data-last-element="false"] > .notification-list-item { border-bottom: 1px solid ${notificationBorderColor}; }`);
2496
- }
2497
- });
2498
2356
  class NotificationsAlerts extends Disposable {
2499
2357
  constructor(model) {
2500
2358
  super();
@@ -2561,12 +2419,14 @@ class NotificationsAlerts extends Disposable {
2561
2419
  function initialize(instantiationService) {
2562
2420
  const container = instantiationService.invokeFunction((accessor) => accessor.get(ILayoutService)).container;
2563
2421
  const model = instantiationService.invokeFunction((accessor) => accessor.get(INotificationService)).model;
2564
- const notificationsCenter = instantiationService.createInstance(NotificationsCenter, container, model);
2565
- const notificationsToasts = instantiationService.createInstance(NotificationsToasts, container, model);
2566
- instantiationService.createInstance(NotificationsAlerts, model);
2567
- instantiationService.createInstance(NotificationsTelemetry);
2568
- registerNotificationCommands(notificationsCenter, notificationsToasts, model);
2569
- notificationsToasts.layout(getClientArea(container));
2422
+ setTimeout(() => {
2423
+ const notificationsCenter = instantiationService.createInstance(NotificationsCenter, container, model);
2424
+ const notificationsToasts = instantiationService.createInstance(NotificationsToasts, container, model);
2425
+ instantiationService.createInstance(NotificationsAlerts, model);
2426
+ instantiationService.createInstance(NotificationsTelemetry);
2427
+ registerNotificationCommands(notificationsCenter, notificationsToasts, model);
2428
+ notificationsToasts.layout(getClientArea(container));
2429
+ });
2570
2430
  }
2571
2431
  function getServiceOverride(container) {
2572
2432
  onServicesInitialized(initialize);