mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Notebook Variable view follow-up (#198555)
* PR feedback follow-up * fix API type issues
This commit is contained in:
@@ -9,7 +9,10 @@ declare module 'vscode' {
|
||||
variableProvider?: NotebookVariableProvider;
|
||||
}
|
||||
|
||||
type VariablesRequestKind = 'named' | 'indexed';
|
||||
export enum NotebookVariablesRequestKind {
|
||||
Named = 1,
|
||||
Indexed = 2
|
||||
}
|
||||
|
||||
interface VariablesResult {
|
||||
variable: Variable;
|
||||
@@ -21,7 +24,7 @@ declare module 'vscode' {
|
||||
onDidChangeVariables: Event<void>;
|
||||
|
||||
/** When parent is undefined, this is requesting global Variables. When a variable is passed, it's requesting child props of that Variable. */
|
||||
provideVariables(notebook: NotebookDocument, parent: Variable | undefined, kind: VariablesRequestKind, start: number, token: CancellationToken): AsyncIterable<VariablesResult>;
|
||||
provideVariables(notebook: NotebookDocument, parent: Variable | undefined, kind: NotebookVariablesRequestKind, start: number, token: CancellationToken): AsyncIterable<VariablesResult>;
|
||||
}
|
||||
|
||||
interface Variable {
|
||||
|
||||
Reference in New Issue
Block a user