void/src/vscode-dts/vscode.proposed.notebookReplDocument.d.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1 KiB
TypeScript
Raw Permalink Normal View History

2024-09-11 02:37:36 +00:00
/*---------------------------------------------------------------------------------------------
* 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' {
export interface NotebookDocumentShowOptions {
/**
* The notebook should be opened in a REPL editor,
2024-09-24 04:46:08 +00:00
* where the last cell of the notebook is an input box and the other cells are the read-only history.
* When the value is a string, it will be used as the label for the editor tab.
2024-09-11 02:37:36 +00:00
*/
2024-09-24 04:46:08 +00:00
readonly asRepl?: boolean | string | {
/**
* The label to be used for the editor tab.
*/
readonly label: string;
};
}
2024-09-11 02:37:36 +00:00
2024-09-24 04:46:08 +00:00
export interface NotebookEditor {
2024-09-11 02:37:36 +00:00
/**
2024-09-24 04:46:08 +00:00
* Information about the REPL editor if the notebook was opened as a repl.
2024-09-11 02:37:36 +00:00
*/
2024-09-24 04:46:08 +00:00
replOptions?: {
/**
* The index where new cells should be appended.
*/
appendIndex: number;
};
2024-09-11 02:37:36 +00:00
}
}