diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts b/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts index e379af1078b1ee784fb3707bf601bd126f0af5b0..d8c90bc6fce7fac29f72eedae5636148c84d7507 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts @@ -311,7 +311,7 @@ class NotebookCellOutline implements IOutline { })); this._dispoables.add(_configurationService.onDidChangeConfiguration(e => { - if (e.affectsConfiguration('outline.showNotebookCodeCells')) { + if (e.affectsConfiguration('notebook.outline.showCodeCells')) { this._recomputeState(); } })); @@ -369,7 +369,7 @@ class NotebookCellOutline implements IOutline { return; } - const includeCodeCells = this._configurationService.getValue('outline.showNotebookCodeCells'); + const includeCodeCells = this._configurationService.getValue('notebook.outline.showCodeCells'); const [selected] = viewModel.selectionHandles; const entries: OutlineEntry[] = []; @@ -561,14 +561,14 @@ Registry.as(WorkbenchExtensions.Workbench).regi Registry.as(ConfigurationExtensions.Configuration).registerConfiguration({ - 'id': 'outline', - 'order': 117, - 'type': 'object', + id: 'notebook', + order: 100, + type: 'object', 'properties': { - 'outline.showNotebookCodeCells': { + 'notebook.outline.showCodeCells': { type: 'boolean', default: true, - markdownDescription: localize('showNotebookCodeCells', "When enabled outline shows code cell of notebooks.") + markdownDescription: localize('showCodeCells', "When enabled notebook outline shows code cells.") } } });