Files
vscode/src/vscode-dts/vscode.proposed.profileContentHandlers.d.ts
Sandeep Somavarapu 2e74e3c951 fix #167628 (#170110)
2022-12-27 15:28:31 +01:00

20 lines
859 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare module 'vscode' {
export interface ProfileContentHandler {
readonly name: string;
readonly description?: string;
saveProfile(name: string, content: string, token: CancellationToken): Thenable<{ readonly id: string; readonly link: Uri } | null>;
readProfile(idOrUri: string | Uri, token: CancellationToken): Thenable<string | null>;
}
export namespace window {
export function registerProfileContentHandler(id: string, profileContentHandler: ProfileContentHandler): Disposable;
}
}