mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 02:58:31 -05:00
* Merge from vscode 64980ea1f3f532c82bb6c28d27bba9ef2c5b4463 * fix config changes * fix strictnull checks
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { URI, UriComponents } from 'vs/base/common/uri';
|
|
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
|
import { IDisposable } from 'vs/base/common/lifecycle';
|
|
|
|
export const IURLService = createDecorator<IURLService>('urlService');
|
|
|
|
export interface IURLHandler {
|
|
handleURL(uri: URI): Promise<boolean>;
|
|
}
|
|
|
|
export interface IURLService {
|
|
|
|
_serviceBrand: undefined;
|
|
|
|
/**
|
|
* Create a URL that can be called to trigger IURLhandlers.
|
|
* The URL that gets passed to the IURLHandlers carries over
|
|
* any of the provided IURLCreateOption values.
|
|
*/
|
|
create(options?: Partial<UriComponents>): URI;
|
|
|
|
open(url: URI): Promise<boolean>;
|
|
|
|
registerHandler(handler: IURLHandler): IDisposable;
|
|
}
|