UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

22 lines (21 loc) 1.21 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { localize } from 'vscode-nls.mjs'; import { createDecorator } from '../../instantiation/common/instantiation.mjs'; export var WorkspaceTrustScope; (function (WorkspaceTrustScope) { WorkspaceTrustScope[(WorkspaceTrustScope['Local'] = 0)] = 'Local'; WorkspaceTrustScope[(WorkspaceTrustScope['Remote'] = 1)] = 'Remote'; })(WorkspaceTrustScope || (WorkspaceTrustScope = {})); export function workspaceTrustToString(trustState) { if (trustState) { return localize('trusted', 'Trusted'); } else { return localize('untrusted', 'Restricted Mode'); } } export const IWorkspaceTrustEnablementService = createDecorator('workspaceTrustEnablementService'); export const IWorkspaceTrustManagementService = createDecorator('workspaceTrustManagementService'); export const IWorkspaceTrustRequestService = createDecorator('workspaceTrustRequestService');