Welcome to mirror list, hosted at ThFree Co, Russian Federation.

extensionUrlTrust.ts « common « extensionManagement « platform « vs « src - github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b26395646b72b3ef0104dc9e505dec02247f3034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

import { createDecorator } from 'vs/platform/instantiation/common/instantiation';

export const IExtensionUrlTrustService = createDecorator<IExtensionUrlTrustService>('extensionUrlTrustService');

export interface IExtensionUrlTrustService {
	readonly _serviceBrand: undefined;
	isExtensionUrlTrusted(extensionId: string, url: string): Promise<boolean>;
}