@codingame/monaco-vscode-notifications-service-override 1.83.2 → 1.83.3
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 +16 -16
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +5 -28
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +3 -8
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -8
- package/vscode/src/vs/workbench/services/notification/common/notificationService.js +12 -6
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.3",
|
|
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.3",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/notificationsActions.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { Action } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
5
5
|
import { CLEAR_NOTIFICATION, CLEAR_ALL_NOTIFICATIONS, TOGGLE_DO_NOT_DISTURB_MODE, HIDE_NOTIFICATIONS_CENTER, EXPAND_NOTIFICATION, COLLAPSE_NOTIFICATION } from 'vscode/vscode/vs/workbench/browser/parts/notifications/notificationsCommands';
|
|
6
6
|
import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
@@ -9,16 +9,16 @@ 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, (
|
|
13
|
-
const clearAllIcon = registerIcon('notifications-clear-all', Codicon.clearAll, (
|
|
14
|
-
const hideIcon = registerIcon('notifications-hide', Codicon.chevronDown, (
|
|
15
|
-
const expandIcon = registerIcon('notifications-expand', Codicon.chevronUp, (
|
|
16
|
-
const collapseIcon = registerIcon('notifications-collapse', Codicon.chevronDown, (
|
|
17
|
-
const configureIcon = registerIcon('notifications-configure', Codicon.gear, (
|
|
18
|
-
const doNotDisturbIcon = registerIcon('notifications-do-not-disturb', Codicon.bellSlash, (
|
|
12
|
+
const clearIcon = registerIcon('notifications-clear', Codicon.close, localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'clearIcon', 'Icon for the clear action in notifications.'));
|
|
13
|
+
const clearAllIcon = registerIcon('notifications-clear-all', Codicon.clearAll, localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'clearAllIcon', 'Icon for the clear all action in notifications.'));
|
|
14
|
+
const hideIcon = registerIcon('notifications-hide', Codicon.chevronDown, localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'hideIcon', 'Icon for the hide action in notifications.'));
|
|
15
|
+
const expandIcon = registerIcon('notifications-expand', Codicon.chevronUp, localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'expandIcon', 'Icon for the expand action in notifications.'));
|
|
16
|
+
const collapseIcon = registerIcon('notifications-collapse', Codicon.chevronDown, localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'collapseIcon', 'Icon for the collapse action in notifications.'));
|
|
17
|
+
const configureIcon = registerIcon('notifications-configure', Codicon.gear, localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'configureIcon', 'Icon for the configure action in notifications.'));
|
|
18
|
+
const doNotDisturbIcon = registerIcon('notifications-do-not-disturb', Codicon.bellSlash, localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'doNotDisturbIcon', 'Icon for the mute all action in notifications.'));
|
|
19
19
|
let ClearNotificationAction = class ClearNotificationAction extends Action {
|
|
20
20
|
static { this.ID = CLEAR_NOTIFICATION; }
|
|
21
|
-
static { this.LABEL = (
|
|
21
|
+
static { this.LABEL = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'clearNotification', "Clear Notification"); }
|
|
22
22
|
constructor(id, label, commandService) {
|
|
23
23
|
super(id, label, ThemeIcon.asClassName(clearIcon));
|
|
24
24
|
this.commandService = commandService;
|
|
@@ -32,7 +32,7 @@ ClearNotificationAction = ( __decorate([
|
|
|
32
32
|
], ClearNotificationAction));
|
|
33
33
|
let ClearAllNotificationsAction = class ClearAllNotificationsAction extends Action {
|
|
34
34
|
static { this.ID = CLEAR_ALL_NOTIFICATIONS; }
|
|
35
|
-
static { this.LABEL = (
|
|
35
|
+
static { this.LABEL = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'clearNotifications', "Clear All Notifications"); }
|
|
36
36
|
constructor(id, label, commandService) {
|
|
37
37
|
super(id, label, ThemeIcon.asClassName(clearAllIcon));
|
|
38
38
|
this.commandService = commandService;
|
|
@@ -46,7 +46,7 @@ ClearAllNotificationsAction = ( __decorate([
|
|
|
46
46
|
], ClearAllNotificationsAction));
|
|
47
47
|
let ToggleDoNotDisturbAction = class ToggleDoNotDisturbAction extends Action {
|
|
48
48
|
static { this.ID = TOGGLE_DO_NOT_DISTURB_MODE; }
|
|
49
|
-
static { this.LABEL = (
|
|
49
|
+
static { this.LABEL = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'toggleDoNotDisturbMode', "Toggle Do Not Disturb Mode"); }
|
|
50
50
|
constructor(id, label, commandService) {
|
|
51
51
|
super(id, label, ThemeIcon.asClassName(doNotDisturbIcon));
|
|
52
52
|
this.commandService = commandService;
|
|
@@ -60,7 +60,7 @@ ToggleDoNotDisturbAction = ( __decorate([
|
|
|
60
60
|
], ToggleDoNotDisturbAction));
|
|
61
61
|
let HideNotificationsCenterAction = class HideNotificationsCenterAction extends Action {
|
|
62
62
|
static { this.ID = HIDE_NOTIFICATIONS_CENTER; }
|
|
63
|
-
static { this.LABEL = (
|
|
63
|
+
static { this.LABEL = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'hideNotificationsCenter', "Hide Notifications"); }
|
|
64
64
|
constructor(id, label, commandService) {
|
|
65
65
|
super(id, label, ThemeIcon.asClassName(hideIcon));
|
|
66
66
|
this.commandService = commandService;
|
|
@@ -74,7 +74,7 @@ HideNotificationsCenterAction = ( __decorate([
|
|
|
74
74
|
], HideNotificationsCenterAction));
|
|
75
75
|
let ExpandNotificationAction = class ExpandNotificationAction extends Action {
|
|
76
76
|
static { this.ID = EXPAND_NOTIFICATION; }
|
|
77
|
-
static { this.LABEL = (
|
|
77
|
+
static { this.LABEL = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'expandNotification', "Expand Notification"); }
|
|
78
78
|
constructor(id, label, commandService) {
|
|
79
79
|
super(id, label, ThemeIcon.asClassName(expandIcon));
|
|
80
80
|
this.commandService = commandService;
|
|
@@ -88,7 +88,7 @@ ExpandNotificationAction = ( __decorate([
|
|
|
88
88
|
], ExpandNotificationAction));
|
|
89
89
|
let CollapseNotificationAction = class CollapseNotificationAction extends Action {
|
|
90
90
|
static { this.ID = COLLAPSE_NOTIFICATION; }
|
|
91
|
-
static { this.LABEL = (
|
|
91
|
+
static { this.LABEL = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'collapseNotification', "Collapse Notification"); }
|
|
92
92
|
constructor(id, label, commandService) {
|
|
93
93
|
super(id, label, ThemeIcon.asClassName(collapseIcon));
|
|
94
94
|
this.commandService = commandService;
|
|
@@ -102,7 +102,7 @@ CollapseNotificationAction = ( __decorate([
|
|
|
102
102
|
], CollapseNotificationAction));
|
|
103
103
|
class ConfigureNotificationAction extends Action {
|
|
104
104
|
static { this.ID = 'workbench.action.configureNotification'; }
|
|
105
|
-
static { this.LABEL = (
|
|
105
|
+
static { this.LABEL = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'configureNotification', "More Actions..."); }
|
|
106
106
|
constructor(id, label, configurationActions) {
|
|
107
107
|
super(id, label, ThemeIcon.asClassName(configureIcon));
|
|
108
108
|
this.configurationActions = configurationActions;
|
|
@@ -110,7 +110,7 @@ class ConfigureNotificationAction extends Action {
|
|
|
110
110
|
}
|
|
111
111
|
let CopyNotificationMessageAction = class CopyNotificationMessageAction extends Action {
|
|
112
112
|
static { this.ID = 'workbench.action.copyNotificationMessage'; }
|
|
113
|
-
static { this.LABEL = (
|
|
113
|
+
static { this.LABEL = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsActions', 'copyNotification', "Copy Text"); }
|
|
114
114
|
constructor(id, label, clipboardService) {
|
|
115
115
|
super(id, label);
|
|
116
116
|
this.clipboardService = clipboardService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
4
|
import { toErrorMessage } from 'monaco-editor/esm/vs/base/common/errorMessage.js';
|
|
5
5
|
import { Severity, NotificationPriority } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
@@ -45,13 +45,13 @@ class NotificationsAlerts extends Disposable {
|
|
|
45
45
|
doTriggerAriaAlert(notification) {
|
|
46
46
|
let alertText;
|
|
47
47
|
if (notification.severity === Severity.Error) {
|
|
48
|
-
alertText = (
|
|
48
|
+
alertText = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsAlerts', 'alertErrorMessage', "Error: {0}", ( notification.message.linkedText.toString()));
|
|
49
49
|
}
|
|
50
50
|
else if (notification.severity === Severity.Warning) {
|
|
51
|
-
alertText = (
|
|
51
|
+
alertText = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsAlerts', 'alertWarningMessage', "Warning: {0}", ( notification.message.linkedText.toString()));
|
|
52
52
|
}
|
|
53
53
|
else {
|
|
54
|
-
alertText = (
|
|
54
|
+
alertText = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsAlerts', 'alertInfoMessage', "Info: {0}", ( notification.message.linkedText.toString()));
|
|
55
55
|
}
|
|
56
56
|
alert(alertText);
|
|
57
57
|
}
|
|
@@ -12,7 +12,7 @@ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiati
|
|
|
12
12
|
import { Dimension, isAncestor } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
13
13
|
import { widgetShadow } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
14
14
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
15
|
-
import {
|
|
15
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
16
16
|
import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
|
|
17
17
|
import { ClearAllNotificationsAction, ToggleDoNotDisturbAction, HideNotificationsCenterAction } from './notificationsActions.js';
|
|
18
18
|
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
@@ -77,11 +77,11 @@ 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 = (
|
|
80
|
+
notificationsCenterTitle.textContent = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsCenter', 'notificationsEmpty', "No new notifications");
|
|
81
81
|
clearAllAction.enabled = false;
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
84
|
-
notificationsCenterTitle.textContent = (
|
|
84
|
+
notificationsCenterTitle.textContent = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsCenter', 'notifications', "Notifications");
|
|
85
85
|
clearAllAction.enabled = ( this.model.notifications.some(notification => !notification.hasProgress));
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -99,7 +99,7 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
99
99
|
this.notificationsCenterHeader.appendChild(toolbarContainer);
|
|
100
100
|
const actionRunner = this._register(this.instantiationService.createInstance(NotificationActionRunner));
|
|
101
101
|
const notificationsToolBar = this._register(( new ActionBar(toolbarContainer, {
|
|
102
|
-
ariaLabel: (
|
|
102
|
+
ariaLabel: localizeWithPath('vs/workbench/browser/parts/notifications/notificationsCenter', 'notificationsToolbar', "Notification Center Actions"),
|
|
103
103
|
actionRunner
|
|
104
104
|
})));
|
|
105
105
|
this.clearAllAction = this._register(this.instantiationService.createInstance(ClearAllNotificationsAction, ClearAllNotificationsAction.ID, ClearAllNotificationsAction.LABEL));
|
|
@@ -109,7 +109,7 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
109
109
|
const hideAllAction = this._register(this.instantiationService.createInstance(HideNotificationsCenterAction, HideNotificationsCenterAction.ID, HideNotificationsCenterAction.LABEL));
|
|
110
110
|
notificationsToolBar.push(hideAllAction, { icon: true, label: false, keybinding: this.getKeybindingLabel(hideAllAction) });
|
|
111
111
|
this.notificationsList = this.instantiationService.createInstance(NotificationsList, this.notificationsCenterContainer, {
|
|
112
|
-
widgetAriaLabel: (
|
|
112
|
+
widgetAriaLabel: localizeWithPath('vs/workbench/browser/parts/notifications/notificationsCenter', 'notificationsCenterWidgetAriaLabel', "Notifications Center")
|
|
113
113
|
});
|
|
114
114
|
this.container.appendChild(this.notificationsCenterContainer);
|
|
115
115
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/notificationsList.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { trackFocus, isAncestor } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
5
5
|
import { WorkbenchList } from 'monaco-editor/esm/vs/platform/list/browser/listService.js';
|
|
6
6
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
@@ -169,38 +169,15 @@ 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 ? (
|
|
173
|
-
'notificationAccessibleViewHint',
|
|
174
|
-
"Inspect the response in the accessible view with {0}",
|
|
175
|
-
keybinding
|
|
176
|
-
)) : ( localize(
|
|
177
|
-
'notificationAccessibleViewHintNoKb',
|
|
178
|
-
"Inspect the response in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding"
|
|
179
|
-
));
|
|
172
|
+
accessibleViewHint = keybinding ? localizeWithPath('vs/workbench/browser/parts/notifications/notificationsList', 'notificationAccessibleViewHint', "Inspect the response in the accessible view with {0}", keybinding) : localizeWithPath('vs/workbench/browser/parts/notifications/notificationsList', 'notificationAccessibleViewHintNoKb', "Inspect the response in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding");
|
|
180
173
|
}
|
|
181
174
|
if (!element.source) {
|
|
182
|
-
return accessibleViewHint ? (
|
|
183
|
-
'notificationAriaLabelHint',
|
|
184
|
-
"{0}, notification, {1}",
|
|
185
|
-
element.message.raw,
|
|
186
|
-
accessibleViewHint
|
|
187
|
-
)) : ( localize('notificationAriaLabel', "{0}, notification", element.message.raw));
|
|
175
|
+
return accessibleViewHint ? localizeWithPath('vs/workbench/browser/parts/notifications/notificationsList', 'notificationAriaLabelHint', "{0}, notification, {1}", element.message.raw, accessibleViewHint) : localizeWithPath('vs/workbench/browser/parts/notifications/notificationsList', 'notificationAriaLabel', "{0}, notification", element.message.raw);
|
|
188
176
|
}
|
|
189
|
-
return accessibleViewHint ? (
|
|
190
|
-
'notificationWithSourceAriaLabelHint',
|
|
191
|
-
"{0}, source: {1}, notification, {2}",
|
|
192
|
-
element.message.raw,
|
|
193
|
-
element.source,
|
|
194
|
-
accessibleViewHint
|
|
195
|
-
)) : ( localize(
|
|
196
|
-
'notificationWithSourceAriaLabel',
|
|
197
|
-
"{0}, source: {1}, notification",
|
|
198
|
-
element.message.raw,
|
|
199
|
-
element.source
|
|
200
|
-
));
|
|
177
|
+
return accessibleViewHint ? localizeWithPath('vs/workbench/browser/parts/notifications/notificationsList', 'notificationWithSourceAriaLabelHint', "{0}, source: {1}, notification, {2}", element.message.raw, element.source, accessibleViewHint) : localizeWithPath('vs/workbench/browser/parts/notifications/notificationsList', 'notificationWithSourceAriaLabel', "{0}, source: {1}, notification", element.message.raw, element.source);
|
|
201
178
|
}
|
|
202
179
|
getWidgetAriaLabel() {
|
|
203
|
-
return this._options.widgetAriaLabel ?? (
|
|
180
|
+
return this._options.widgetAriaLabel ?? localizeWithPath('vs/workbench/browser/parts/notifications/notificationsList', 'notificationsList', "Notifications List");
|
|
204
181
|
}
|
|
205
182
|
getRole() {
|
|
206
183
|
return 'dialog';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/notificationsToasts.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { DisposableStore, toDisposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
5
5
|
import { Dimension, scheduleAtNextAnimationFrame, addDisposableListener, EventType, isAncestor } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
6
6
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
@@ -117,14 +117,9 @@ let NotificationsToasts = class NotificationsToasts extends Themable {
|
|
|
117
117
|
verticalScrollMode: 2 ,
|
|
118
118
|
widgetAriaLabel: (() => {
|
|
119
119
|
if (!item.source) {
|
|
120
|
-
return (
|
|
120
|
+
return localizeWithPath('vs/workbench/browser/parts/notifications/notificationsToasts', 'notificationAriaLabel', "{0}, notification", item.message.raw);
|
|
121
121
|
}
|
|
122
|
-
return (
|
|
123
|
-
'notificationWithSourceAriaLabel',
|
|
124
|
-
"{0}, source: {1}, notification",
|
|
125
|
-
item.message.raw,
|
|
126
|
-
item.source
|
|
127
|
-
));
|
|
122
|
+
return localizeWithPath('vs/workbench/browser/parts/notifications/notificationsToasts', 'notificationWithSourceAriaLabel', "{0}, source: {1}, notification", item.message.raw, item.source);
|
|
128
123
|
})()
|
|
129
124
|
});
|
|
130
125
|
itemDisposables.add(notificationList);
|
|
@@ -2,7 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
2
2
|
import { clearNode, $, EventType, addDisposableListener, EventHelper, isEventLike } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
3
3
|
import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
|
|
4
4
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
5
|
-
import {
|
|
5
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
6
6
|
import { ButtonBar } from 'monaco-editor/esm/vs/base/browser/ui/button/button.js';
|
|
7
7
|
import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
|
|
8
8
|
import { ActionRunner } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
@@ -91,11 +91,7 @@ class NotificationMessageRenderer {
|
|
|
91
91
|
else {
|
|
92
92
|
let title = node.title;
|
|
93
93
|
if (!title && node.href.startsWith('command:')) {
|
|
94
|
-
title = (
|
|
95
|
-
'executeCommand',
|
|
96
|
-
"Click to execute command '{0}'",
|
|
97
|
-
node.href.substr('command:'.length)
|
|
98
|
-
));
|
|
94
|
+
title = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsViewer', 'executeCommand', "Click to execute command '{0}'", node.href.substr('command:'.length));
|
|
99
95
|
}
|
|
100
96
|
else if (!title) {
|
|
101
97
|
title = node.href;
|
|
@@ -149,7 +145,7 @@ let NotificationRenderer = class NotificationRenderer {
|
|
|
149
145
|
const toolbarContainer = document.createElement('div');
|
|
150
146
|
toolbarContainer.classList.add('notification-list-item-toolbar-container');
|
|
151
147
|
data.toolbar = ( new ActionBar(toolbarContainer, {
|
|
152
|
-
ariaLabel: (
|
|
148
|
+
ariaLabel: localizeWithPath('vs/workbench/browser/parts/notifications/notificationsViewer', 'notificationActions', "Notification Actions"),
|
|
153
149
|
actionViewItemProvider: action => {
|
|
154
150
|
if (action && action instanceof ConfigureNotificationAction) {
|
|
155
151
|
const item = ( new DropdownMenuActionViewItem(
|
|
@@ -307,7 +303,7 @@ let NotificationTemplateRenderer = class NotificationTemplateRenderer extends Di
|
|
|
307
303
|
}
|
|
308
304
|
renderSource(notification) {
|
|
309
305
|
if (notification.expanded && notification.source) {
|
|
310
|
-
this.template.source.textContent = (
|
|
306
|
+
this.template.source.textContent = localizeWithPath('vs/workbench/browser/parts/notifications/notificationsViewer', 'notificationSource', "Source: {0}", notification.source);
|
|
311
307
|
this.template.source.title = notification.source;
|
|
312
308
|
}
|
|
313
309
|
else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { NotificationsFilter, Severity, NoOpNotification, NeverShowAgainScope } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
4
4
|
import { NotificationsModel, ChoiceAction } from 'vscode/vscode/vs/workbench/common/notifications';
|
|
5
5
|
import { Disposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -98,10 +98,16 @@ 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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
const neverShowAgainAction = toDispose.add(( new Action(
|
|
102
|
+
'workbench.notification.neverShowAgain',
|
|
103
|
+
localizeWithPath('vs/workbench/services/notification/common/notificationService', 'neverShowAgain', "Don't Show Again"),
|
|
104
|
+
undefined,
|
|
105
|
+
true,
|
|
106
|
+
async () => {
|
|
107
|
+
handle.close();
|
|
108
|
+
this.storageService.store(id, true, scope, 0 );
|
|
109
|
+
}
|
|
110
|
+
)));
|
|
105
111
|
const actions = {
|
|
106
112
|
primary: notification.actions?.primary || [],
|
|
107
113
|
secondary: notification.actions?.secondary || []
|
|
@@ -139,7 +145,7 @@ let NotificationService = class NotificationService extends Disposable {
|
|
|
139
145
|
return ( new NoOpNotification());
|
|
140
146
|
}
|
|
141
147
|
const neverShowAgainChoice = {
|
|
142
|
-
label: (
|
|
148
|
+
label: localizeWithPath('vs/workbench/services/notification/common/notificationService', 'neverShowAgain', "Don't Show Again"),
|
|
143
149
|
run: () => this.storageService.store(id, true, scope, 0 ),
|
|
144
150
|
isSecondary: options.neverShowAgain.isSecondary
|
|
145
151
|
};
|