mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
21 lines
956 B
TypeScript
21 lines
956 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' {
|
|
|
|
// https://github.com/microsoft/vscode/issues/106744
|
|
|
|
export interface NotebookRegistrationData {
|
|
readonly displayName: string;
|
|
readonly filenamePattern: ReadonlyArray<(GlobPattern | { readonly include: GlobPattern; readonly exclude: GlobPattern })>;
|
|
readonly exclusive?: boolean;
|
|
}
|
|
|
|
export namespace workspace {
|
|
|
|
// SPECIAL overload with NotebookRegistrationData
|
|
export function registerNotebookSerializer(notebookType: string, serializer: NotebookSerializer, options?: NotebookDocumentContentOptions, registration?: NotebookRegistrationData): Disposable;
|
|
}
|
|
}
|