Files
vscode/src/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts
Ian Huff 287229489b notebookControllerAffinityHidden proposal to allow for hiding of notebook controllers per document (#161145)
* 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>
2022-09-20 08:15:13 -07:00

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;
}
}