settingsLayout.ts 3.7 KB
Newer Older
R
Rob Lourens 已提交
1
/*---------------------------------------------------------------------------------------------
2 3 4
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
R
Rob Lourens 已提交
5

R
Rob Lourens 已提交
6 7 8 9 10 11 12 13 14
import { ISetting } from 'vs/workbench/services/preferences/common/preferences';

export interface ITOCEntry {
	id: string;
	label: string;

	children?: ITOCEntry[];
	settings?: (string | ISetting)[];
}
R
Rob Lourens 已提交
15

16 17 18 19
export const tocData: ITOCEntry = {
	id: 'root',
	label: 'root',
	children: [
R
Rob Lourens 已提交
20
		{
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
			id: 'editor',
			label: 'Text Editor',
			children: [
				{
					id: 'editor/cursor',
					label: 'Cursor',
					settings: ['editor.cursor*']
				},
				{
					id: 'editor/find',
					label: 'Find',
					settings: ['editor.find.*']
				},
				{
					id: 'editor/font',
					label: 'Font',
					settings: ['editor.font*']
				},
				{
					id: 'editor/format',
					label: 'Format',
					settings: ['editor.format*']
				},
				{
					id: 'editor/diff',
					label: 'Diff Editor',
					settings: ['diffEditor.*']
				},
				{
					id: 'editor/minimap',
					label: 'Minimap',
					settings: ['editor.minimap.*']
				},
				{
					id: 'editor/suggestions',
					label: 'Suggestions',
					settings: ['editor.*suggestion*']
				},
				{
					id: 'editor/files',
					label: 'Files',
					settings: ['files.*']
				},
				{
					id: 'editor/editor',
					label: 'Editor',
					settings: ['editor.*']
				}
			]
		},
		{
			id: 'workbench',
			label: 'Workbench',
			children: [
				{
					id: 'workbench/appearance',
					label: 'Appearance',
					settings: ['workbench.activityBar.*', 'workbench.*color*', 'workbench.fontAliasing', 'workbench.iconTheme', 'workbench.sidebar.location', 'workbench.*.visible', 'workbench.tips.enabled', 'workbench.tree.*', 'workbench.view.*']
				},
				{
					id: 'workbench/editor',
					label: 'Editor Management',
					settings: ['workbench.editor.*']
				},
				{
					id: 'workbench/zenmode',
					label: 'Zen Mode',
					settings: ['zenmode.*']
				},
				{
					id: 'workbench/workbench',
					label: 'Workbench',
					settings: ['workbench.*']
				}
			]
		},
		{
			id: 'window',
			label: 'Window',
			children: [
				{
					id: 'window/newWindow',
					label: 'New Window',
					settings: ['window.*newwindow*']
				},
				{
					id: 'window/window',
					label: 'Window',
					settings: ['window.*']
				}
			]
		},
		{
			id: 'features',
			label: 'Features',
			children: [
				{
					id: 'features/explorer',
					label: 'File Explorer',
					settings: ['explorer.*', 'outline.*']
				},
				{
					id: 'features/search',
					label: 'Search',
					settings: ['search.*']
				}
				,
				{
					id: 'features/debug',
					label: 'Debug',
					settings: ['debug.*', 'launch']
				},
				{
					id: 'features/scm',
R
Rob Lourens 已提交
135
					label: 'SCM',
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
					settings: ['scm.*']
				},
				{
					id: 'features/extensions',
					label: 'Extension Viewlet',
					settings: ['extensions.*']
				},
				{
					id: 'features/terminal',
					label: 'Terminal',
					settings: ['terminal.*']
				},
				{
					id: 'features/problems',
					label: 'Problems',
					settings: ['problems.*']
				}
			]
		},
		{
			id: 'application',
			label: 'Application',
			children: [
				{
					id: 'application/http',
					label: 'Proxy',
					settings: ['http.*']
				},
				{
					id: 'application/keyboard',
					label: 'Keyboard',
					settings: ['keyboard.*']
				},
				{
					id: 'application/update',
					label: 'Update',
					settings: ['update.*']
				},
				{
					id: 'application/telemetry',
					label: 'Telemetry',
					settings: ['telemetry.*']
				}
			]
		},
		{
			id: 'extensions',
			label: 'Extensions',
			settings: ['*']
		}
	]
R
Rob Lourens 已提交
187
};