mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 23:35:54 +01:00
20 lines
859 B
TypeScript
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;
|
|
}
|
|
|
|
}
|