@codingame/monaco-vscode-notifications-service-override 23.2.2 → 24.1.0
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/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
import { NotificationsToasts } from '@codingame/monaco-vscode-
|
|
2
|
+
import { NotificationsToasts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/notifications/notificationsToasts';
|
|
3
3
|
import '@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
4
4
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
5
|
import { NotificationService } from './vscode/src/vs/workbench/services/notification/common/notificationService.js';
|
|
6
6
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
7
7
|
import { getClientArea } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
8
|
-
import { registerNotificationCommands } from '@codingame/monaco-vscode-
|
|
8
|
+
import { registerNotificationCommands } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/notifications/notificationsCommands';
|
|
9
9
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
10
|
-
import { NotificationsCenter } from '@codingame/monaco-vscode-
|
|
11
|
-
import { NotificationsAlerts } from '@codingame/monaco-vscode-
|
|
10
|
+
import { NotificationsCenter } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/notifications/notificationsCenter';
|
|
11
|
+
import { NotificationsAlerts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/notifications/notificationsAlerts';
|
|
12
12
|
import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service';
|
|
13
|
-
import { NotificationsStatus } from '@codingame/monaco-vscode-
|
|
13
|
+
import { NotificationsStatus } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/notifications/notificationsStatus';
|
|
14
14
|
import { onRenderWorkbench } from '@codingame/monaco-vscode-api/lifecycle';
|
|
15
15
|
|
|
16
16
|
onRenderWorkbench(async (accessor) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notifications-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - notifications service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-api": "23.2.2"
|
|
18
|
+
"@codingame/monaco-vscode-api": "24.1.0"
|
|
20
19
|
},
|
|
21
20
|
"main": "index.js",
|
|
22
21
|
"module": "index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INotification, INotificationHandle, Severity, NotificationMessage, IPromptChoice, IPromptOptions, IStatusMessageOptions, NotificationsFilter, INotificationSource, INotificationSourceFilter, IStatusHandle } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification";
|
|
2
2
|
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
3
|
-
import { NotificationsModel } from "@codingame/monaco-vscode-
|
|
3
|
+
import { NotificationsModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/notifications";
|
|
4
4
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
5
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
6
6
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { isNotificationSource, NotificationsFilter, NoOpNotification, NeverShowAgainScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
5
5
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
-
import { NotificationsModel, NotificationChangeType, ChoiceAction } from '@codingame/monaco-vscode-
|
|
6
|
+
import { NotificationsModel, NotificationChangeType, ChoiceAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/notifications';
|
|
7
7
|
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
8
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
9
9
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
@@ -141,7 +141,7 @@ let NotificationService = class NotificationService extends Disposable {
|
|
|
141
141
|
if (this.storageService.getBoolean(id, scope)) {
|
|
142
142
|
return ( new NoOpNotification());
|
|
143
143
|
}
|
|
144
|
-
const neverShowAgainAction = toDispose.add(( new Action('workbench.notification.neverShowAgain', ( localize(
|
|
144
|
+
const neverShowAgainAction = toDispose.add(( new Action('workbench.notification.neverShowAgain', ( localize(14134, "Don't Show Again")), undefined, true, async () => {
|
|
145
145
|
handle.close();
|
|
146
146
|
this.storageService.store(id, true, scope, StorageTarget.USER);
|
|
147
147
|
})));
|
|
@@ -181,7 +181,7 @@ let NotificationService = class NotificationService extends Disposable {
|
|
|
181
181
|
return ( new NoOpNotification());
|
|
182
182
|
}
|
|
183
183
|
const neverShowAgainChoice = {
|
|
184
|
-
label: ( localize(
|
|
184
|
+
label: ( localize(14134, "Don't Show Again")),
|
|
185
185
|
run: () => this.storageService.store(id, true, scope, StorageTarget.USER),
|
|
186
186
|
isSecondary: options.neverShowAgain.isSecondary
|
|
187
187
|
};
|