extract notebook controller kind into its own proposal, https://github.com/microsoft/vscode/issues/131165

This commit is contained in:
Johannes Rieken
2021-11-12 09:54:38 +01:00
parent a4d426a1c2
commit 20382c5743
4 changed files with 19 additions and 6 deletions

View File

@@ -167,11 +167,11 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
_update();
},
get kind() {
checkProposedApiEnabled(extension);
checkProposedApiEnabled(extension, 'notebookControllerKind');
return data.kind ?? '';
},
set kind(value) {
checkProposedApiEnabled(extension);
checkProposedApiEnabled(extension, 'notebookControllerKind');
data.kind = value;
_update();
},