mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user