mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
update kernel per document.
This commit is contained in:
@@ -795,8 +795,9 @@ export class ExtHostNotebookKernelProviderAdapter extends Disposable {
|
||||
super();
|
||||
|
||||
if (this._provider.onDidChangeKernels) {
|
||||
this._register(this._provider.onDidChangeKernels(() => {
|
||||
this._proxy.$onNotebookKernelChange(this._handle);
|
||||
this._register(this._provider.onDidChangeKernels((e: vscode.NotebookDocument | undefined) => {
|
||||
const uri = e?.uri;
|
||||
this._proxy.$onNotebookKernelChange(this._handle, uri);
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user