UNPKG

sussudio

Version:

An unofficial VS Code Internal API

58 lines (57 loc) 2.25 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Event } from "../../../base/common/event.mjs"; import BaseSeverity from "../../../base/common/severity.mjs"; import { createDecorator } from "../../instantiation/common/instantiation.mjs"; export var Severity = BaseSeverity; export const INotificationService = createDecorator('notificationService'); export var NeverShowAgainScope; (function (NeverShowAgainScope) { /** * Will never show this notification on the current workspace again. */ NeverShowAgainScope[NeverShowAgainScope["WORKSPACE"] = 0] = "WORKSPACE"; /** * Will never show this notification on any workspace of the same * profile again. */ NeverShowAgainScope[NeverShowAgainScope["PROFILE"] = 1] = "PROFILE"; /** * Will never show this notification on any workspace across all * profiles again. */ NeverShowAgainScope[NeverShowAgainScope["APPLICATION"] = 2] = "APPLICATION"; })(NeverShowAgainScope || (NeverShowAgainScope = {})); export var NotificationsFilter; (function (NotificationsFilter) { /** * No filter is enabled. */ NotificationsFilter[NotificationsFilter["OFF"] = 0] = "OFF"; /** * All notifications are configured as silent. See * `INotificationProperties.silent` for more info. */ NotificationsFilter[NotificationsFilter["SILENT"] = 1] = "SILENT"; /** * All notifications are silent except error notifications. */ NotificationsFilter[NotificationsFilter["ERROR"] = 2] = "ERROR"; })(NotificationsFilter || (NotificationsFilter = {})); export class NoOpNotification { progress = new NoOpProgress(); onDidClose = Event.None; onDidChangeVisibility = Event.None; updateSeverity(severity) { } updateMessage(message) { } updateActions(actions) { } close() { } } export class NoOpProgress { infinite() { } done() { } total(value) { } worked(value) { } }