Kernel mru picker preparation (#166513)

* MRU skeleton

* Kernel Source Provider

* filter

* register provider in exthost

* Misc changes

* Revert to suggestions

* non jupyter controllers

* Add ability to select a kernel

* show extension name in detail.

* 💄

* Move strategies out.

* Back button

* First arg be the notebook document

* 💄

* Update kernel status

* Show progress in MRU

* remove separator header

* Allow selecting 3rd party controllers

* Misc

* Fix spinner

* Add separators in kernel picker

* Update kernel select title.

* Prep for MRU.

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
This commit is contained in:
Peng Lyu
2022-11-16 15:42:41 -08:00
committed by GitHub
parent 94a1ec7999
commit 8007c63981
12 changed files with 924 additions and 536 deletions

View File

@@ -11,10 +11,31 @@ declare module 'vscode' {
dispose(): void;
}
export class NotebookKernelSourceAction {
readonly label: string;
readonly description?: string;
readonly detail?: string;
readonly command: string | Command;
constructor(label: string);
}
export interface NotebookKernelSourceActionProvider {
/**
* Provide kernel source actions
*/
provideNotebookKernelSourceActions(token: CancellationToken): ProviderResult<NotebookKernelSourceAction[]>;
}
export namespace notebooks {
/**
* Create notebook controller detection task
*/
export function createNotebookControllerDetectionTask(notebookType: string): NotebookControllerDetectionTask;
/**
* Register a notebook kernel source action provider
*/
export function registerKernelSourceActionProvider(notebookType: string, provider: NotebookKernelSourceActionProvider): Disposable;
}
}