@codingame/monaco-vscode-notifications-service-override 1.83.5 → 1.83.6
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.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +75 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +18 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +20 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +41 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +13 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +17 -3
- package/vscode/src/vs/workbench/services/notification/common/notificationService.js +13 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notifications-service-override",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.6",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.83.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.6",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -9,16 +9,48 @@ import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
|
9
9
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
10
10
|
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
11
11
|
|
|
12
|
-
const clearIcon = registerIcon('notifications-clear', Codicon.close, localizeWithPath(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
12
|
+
const clearIcon = registerIcon('notifications-clear', Codicon.close, ( localizeWithPath(
|
|
13
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
14
|
+
'clearIcon',
|
|
15
|
+
'Icon for the clear action in notifications.'
|
|
16
|
+
)));
|
|
17
|
+
const clearAllIcon = registerIcon('notifications-clear-all', Codicon.clearAll, ( localizeWithPath(
|
|
18
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
19
|
+
'clearAllIcon',
|
|
20
|
+
'Icon for the clear all action in notifications.'
|
|
21
|
+
)));
|
|
22
|
+
const hideIcon = registerIcon('notifications-hide', Codicon.chevronDown, ( localizeWithPath(
|
|
23
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
24
|
+
'hideIcon',
|
|
25
|
+
'Icon for the hide action in notifications.'
|
|
26
|
+
)));
|
|
27
|
+
const expandIcon = registerIcon('notifications-expand', Codicon.chevronUp, ( localizeWithPath(
|
|
28
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
29
|
+
'expandIcon',
|
|
30
|
+
'Icon for the expand action in notifications.'
|
|
31
|
+
)));
|
|
32
|
+
const collapseIcon = registerIcon('notifications-collapse', Codicon.chevronDown, ( localizeWithPath(
|
|
33
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
34
|
+
'collapseIcon',
|
|
35
|
+
'Icon for the collapse action in notifications.'
|
|
36
|
+
)));
|
|
37
|
+
const configureIcon = registerIcon('notifications-configure', Codicon.gear, ( localizeWithPath(
|
|
38
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
39
|
+
'configureIcon',
|
|
40
|
+
'Icon for the configure action in notifications.'
|
|
41
|
+
)));
|
|
42
|
+
const doNotDisturbIcon = registerIcon('notifications-do-not-disturb', Codicon.bellSlash, ( localizeWithPath(
|
|
43
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
44
|
+
'doNotDisturbIcon',
|
|
45
|
+
'Icon for the mute all action in notifications.'
|
|
46
|
+
)));
|
|
19
47
|
let ClearNotificationAction = class ClearNotificationAction extends Action {
|
|
20
48
|
static { this.ID = CLEAR_NOTIFICATION; }
|
|
21
|
-
static { this.LABEL = localizeWithPath(
|
|
49
|
+
static { this.LABEL = ( localizeWithPath(
|
|
50
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
51
|
+
'clearNotification',
|
|
52
|
+
"Clear Notification"
|
|
53
|
+
)); }
|
|
22
54
|
constructor(id, label, commandService) {
|
|
23
55
|
super(id, label, ThemeIcon.asClassName(clearIcon));
|
|
24
56
|
this.commandService = commandService;
|
|
@@ -32,7 +64,11 @@ ClearNotificationAction = ( __decorate([
|
|
|
32
64
|
], ClearNotificationAction));
|
|
33
65
|
let ClearAllNotificationsAction = class ClearAllNotificationsAction extends Action {
|
|
34
66
|
static { this.ID = CLEAR_ALL_NOTIFICATIONS; }
|
|
35
|
-
static { this.LABEL = localizeWithPath(
|
|
67
|
+
static { this.LABEL = ( localizeWithPath(
|
|
68
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
69
|
+
'clearNotifications',
|
|
70
|
+
"Clear All Notifications"
|
|
71
|
+
)); }
|
|
36
72
|
constructor(id, label, commandService) {
|
|
37
73
|
super(id, label, ThemeIcon.asClassName(clearAllIcon));
|
|
38
74
|
this.commandService = commandService;
|
|
@@ -46,7 +82,11 @@ ClearAllNotificationsAction = ( __decorate([
|
|
|
46
82
|
], ClearAllNotificationsAction));
|
|
47
83
|
let ToggleDoNotDisturbAction = class ToggleDoNotDisturbAction extends Action {
|
|
48
84
|
static { this.ID = TOGGLE_DO_NOT_DISTURB_MODE; }
|
|
49
|
-
static { this.LABEL = localizeWithPath(
|
|
85
|
+
static { this.LABEL = ( localizeWithPath(
|
|
86
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
87
|
+
'toggleDoNotDisturbMode',
|
|
88
|
+
"Toggle Do Not Disturb Mode"
|
|
89
|
+
)); }
|
|
50
90
|
constructor(id, label, commandService) {
|
|
51
91
|
super(id, label, ThemeIcon.asClassName(doNotDisturbIcon));
|
|
52
92
|
this.commandService = commandService;
|
|
@@ -60,7 +100,11 @@ ToggleDoNotDisturbAction = ( __decorate([
|
|
|
60
100
|
], ToggleDoNotDisturbAction));
|
|
61
101
|
let HideNotificationsCenterAction = class HideNotificationsCenterAction extends Action {
|
|
62
102
|
static { this.ID = HIDE_NOTIFICATIONS_CENTER; }
|
|
63
|
-
static { this.LABEL = localizeWithPath(
|
|
103
|
+
static { this.LABEL = ( localizeWithPath(
|
|
104
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
105
|
+
'hideNotificationsCenter',
|
|
106
|
+
"Hide Notifications"
|
|
107
|
+
)); }
|
|
64
108
|
constructor(id, label, commandService) {
|
|
65
109
|
super(id, label, ThemeIcon.asClassName(hideIcon));
|
|
66
110
|
this.commandService = commandService;
|
|
@@ -74,7 +118,11 @@ HideNotificationsCenterAction = ( __decorate([
|
|
|
74
118
|
], HideNotificationsCenterAction));
|
|
75
119
|
let ExpandNotificationAction = class ExpandNotificationAction extends Action {
|
|
76
120
|
static { this.ID = EXPAND_NOTIFICATION; }
|
|
77
|
-
static { this.LABEL = localizeWithPath(
|
|
121
|
+
static { this.LABEL = ( localizeWithPath(
|
|
122
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
123
|
+
'expandNotification',
|
|
124
|
+
"Expand Notification"
|
|
125
|
+
)); }
|
|
78
126
|
constructor(id, label, commandService) {
|
|
79
127
|
super(id, label, ThemeIcon.asClassName(expandIcon));
|
|
80
128
|
this.commandService = commandService;
|
|
@@ -88,7 +136,11 @@ ExpandNotificationAction = ( __decorate([
|
|
|
88
136
|
], ExpandNotificationAction));
|
|
89
137
|
let CollapseNotificationAction = class CollapseNotificationAction extends Action {
|
|
90
138
|
static { this.ID = COLLAPSE_NOTIFICATION; }
|
|
91
|
-
static { this.LABEL = localizeWithPath(
|
|
139
|
+
static { this.LABEL = ( localizeWithPath(
|
|
140
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
141
|
+
'collapseNotification',
|
|
142
|
+
"Collapse Notification"
|
|
143
|
+
)); }
|
|
92
144
|
constructor(id, label, commandService) {
|
|
93
145
|
super(id, label, ThemeIcon.asClassName(collapseIcon));
|
|
94
146
|
this.commandService = commandService;
|
|
@@ -102,7 +154,11 @@ CollapseNotificationAction = ( __decorate([
|
|
|
102
154
|
], CollapseNotificationAction));
|
|
103
155
|
class ConfigureNotificationAction extends Action {
|
|
104
156
|
static { this.ID = 'workbench.action.configureNotification'; }
|
|
105
|
-
static { this.LABEL = localizeWithPath(
|
|
157
|
+
static { this.LABEL = ( localizeWithPath(
|
|
158
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
159
|
+
'configureNotification',
|
|
160
|
+
"More Actions..."
|
|
161
|
+
)); }
|
|
106
162
|
constructor(id, label, configurationActions) {
|
|
107
163
|
super(id, label, ThemeIcon.asClassName(configureIcon));
|
|
108
164
|
this.configurationActions = configurationActions;
|
|
@@ -110,7 +166,11 @@ class ConfigureNotificationAction extends Action {
|
|
|
110
166
|
}
|
|
111
167
|
let CopyNotificationMessageAction = class CopyNotificationMessageAction extends Action {
|
|
112
168
|
static { this.ID = 'workbench.action.copyNotificationMessage'; }
|
|
113
|
-
static { this.LABEL = localizeWithPath(
|
|
169
|
+
static { this.LABEL = ( localizeWithPath(
|
|
170
|
+
'vs/workbench/browser/parts/notifications/notificationsActions',
|
|
171
|
+
'copyNotification',
|
|
172
|
+
"Copy Text"
|
|
173
|
+
)); }
|
|
114
174
|
constructor(id, label, clipboardService) {
|
|
115
175
|
super(id, label);
|
|
116
176
|
this.clipboardService = clipboardService;
|
|
@@ -45,13 +45,28 @@ class NotificationsAlerts extends Disposable {
|
|
|
45
45
|
doTriggerAriaAlert(notification) {
|
|
46
46
|
let alertText;
|
|
47
47
|
if (notification.severity === Severity.Error) {
|
|
48
|
-
alertText =
|
|
48
|
+
alertText = ( localizeWithPath(
|
|
49
|
+
'vs/workbench/browser/parts/notifications/notificationsAlerts',
|
|
50
|
+
'alertErrorMessage',
|
|
51
|
+
"Error: {0}",
|
|
52
|
+
( notification.message.linkedText.toString())
|
|
53
|
+
));
|
|
49
54
|
}
|
|
50
55
|
else if (notification.severity === Severity.Warning) {
|
|
51
|
-
alertText =
|
|
56
|
+
alertText = ( localizeWithPath(
|
|
57
|
+
'vs/workbench/browser/parts/notifications/notificationsAlerts',
|
|
58
|
+
'alertWarningMessage',
|
|
59
|
+
"Warning: {0}",
|
|
60
|
+
( notification.message.linkedText.toString())
|
|
61
|
+
));
|
|
52
62
|
}
|
|
53
63
|
else {
|
|
54
|
-
alertText =
|
|
64
|
+
alertText = ( localizeWithPath(
|
|
65
|
+
'vs/workbench/browser/parts/notifications/notificationsAlerts',
|
|
66
|
+
'alertInfoMessage',
|
|
67
|
+
"Info: {0}",
|
|
68
|
+
( notification.message.linkedText.toString())
|
|
69
|
+
));
|
|
55
70
|
}
|
|
56
71
|
alert(alertText);
|
|
57
72
|
}
|
|
@@ -77,11 +77,19 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
77
77
|
updateTitle() {
|
|
78
78
|
const [notificationsCenterTitle, clearAllAction] = assertAllDefined(this.notificationsCenterTitle, this.clearAllAction);
|
|
79
79
|
if (this.model.notifications.length === 0) {
|
|
80
|
-
notificationsCenterTitle.textContent = localizeWithPath(
|
|
80
|
+
notificationsCenterTitle.textContent = ( localizeWithPath(
|
|
81
|
+
'vs/workbench/browser/parts/notifications/notificationsCenter',
|
|
82
|
+
'notificationsEmpty',
|
|
83
|
+
"No new notifications"
|
|
84
|
+
));
|
|
81
85
|
clearAllAction.enabled = false;
|
|
82
86
|
}
|
|
83
87
|
else {
|
|
84
|
-
notificationsCenterTitle.textContent = localizeWithPath(
|
|
88
|
+
notificationsCenterTitle.textContent = ( localizeWithPath(
|
|
89
|
+
'vs/workbench/browser/parts/notifications/notificationsCenter',
|
|
90
|
+
'notifications',
|
|
91
|
+
"Notifications"
|
|
92
|
+
));
|
|
85
93
|
clearAllAction.enabled = ( this.model.notifications.some(notification => !notification.hasProgress));
|
|
86
94
|
}
|
|
87
95
|
}
|
|
@@ -99,7 +107,11 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
99
107
|
this.notificationsCenterHeader.appendChild(toolbarContainer);
|
|
100
108
|
const actionRunner = this._register(this.instantiationService.createInstance(NotificationActionRunner));
|
|
101
109
|
const notificationsToolBar = this._register(( new ActionBar(toolbarContainer, {
|
|
102
|
-
ariaLabel: localizeWithPath(
|
|
110
|
+
ariaLabel: ( localizeWithPath(
|
|
111
|
+
'vs/workbench/browser/parts/notifications/notificationsCenter',
|
|
112
|
+
'notificationsToolbar',
|
|
113
|
+
"Notification Center Actions"
|
|
114
|
+
)),
|
|
103
115
|
actionRunner
|
|
104
116
|
})));
|
|
105
117
|
this.clearAllAction = this._register(this.instantiationService.createInstance(ClearAllNotificationsAction, ClearAllNotificationsAction.ID, ClearAllNotificationsAction.LABEL));
|
|
@@ -109,7 +121,11 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
109
121
|
const hideAllAction = this._register(this.instantiationService.createInstance(HideNotificationsCenterAction, HideNotificationsCenterAction.ID, HideNotificationsCenterAction.LABEL));
|
|
110
122
|
notificationsToolBar.push(hideAllAction, { icon: true, label: false, keybinding: this.getKeybindingLabel(hideAllAction) });
|
|
111
123
|
this.notificationsList = this.instantiationService.createInstance(NotificationsList, this.notificationsCenterContainer, {
|
|
112
|
-
widgetAriaLabel: localizeWithPath(
|
|
124
|
+
widgetAriaLabel: ( localizeWithPath(
|
|
125
|
+
'vs/workbench/browser/parts/notifications/notificationsCenter',
|
|
126
|
+
'notificationsCenterWidgetAriaLabel',
|
|
127
|
+
"Notifications Center"
|
|
128
|
+
))
|
|
113
129
|
});
|
|
114
130
|
this.container.appendChild(this.notificationsCenterContainer);
|
|
115
131
|
}
|
|
@@ -169,15 +169,52 @@ let NotificationAccessibilityProvider = class NotificationAccessibilityProvider
|
|
|
169
169
|
let accessibleViewHint;
|
|
170
170
|
const keybinding = this._keybindingService.lookupKeybinding('editor.action.accessibleView')?.getAriaLabel();
|
|
171
171
|
if (this._configurationService.getValue('accessibility.verbosity.notification')) {
|
|
172
|
-
accessibleViewHint = keybinding ?
|
|
172
|
+
accessibleViewHint = keybinding ? ( localizeWithPath(
|
|
173
|
+
'vs/workbench/browser/parts/notifications/notificationsList',
|
|
174
|
+
'notificationAccessibleViewHint',
|
|
175
|
+
"Inspect the response in the accessible view with {0}",
|
|
176
|
+
keybinding
|
|
177
|
+
)) : ( localizeWithPath(
|
|
178
|
+
'vs/workbench/browser/parts/notifications/notificationsList',
|
|
179
|
+
'notificationAccessibleViewHintNoKb',
|
|
180
|
+
"Inspect the response in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding"
|
|
181
|
+
));
|
|
173
182
|
}
|
|
174
183
|
if (!element.source) {
|
|
175
|
-
return accessibleViewHint ?
|
|
184
|
+
return accessibleViewHint ? ( localizeWithPath(
|
|
185
|
+
'vs/workbench/browser/parts/notifications/notificationsList',
|
|
186
|
+
'notificationAriaLabelHint',
|
|
187
|
+
"{0}, notification, {1}",
|
|
188
|
+
element.message.raw,
|
|
189
|
+
accessibleViewHint
|
|
190
|
+
)) : ( localizeWithPath(
|
|
191
|
+
'vs/workbench/browser/parts/notifications/notificationsList',
|
|
192
|
+
'notificationAriaLabel',
|
|
193
|
+
"{0}, notification",
|
|
194
|
+
element.message.raw
|
|
195
|
+
));
|
|
176
196
|
}
|
|
177
|
-
return accessibleViewHint ?
|
|
197
|
+
return accessibleViewHint ? ( localizeWithPath(
|
|
198
|
+
'vs/workbench/browser/parts/notifications/notificationsList',
|
|
199
|
+
'notificationWithSourceAriaLabelHint',
|
|
200
|
+
"{0}, source: {1}, notification, {2}",
|
|
201
|
+
element.message.raw,
|
|
202
|
+
element.source,
|
|
203
|
+
accessibleViewHint
|
|
204
|
+
)) : ( localizeWithPath(
|
|
205
|
+
'vs/workbench/browser/parts/notifications/notificationsList',
|
|
206
|
+
'notificationWithSourceAriaLabel',
|
|
207
|
+
"{0}, source: {1}, notification",
|
|
208
|
+
element.message.raw,
|
|
209
|
+
element.source
|
|
210
|
+
));
|
|
178
211
|
}
|
|
179
212
|
getWidgetAriaLabel() {
|
|
180
|
-
return this._options.widgetAriaLabel ?? localizeWithPath(
|
|
213
|
+
return this._options.widgetAriaLabel ?? ( localizeWithPath(
|
|
214
|
+
'vs/workbench/browser/parts/notifications/notificationsList',
|
|
215
|
+
'notificationsList',
|
|
216
|
+
"Notifications List"
|
|
217
|
+
));
|
|
181
218
|
}
|
|
182
219
|
getRole() {
|
|
183
220
|
return 'dialog';
|
|
@@ -117,9 +117,20 @@ let NotificationsToasts = class NotificationsToasts extends Themable {
|
|
|
117
117
|
verticalScrollMode: 2 ,
|
|
118
118
|
widgetAriaLabel: (() => {
|
|
119
119
|
if (!item.source) {
|
|
120
|
-
return localizeWithPath(
|
|
120
|
+
return ( localizeWithPath(
|
|
121
|
+
'vs/workbench/browser/parts/notifications/notificationsToasts',
|
|
122
|
+
'notificationAriaLabel',
|
|
123
|
+
"{0}, notification",
|
|
124
|
+
item.message.raw
|
|
125
|
+
));
|
|
121
126
|
}
|
|
122
|
-
return localizeWithPath(
|
|
127
|
+
return ( localizeWithPath(
|
|
128
|
+
'vs/workbench/browser/parts/notifications/notificationsToasts',
|
|
129
|
+
'notificationWithSourceAriaLabel',
|
|
130
|
+
"{0}, source: {1}, notification",
|
|
131
|
+
item.message.raw,
|
|
132
|
+
item.source
|
|
133
|
+
));
|
|
123
134
|
})()
|
|
124
135
|
});
|
|
125
136
|
itemDisposables.add(notificationList);
|
|
@@ -91,7 +91,12 @@ class NotificationMessageRenderer {
|
|
|
91
91
|
else {
|
|
92
92
|
let title = node.title;
|
|
93
93
|
if (!title && node.href.startsWith('command:')) {
|
|
94
|
-
title =
|
|
94
|
+
title = ( localizeWithPath(
|
|
95
|
+
'vs/workbench/browser/parts/notifications/notificationsViewer',
|
|
96
|
+
'executeCommand',
|
|
97
|
+
"Click to execute command '{0}'",
|
|
98
|
+
node.href.substr('command:'.length)
|
|
99
|
+
));
|
|
95
100
|
}
|
|
96
101
|
else if (!title) {
|
|
97
102
|
title = node.href;
|
|
@@ -145,7 +150,11 @@ let NotificationRenderer = class NotificationRenderer {
|
|
|
145
150
|
const toolbarContainer = document.createElement('div');
|
|
146
151
|
toolbarContainer.classList.add('notification-list-item-toolbar-container');
|
|
147
152
|
data.toolbar = ( new ActionBar(toolbarContainer, {
|
|
148
|
-
ariaLabel: localizeWithPath(
|
|
153
|
+
ariaLabel: ( localizeWithPath(
|
|
154
|
+
'vs/workbench/browser/parts/notifications/notificationsViewer',
|
|
155
|
+
'notificationActions',
|
|
156
|
+
"Notification Actions"
|
|
157
|
+
)),
|
|
149
158
|
actionViewItemProvider: action => {
|
|
150
159
|
if (action && action instanceof ConfigureNotificationAction) {
|
|
151
160
|
const item = ( new DropdownMenuActionViewItem(
|
|
@@ -303,7 +312,12 @@ let NotificationTemplateRenderer = class NotificationTemplateRenderer extends Di
|
|
|
303
312
|
}
|
|
304
313
|
renderSource(notification) {
|
|
305
314
|
if (notification.expanded && notification.source) {
|
|
306
|
-
this.template.source.textContent = localizeWithPath(
|
|
315
|
+
this.template.source.textContent = ( localizeWithPath(
|
|
316
|
+
'vs/workbench/browser/parts/notifications/notificationsViewer',
|
|
317
|
+
'notificationSource',
|
|
318
|
+
"Source: {0}",
|
|
319
|
+
notification.source
|
|
320
|
+
));
|
|
307
321
|
this.template.source.title = notification.source;
|
|
308
322
|
}
|
|
309
323
|
else {
|
|
@@ -98,16 +98,14 @@ let NotificationService = class NotificationService extends Disposable {
|
|
|
98
98
|
if (this.storageService.getBoolean(id, scope)) {
|
|
99
99
|
return ( new NoOpNotification());
|
|
100
100
|
}
|
|
101
|
-
const neverShowAgainAction = toDispose.add(( new Action(
|
|
102
|
-
'workbench
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
)));
|
|
101
|
+
const neverShowAgainAction = toDispose.add(( new Action('workbench.notification.neverShowAgain', ( localizeWithPath(
|
|
102
|
+
'vs/workbench/services/notification/common/notificationService',
|
|
103
|
+
'neverShowAgain',
|
|
104
|
+
"Don't Show Again"
|
|
105
|
+
)), undefined, true, async () => {
|
|
106
|
+
handle.close();
|
|
107
|
+
this.storageService.store(id, true, scope, 0 );
|
|
108
|
+
})));
|
|
111
109
|
const actions = {
|
|
112
110
|
primary: notification.actions?.primary || [],
|
|
113
111
|
secondary: notification.actions?.secondary || []
|
|
@@ -145,7 +143,11 @@ let NotificationService = class NotificationService extends Disposable {
|
|
|
145
143
|
return ( new NoOpNotification());
|
|
146
144
|
}
|
|
147
145
|
const neverShowAgainChoice = {
|
|
148
|
-
label: localizeWithPath(
|
|
146
|
+
label: ( localizeWithPath(
|
|
147
|
+
'vs/workbench/services/notification/common/notificationService',
|
|
148
|
+
'neverShowAgain',
|
|
149
|
+
"Don't Show Again"
|
|
150
|
+
)),
|
|
149
151
|
run: () => this.storageService.store(id, true, scope, 0 ),
|
|
150
152
|
isSecondary: options.neverShowAgain.isSecondary
|
|
151
153
|
};
|