mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-30 05:21:08 +01:00
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:
17
src/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts
vendored
Normal file
17
src/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user