@codingame/monaco-vscode-notifications-service-override 13.1.7 → 14.0.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
@@ -9,7 +9,6 @@ import { registerNotificationCommands } from '@codingame/monaco-vscode-494be54c-
9
9
  import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
10
10
  import { NotificationsCenter } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsCenter';
11
11
  import { NotificationsAlerts } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsAlerts';
12
- import { NotificationsTelemetry } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsTelemetry';
13
12
  import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service';
14
13
  import { NotificationsStatus } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsStatus';
15
14
  import { onRenderWorkbench } from '@codingame/monaco-vscode-api/lifecycle';
@@ -23,7 +22,6 @@ onRenderWorkbench(async (accessor) => {
23
22
  const notificationsToasts = instantiationService.createInstance(NotificationsToasts, container, model);
24
23
  instantiationService.createInstance(NotificationsAlerts, model);
25
24
  const notificationsStatus = instantiationService.createInstance(NotificationsStatus, model);
26
- instantiationService.createInstance(NotificationsTelemetry);
27
25
  notificationsCenter.onDidChangeVisibility(() => {
28
26
  notificationsStatus.update(notificationsCenter.isVisible, notificationsToasts.isVisible);
29
27
  notificationsToasts.update(notificationsCenter.isVisible);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-notifications-service-override",
3
- "version": "13.1.7",
3
+ "version": "14.0.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,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "13.1.7",
19
- "@codingame/monaco-vscode-api": "13.1.7"
18
+ "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "14.0.0",
19
+ "@codingame/monaco-vscode-api": "14.0.0"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -158,7 +158,7 @@ let NotificationService = class NotificationService extends Disposable {
158
158
  if (this.storageService.getBoolean(id, scope)) {
159
159
  return ( new NoOpNotification());
160
160
  }
161
- const neverShowAgainAction = toDispose.add(( new Action('workbench.notification.neverShowAgain', ( localize(11678, "Don't Show Again")), undefined, true, async () => {
161
+ const neverShowAgainAction = toDispose.add(( new Action('workbench.notification.neverShowAgain', ( localize(11896, "Don't Show Again")), undefined, true, async () => {
162
162
  handle.close();
163
163
  this.storageService.store(id, true, scope, StorageTarget.USER);
164
164
  })));
@@ -191,7 +191,6 @@ let NotificationService = class NotificationService extends Disposable {
191
191
  }
192
192
  }
193
193
  prompt(severity, message, choices, options) {
194
- const toDispose = ( new DisposableStore());
195
194
  if (options?.neverShowAgain) {
196
195
  const scope = this.toStorageScope(options.neverShowAgain);
197
196
  const id = options.neverShowAgain.id;
@@ -199,7 +198,7 @@ let NotificationService = class NotificationService extends Disposable {
199
198
  return ( new NoOpNotification());
200
199
  }
201
200
  const neverShowAgainChoice = {
202
- label: ( localize(11678, "Don't Show Again")),
201
+ label: ( localize(11896, "Don't Show Again")),
203
202
  run: () => this.storageService.store(id, true, scope, StorageTarget.USER),
204
203
  isSecondary: options.neverShowAgain.isSecondary
205
204
  };
@@ -211,6 +210,7 @@ let NotificationService = class NotificationService extends Disposable {
211
210
  }
212
211
  }
213
212
  let choiceClicked = false;
213
+ const toDispose = ( new DisposableStore());
214
214
  const primaryActions = [];
215
215
  const secondaryActions = [];
216
216
  choices.forEach((choice, index) => {