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>
This commit is contained in:
Ian Huff
2022-09-20 08:15:13 -07:00
committed by GitHub
parent 95bf25f800
commit 287229489b
8 changed files with 37 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
/*---------------------------------------------------------------------------------------------
* 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;
}
}