提交 b2242cc5 编写于 作者: J Johannes Rieken

rename notebook outline settings to `notebook.outline.showCodeCells`

上级 fa7d5e7d
......@@ -311,7 +311,7 @@ class NotebookCellOutline implements IOutline<OutlineEntry> {
}));
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<OutlineEntry> {
return;
}
const includeCodeCells = this._configurationService.getValue<boolean>('outline.showNotebookCodeCells');
const includeCodeCells = this._configurationService.getValue<boolean>('notebook.outline.showCodeCells');
const [selected] = viewModel.selectionHandles;
const entries: OutlineEntry[] = [];
......@@ -561,14 +561,14 @@ Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench).regi
Registry.as<IConfigurationRegistry>(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.")
}
}
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册