mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
* notebookControllerAffinityHidden proposal to allow for hiding of controllers from the picker per document * change Extended to 2 * add a proposed API guard check for usage of new Hidden enum value Co-authored-by: Ian Huff <ianhuff@Ians-MacBook-Pro.local>
18 lines
698 B
TypeScript
18 lines
698 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/161144
|
|
export enum NotebookControllerAffinity2 {
|
|
Default = 1,
|
|
Preferred = 2,
|
|
Hidden = -1
|
|
}
|
|
|
|
export interface NotebookController {
|
|
updateNotebookAffinity(notebook: NotebookDocument, affinity: NotebookControllerAffinity | NotebookControllerAffinity2): void;
|
|
}
|
|
}
|