@codingame/monaco-vscode-notifications-service-override 12.0.1 → 13.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.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
1
|
+
import { type IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
2
2
|
export default function getServiceOverride(): IEditorOverrideServices;
|
package/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
import { NotificationsToasts } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsToasts';
|
|
3
|
-
import 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
4
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
3
|
+
import '@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
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
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
7
|
-
import { getClientArea } from 'vscode/vscode/vs/base/browser/dom';
|
|
6
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
7
|
+
import { getClientArea } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
8
8
|
import { registerNotificationCommands } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsCommands';
|
|
9
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
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
12
|
import { NotificationsTelemetry } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsTelemetry';
|
|
13
|
-
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService.service';
|
|
13
|
+
import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service';
|
|
14
14
|
import { NotificationsStatus } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/browser/parts/notifications/notificationsStatus';
|
|
15
|
-
import { onRenderWorkbench } from 'vscode/lifecycle';
|
|
15
|
+
import { onRenderWorkbench } from '@codingame/monaco-vscode-api/lifecycle';
|
|
16
16
|
|
|
17
17
|
onRenderWorkbench(async (accessor) => {
|
|
18
18
|
const container = accessor.get(ILayoutService).mainContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notifications-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - notifications service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,11 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "
|
|
19
|
-
"
|
|
18
|
+
"@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-api": "13.1.0"
|
|
20
20
|
},
|
|
21
|
-
"peerDependencies": {},
|
|
22
|
-
"peerDependenciesMeta": {},
|
|
23
21
|
"main": "index.js",
|
|
24
22
|
"module": "index.js",
|
|
25
23
|
"types": "index.d.ts",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { INotification, INotificationHandle, Severity, NotificationMessage, IPromptChoice, IPromptOptions, IStatusMessageOptions, NotificationsFilter, INotificationSource, INotificationSourceFilter } from "vscode/vscode/vs/platform/notification/common/notification";
|
|
2
|
-
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
1
|
+
import { INotification, INotificationHandle, Severity, NotificationMessage, IPromptChoice, IPromptOptions, IStatusMessageOptions, NotificationsFilter, INotificationSource, INotificationSourceFilter } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification";
|
|
2
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
3
3
|
import { NotificationsModel } from "@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/common/notifications";
|
|
4
|
-
import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
5
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
6
|
-
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
4
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
6
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
7
7
|
export declare class NotificationService extends Disposable implements INotificationService {
|
|
8
8
|
private readonly storageService;
|
|
9
9
|
readonly _serviceBrand: undefined;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { isNotificationSource, NotificationsFilter, NoOpNotification, NeverShowAgainScope } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
5
|
-
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { isNotificationSource, NotificationsFilter, NoOpNotification, NeverShowAgainScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
5
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
6
|
import { NotificationsModel, NotificationChangeType, ChoiceAction } from '@codingame/monaco-vscode-494be54c-bd37-5b3c-af70-02f086e28768-common/vscode/vs/workbench/common/notifications';
|
|
7
|
-
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
|
-
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
9
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
10
|
-
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
11
|
-
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
12
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
13
|
-
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
7
|
+
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
9
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
10
|
+
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
11
|
+
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
12
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
13
|
+
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
14
14
|
|
|
15
15
|
var NotificationService_1;
|
|
16
16
|
let NotificationService = class NotificationService extends Disposable {
|
|
@@ -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(
|
|
161
|
+
const neverShowAgainAction = toDispose.add(( new Action('workbench.notification.neverShowAgain', ( localize(11680, "Don't Show Again")), undefined, true, async () => {
|
|
162
162
|
handle.close();
|
|
163
163
|
this.storageService.store(id, true, scope, StorageTarget.USER);
|
|
164
164
|
})));
|
|
@@ -199,7 +199,7 @@ let NotificationService = class NotificationService extends Disposable {
|
|
|
199
199
|
return ( new NoOpNotification());
|
|
200
200
|
}
|
|
201
201
|
const neverShowAgainChoice = {
|
|
202
|
-
label: ( localize(
|
|
202
|
+
label: ( localize(11680, "Don't Show Again")),
|
|
203
203
|
run: () => this.storageService.store(id, true, scope, StorageTarget.USER),
|
|
204
204
|
isSecondary: options.neverShowAgain.isSecondary
|
|
205
205
|
};
|