@opensumi/ide-preferences 2.12.1-next-079c1930

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +190 -0
  2. package/lib/browser/abstract-resource-preference-provider.d.ts +51 -0
  3. package/lib/browser/abstract-resource-preference-provider.d.ts.map +1 -0
  4. package/lib/browser/abstract-resource-preference-provider.js +281 -0
  5. package/lib/browser/abstract-resource-preference-provider.js.map +1 -0
  6. package/lib/browser/folder-preference-provider.d.ts +26 -0
  7. package/lib/browser/folder-preference-provider.d.ts.map +1 -0
  8. package/lib/browser/folder-preference-provider.js +49 -0
  9. package/lib/browser/folder-preference-provider.js.map +1 -0
  10. package/lib/browser/folders-preferences-provider.d.ts +41 -0
  11. package/lib/browser/folders-preferences-provider.d.ts.map +1 -0
  12. package/lib/browser/folders-preferences-provider.js +240 -0
  13. package/lib/browser/folders-preferences-provider.js.map +1 -0
  14. package/lib/browser/index.d.ts +12 -0
  15. package/lib/browser/index.d.ts.map +1 -0
  16. package/lib/browser/index.js +120 -0
  17. package/lib/browser/index.js.map +1 -0
  18. package/lib/browser/index.less +35 -0
  19. package/lib/browser/preference-contribution.d.ts +51 -0
  20. package/lib/browser/preference-contribution.d.ts.map +1 -0
  21. package/lib/browser/preference-contribution.js +315 -0
  22. package/lib/browser/preference-contribution.js.map +1 -0
  23. package/lib/browser/preference-settings.service.d.ts +120 -0
  24. package/lib/browser/preference-settings.service.d.ts.map +1 -0
  25. package/lib/browser/preference-settings.service.js +492 -0
  26. package/lib/browser/preference-settings.service.js.map +1 -0
  27. package/lib/browser/preferenceItem.view.d.ts +20 -0
  28. package/lib/browser/preferenceItem.view.d.ts.map +1 -0
  29. package/lib/browser/preferenceItem.view.js +357 -0
  30. package/lib/browser/preferenceItem.view.js.map +1 -0
  31. package/lib/browser/preferences.module.less +272 -0
  32. package/lib/browser/preferences.view.d.ts +29 -0
  33. package/lib/browser/preferences.view.d.ts.map +1 -0
  34. package/lib/browser/preferences.view.js +159 -0
  35. package/lib/browser/preferences.view.js.map +1 -0
  36. package/lib/browser/user-preference-provider.d.ts +9 -0
  37. package/lib/browser/user-preference-provider.d.ts.map +1 -0
  38. package/lib/browser/user-preference-provider.js +23 -0
  39. package/lib/browser/user-preference-provider.js.map +1 -0
  40. package/lib/browser/userstorage/index.d.ts +3 -0
  41. package/lib/browser/userstorage/index.d.ts.map +1 -0
  42. package/lib/browser/userstorage/index.js +6 -0
  43. package/lib/browser/userstorage/index.js.map +1 -0
  44. package/lib/browser/userstorage/user-storage.contribution.d.ts +8 -0
  45. package/lib/browser/userstorage/user-storage.contribution.d.ts.map +1 -0
  46. package/lib/browser/userstorage/user-storage.contribution.js +27 -0
  47. package/lib/browser/userstorage/user-storage.contribution.js.map +1 -0
  48. package/lib/browser/userstorage/user-storage.service.d.ts +62 -0
  49. package/lib/browser/userstorage/user-storage.service.d.ts.map +1 -0
  50. package/lib/browser/userstorage/user-storage.service.js +163 -0
  51. package/lib/browser/userstorage/user-storage.service.js.map +1 -0
  52. package/lib/browser/workspace-file-preference-provider.d.ts +19 -0
  53. package/lib/browser/workspace-file-preference-provider.d.ts.map +1 -0
  54. package/lib/browser/workspace-file-preference-provider.js +49 -0
  55. package/lib/browser/workspace-file-preference-provider.js.map +1 -0
  56. package/lib/browser/workspace-preference-provider.d.ts +34 -0
  57. package/lib/browser/workspace-preference-provider.d.ts.map +1 -0
  58. package/lib/browser/workspace-preference-provider.js +109 -0
  59. package/lib/browser/workspace-preference-provider.js.map +1 -0
  60. package/lib/common/index.d.ts +5 -0
  61. package/lib/common/index.d.ts.map +1 -0
  62. package/lib/common/index.js +8 -0
  63. package/lib/common/index.js.map +1 -0
  64. package/lib/common/preference-id.d.ts +8 -0
  65. package/lib/common/preference-id.d.ts.map +1 -0
  66. package/lib/common/preference-id.js +12 -0
  67. package/lib/common/preference-id.js.map +1 -0
  68. package/lib/common/preference.d.ts +4 -0
  69. package/lib/common/preference.d.ts.map +1 -0
  70. package/lib/common/preference.js +21 -0
  71. package/lib/common/preference.js.map +1 -0
  72. package/lib/common/types.d.ts +38 -0
  73. package/lib/common/types.d.ts.map +1 -0
  74. package/lib/common/types.js +5 -0
  75. package/lib/common/types.js.map +1 -0
  76. package/lib/common/user-storage.d.ts +6 -0
  77. package/lib/common/user-storage.d.ts.map +1 -0
  78. package/lib/common/user-storage.js +6 -0
  79. package/lib/common/user-storage.js.map +1 -0
  80. package/lib/index.d.ts +2 -0
  81. package/lib/index.d.ts.map +1 -0
  82. package/lib/index.js +5 -0
  83. package/lib/index.js.map +1 -0
  84. package/package.json +29 -0
@@ -0,0 +1,492 @@
1
+ "use strict";
2
+ var PreferenceSettingsService_1;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.defaultSettingSections = exports.defaultSettingGroup = exports.PreferenceSettingsService = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const di_1 = require("@opensumi/di");
7
+ const mobx_1 = require("mobx");
8
+ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
9
+ const common_1 = require("../common");
10
+ const ide_file_service_1 = require("@opensumi/ide-file-service");
11
+ const preference_contribution_1 = require("./preference-contribution");
12
+ let PreferenceSettingsService = PreferenceSettingsService_1 = class PreferenceSettingsService {
13
+ constructor() {
14
+ this.currentGroup = '';
15
+ this.currentSearch = '';
16
+ this.settingsGroups = [];
17
+ this.settingsSections = new Map();
18
+ this.enumLabels = new Map();
19
+ this.cachedGroupSection = new Map();
20
+ this.onDidEnumLabelsChangeEmitter = new ide_core_browser_1.Emitter();
21
+ this.enumLabelsChangeDelayer = new ide_core_browser_1.ThrottledDelayer(PreferenceSettingsService_1.DEFAULT_CHANGE_DELAY);
22
+ this.openJSON = (scope, preferenceId) => {
23
+ // 根据节点信息打开 Settings.json 配置文件
24
+ this.commandService.executeCommand(preference_contribution_1.PREFERENCE_COMMANDS.OPEN_SOURCE_FILE.id, scope, preferenceId);
25
+ };
26
+ this.handleListHandler = (handler) => {
27
+ this._listHandler = handler;
28
+ };
29
+ /**
30
+ * 在设置面板下搜索配置
31
+ * @param value 搜索值
32
+ */
33
+ this.search = (value) => {
34
+ this.doSearch(value);
35
+ };
36
+ this._onFocus = new ide_core_browser_1.Emitter();
37
+ this.setEnumLabels('general.language', new Proxy({}, {
38
+ get: (target, key) => {
39
+ return (0, ide_core_browser_1.getAvailableLanguages)().find((l) => l.languageId === key).localizedLanguageName;
40
+ },
41
+ }));
42
+ this.setEnumLabels('files.eol', {
43
+ '\n': 'LF',
44
+ '\r\n': 'CRLF',
45
+ 'auto': 'auto',
46
+ });
47
+ }
48
+ setCurrentGroup(groupId) {
49
+ if (this.settingsGroups.find((n) => n.id === groupId)) {
50
+ this.currentGroup = groupId;
51
+ return;
52
+ }
53
+ (0, ide_core_browser_1.getDebugLogger)('Preference').warn('PreferenceService#setCurrentGroup is called with an invalid groupId:', groupId);
54
+ }
55
+ get onDidEnumLabelsChange() {
56
+ return this.onDidEnumLabelsChangeEmitter.event;
57
+ }
58
+ isContainSearchValue(value, search) {
59
+ return value.toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1;
60
+ }
61
+ filterPreferences(preference, scope) {
62
+ return typeof preference !== 'string' && Array.isArray(preference.hiddenInScope) && preference.hiddenInScope.includes(scope);
63
+ }
64
+ doSearch(value) {
65
+ if (value) {
66
+ this.currentSearch = value;
67
+ }
68
+ else {
69
+ this.currentSearch = '';
70
+ }
71
+ }
72
+ /**
73
+ * 设置某个作用域下的配置值
74
+ * @param key 配置Key
75
+ * @param value 配置值
76
+ * @param scope 作用域
77
+ */
78
+ async setPreference(key, value, scope) {
79
+ await this.preferenceService.set(key, value, scope);
80
+ }
81
+ get listHandler() {
82
+ return this._listHandler;
83
+ }
84
+ /**
85
+ * 获取搜索条件下展示的设置面板配置组
86
+ * @param scope 作用域
87
+ * @param search 搜索值
88
+ */
89
+ getSettingGroups(scope, search) {
90
+ this.currentScope = scope;
91
+ const groups = this.settingsGroups.slice();
92
+ return groups.filter((g) => this.getSections(g.id, scope, search).length > 0);
93
+ }
94
+ /**
95
+ * 注册配置组
96
+ * @param group 配置组
97
+ */
98
+ registerSettingGroup(group) {
99
+ const disposable = (0, ide_core_browser_1.addElement)(this.settingsGroups, group);
100
+ return disposable;
101
+ }
102
+ /**
103
+ * 在某个配置组下注册配置项
104
+ * @param groupId 配置组ID
105
+ * @param section 配置项内容
106
+ */
107
+ registerSettingSection(groupId, section) {
108
+ if (!this.settingsSections.has(groupId)) {
109
+ this.settingsSections.set(groupId, []);
110
+ }
111
+ this.cachedGroupSection.clear();
112
+ const disposable = (0, ide_core_browser_1.addElement)(this.settingsSections.get(groupId), section);
113
+ return disposable;
114
+ }
115
+ /**
116
+ * 通过配置项ID获取配置项展示信息
117
+ * @param preferenceId 配置项ID
118
+ */
119
+ getSectionByPreferenceId(preferenceId) {
120
+ const groups = this.settingsSections.values();
121
+ for (const sections of groups) {
122
+ for (const section of sections) {
123
+ for (const preference of section.preferences) {
124
+ if (!(0, ide_core_browser_1.isString)(preference)) {
125
+ if (preference.id === preferenceId) {
126
+ return preference;
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ /**
134
+ * 获取特定作用域及搜索条件下的配置项
135
+ * @param groupId 配置组ID
136
+ * @param scope 作用域
137
+ * @param search 搜索条件
138
+ */
139
+ getSections(groupId, scope, search) {
140
+ const key = [groupId, scope, search || ''].join('-');
141
+ if (this.cachedGroupSection.has(key)) {
142
+ return this.cachedGroupSection.get(key);
143
+ }
144
+ const res = (this.settingsSections.get(groupId) || []).filter((section) => {
145
+ if (section.hiddenInScope && section.hiddenInScope.indexOf(scope) >= 0) {
146
+ return false;
147
+ }
148
+ else {
149
+ return true;
150
+ }
151
+ });
152
+ const result = [];
153
+ res.forEach((section) => {
154
+ if (section.preferences) {
155
+ const sec = Object.assign({}, section);
156
+ sec.preferences = section.preferences
157
+ .filter((pref) => {
158
+ if (this.filterPreferences(pref, scope)) {
159
+ return false;
160
+ }
161
+ if (!search) {
162
+ return true;
163
+ }
164
+ const prefId = typeof pref === 'string' ? pref : pref.id;
165
+ const schema = this.schemaProvider.getPreferenceProperty(prefId);
166
+ const prefLabel = typeof pref === 'string' ? (0, common_1.toPreferenceReadableName)(pref) : (0, ide_core_browser_1.localize)(pref.localized);
167
+ const description = schema && (0, ide_core_browser_1.replaceLocalizePlaceholder)(schema.description);
168
+ return this.isContainSearchValue(prefId, search) || this.isContainSearchValue(prefLabel, search) || (description && this.isContainSearchValue(description, search));
169
+ });
170
+ if (sec.preferences.length > 0) {
171
+ result.push(sec);
172
+ }
173
+ }
174
+ });
175
+ this.cachedGroupSection.set(key.toLocaleLowerCase(), result);
176
+ return result;
177
+ }
178
+ /**
179
+ * 获取某个配置名在特定作用域下的值
180
+ * @param preferenceName 配置名
181
+ * @param scope 作用域
182
+ * @param inherited 是否继承低优先级的配置值
183
+ */
184
+ getPreference(preferenceName, scope, inherited = false) {
185
+ const { value } = this.preferenceService.resolve(preferenceName, undefined, undefined, undefined, scope) || { value: undefined, scope: ide_core_browser_1.PreferenceScope.Default };
186
+ const { scope: effectingScope } = this.preferenceService.resolve(preferenceName) || { value: undefined, scope: ide_core_browser_1.PreferenceScope.Default };
187
+ return {
188
+ value,
189
+ effectingScope: effectingScope || ide_core_browser_1.PreferenceScope.Default,
190
+ };
191
+ }
192
+ /**
193
+ * 获取某个配置名下存在的Enum枚举项
194
+ * @param preferenceName 配置名
195
+ */
196
+ getEnumLabels(preferenceName) {
197
+ return this.enumLabels.get(preferenceName) || {};
198
+ }
199
+ /**
200
+ * 设置某个配置名下的Enum枚举项
201
+ * @param preferenceName 配置名
202
+ * @param labels 枚举项
203
+ */
204
+ setEnumLabels(preferenceName, labels) {
205
+ if (this.enumLabelsChangeDelayer && !this.enumLabelsChangeDelayer.isTriggered()) {
206
+ this.enumLabelsChangeDelayer.cancel();
207
+ }
208
+ this.enumLabelsChangeDelayer.trigger(async () => {
209
+ this.onDidEnumLabelsChangeEmitter.fire();
210
+ });
211
+ this.enumLabels.set(preferenceName, labels);
212
+ }
213
+ /**
214
+ * 重置某个配置项在特定作用域下的值
215
+ * @param preferenceName 配置名
216
+ * @param scope 作用域
217
+ */
218
+ async reset(preferenceName, scope) {
219
+ await this.preferenceService.set(preferenceName, undefined, scope);
220
+ }
221
+ /**
222
+ * 获取特定作用域下的配置文件路径
223
+ * @param scope 作用域
224
+ */
225
+ async getPreferenceUrl(scope) {
226
+ var _a;
227
+ const preferenceProvider = this.providerProvider(scope);
228
+ const resource = await preferenceProvider.resource;
229
+ if (resource) {
230
+ return resource.uri;
231
+ }
232
+ else {
233
+ return (_a = preferenceProvider.getConfigUri()) === null || _a === void 0 ? void 0 : _a.toString();
234
+ }
235
+ }
236
+ /**
237
+ * 获取当前面板下对应的配置文件路径
238
+ * @param scope 作用域
239
+ */
240
+ async getCurrentPreferenceUrl(scope) {
241
+ // 默认获取全局设置的URI
242
+ const url = await this.getPreferenceUrl(scope || this.currentScope || ide_core_browser_1.PreferenceScope.User);
243
+ if (!url) {
244
+ return;
245
+ }
246
+ const exist = await this.fileServiceClient.access(url);
247
+ if (!exist) {
248
+ const fileStat = await this.fileServiceClient.createFile(url);
249
+ if (fileStat) {
250
+ await this.fileServiceClient.setContent(fileStat, '{\n}');
251
+ }
252
+ }
253
+ return url;
254
+ }
255
+ get onFocus() {
256
+ return this._onFocus.event;
257
+ }
258
+ focusInput() {
259
+ this._onFocus.fire();
260
+ }
261
+ };
262
+ PreferenceSettingsService.DEFAULT_CHANGE_DELAY = 500;
263
+ (0, tslib_1.__decorate)([
264
+ (0, di_1.Autowired)(ide_core_browser_1.PreferenceService),
265
+ (0, tslib_1.__metadata)("design:type", Object)
266
+ ], PreferenceSettingsService.prototype, "preferenceService", void 0);
267
+ (0, tslib_1.__decorate)([
268
+ (0, di_1.Autowired)(ide_core_browser_1.PreferenceSchemaProvider),
269
+ (0, tslib_1.__metadata)("design:type", ide_core_browser_1.PreferenceSchemaProvider)
270
+ ], PreferenceSettingsService.prototype, "schemaProvider", void 0);
271
+ (0, tslib_1.__decorate)([
272
+ (0, di_1.Autowired)(ide_core_browser_1.PreferenceProviderProvider),
273
+ (0, tslib_1.__metadata)("design:type", Function)
274
+ ], PreferenceSettingsService.prototype, "providerProvider", void 0);
275
+ (0, tslib_1.__decorate)([
276
+ (0, di_1.Autowired)(ide_file_service_1.IFileServiceClient),
277
+ (0, tslib_1.__metadata)("design:type", Object)
278
+ ], PreferenceSettingsService.prototype, "fileServiceClient", void 0);
279
+ (0, tslib_1.__decorate)([
280
+ (0, di_1.Autowired)(ide_core_browser_1.CommandService),
281
+ (0, tslib_1.__metadata)("design:type", Object)
282
+ ], PreferenceSettingsService.prototype, "commandService", void 0);
283
+ (0, tslib_1.__decorate)([
284
+ mobx_1.observable,
285
+ (0, tslib_1.__metadata)("design:type", String)
286
+ ], PreferenceSettingsService.prototype, "currentGroup", void 0);
287
+ (0, tslib_1.__decorate)([
288
+ mobx_1.observable,
289
+ (0, tslib_1.__metadata)("design:type", String)
290
+ ], PreferenceSettingsService.prototype, "currentSearch", void 0);
291
+ (0, tslib_1.__decorate)([
292
+ mobx_1.action,
293
+ (0, tslib_1.__metadata)("design:type", Function),
294
+ (0, tslib_1.__metadata)("design:paramtypes", [Object]),
295
+ (0, tslib_1.__metadata)("design:returntype", void 0)
296
+ ], PreferenceSettingsService.prototype, "doSearch", null);
297
+ PreferenceSettingsService = PreferenceSettingsService_1 = (0, tslib_1.__decorate)([
298
+ (0, di_1.Injectable)(),
299
+ (0, tslib_1.__metadata)("design:paramtypes", [])
300
+ ], PreferenceSettingsService);
301
+ exports.PreferenceSettingsService = PreferenceSettingsService;
302
+ exports.defaultSettingGroup = [
303
+ {
304
+ id: common_1.PreferenceSettingId.General,
305
+ title: '%settings.group.general%',
306
+ iconClass: (0, ide_core_browser_1.getIcon)('setting'),
307
+ },
308
+ {
309
+ id: common_1.PreferenceSettingId.Editor,
310
+ title: '%settings.group.editor%',
311
+ iconClass: (0, ide_core_browser_1.getIcon)('editor'),
312
+ },
313
+ {
314
+ id: common_1.PreferenceSettingId.Terminal,
315
+ title: '%settings.group.terminal%',
316
+ iconClass: (0, ide_core_browser_1.getIcon)('terminal'),
317
+ },
318
+ {
319
+ id: common_1.PreferenceSettingId.Feature,
320
+ title: '%settings.group.feature%',
321
+ iconClass: (0, ide_core_browser_1.getIcon)('file-text'),
322
+ },
323
+ {
324
+ id: common_1.PreferenceSettingId.View,
325
+ title: '%settings.group.view%',
326
+ iconClass: (0, ide_core_browser_1.getIcon)('detail'),
327
+ },
328
+ ];
329
+ exports.defaultSettingSections = {
330
+ general: [
331
+ {
332
+ preferences: [
333
+ { id: 'general.theme', localized: 'preference.general.theme' },
334
+ { id: 'general.icon', localized: 'preference.general.icon' },
335
+ { id: 'general.language', localized: 'preference.general.language', hiddenInScope: [ide_core_browser_1.PreferenceScope.Workspace] },
336
+ ],
337
+ },
338
+ ],
339
+ editor: [
340
+ {
341
+ preferences: [
342
+ // 预览模式
343
+ { id: 'editor.previewMode', localized: 'preference.editor.previewMode' },
344
+ // 自动保存
345
+ { id: 'editor.autoSave', localized: 'preference.editor.autoSave' },
346
+ { id: 'editor.autoSaveDelay', localized: 'preference.editor.autoSaveDelay' },
347
+ { id: 'workbench.refactoringChanges.showPreviewStrategy', localized: 'preference.workbench.refactoringChanges.showPreviewStrategy.title' },
348
+ { id: 'editor.askIfDiff', localized: 'preference.editor.askIfDiff' },
349
+ // 光标样式
350
+ { id: 'editor.cursorStyle', localized: 'preference.editor.cursorStyle' },
351
+ // 字体
352
+ { id: 'editor.fontSize', localized: 'preference.editor.fontSize' },
353
+ { id: 'editor.fontWeight', localized: 'preference.editor.fontWeight' },
354
+ { id: 'editor.fontFamily', localized: 'preference.editor.fontFamily' },
355
+ { id: 'editor.lineHeight', localized: 'preference.editor.lineHeight' },
356
+ // 补全
357
+ { id: 'editor.suggest.insertMode', localized: 'preference.editor.suggest.insertMode' },
358
+ { id: 'editor.suggest.filterGraceful', localized: 'preference.editor.suggest.filterGraceful' },
359
+ { id: 'editor.suggest.localityBonus', localized: 'preference.editor.suggest.localityBonus' },
360
+ { id: 'editor.suggest.shareSuggestSelections', localized: 'preference.editor.suggest.shareSuggestSelections' },
361
+ { id: 'editor.suggest.snippetsPreventQuickSuggestions', localized: 'preference.editor.suggest.snippetsPreventQuickSuggestions' },
362
+ { id: 'editor.suggest.showIcons', localized: 'preference.editor.suggest.showIcons' },
363
+ { id: 'editor.suggest.maxVisibleSuggestions', localized: 'preference.editor.suggest.maxVisibleSuggestions' },
364
+ { id: 'editor.suggest.showMethods', localized: 'preference.editor.suggest.showMethods' },
365
+ { id: 'editor.suggest.showFunctions', localized: 'preference.editor.suggest.showFunctions' },
366
+ { id: 'editor.suggest.showConstructors', localized: 'preference.editor.suggest.showConstructors' },
367
+ { id: 'editor.suggest.showFields', localized: 'preference.editor.suggest.showFields' },
368
+ { id: 'editor.suggest.showVariables', localized: 'preference.editor.suggest.showVariables' },
369
+ { id: 'editor.suggest.showClasses', localized: 'preference.editor.suggest.showClasses' },
370
+ { id: 'editor.suggest.showStructs', localized: 'preference.editor.suggest.showStructs' },
371
+ { id: 'editor.suggest.showInterfaces', localized: 'preference.editor.suggest.showInterfaces' },
372
+ { id: 'editor.suggest.showModules', localized: 'preference.editor.suggest.showModules' },
373
+ { id: 'editor.suggest.showProperties', localized: 'preference.editor.suggest.showProperties' },
374
+ { id: 'editor.suggest.showEvents', localized: 'preference.editor.suggest.showEvents' },
375
+ { id: 'editor.suggest.showOperators', localized: 'preference.editor.suggest.showOperators' },
376
+ { id: 'editor.suggest.showUnits', localized: 'preference.editor.suggest.showUnits' },
377
+ { id: 'editor.suggest.showValues', localized: 'preference.editor.suggest.showValues' },
378
+ { id: 'editor.suggest.showConstants', localized: 'preference.editor.suggest.showConstants' },
379
+ { id: 'editor.suggest.showEnums', localized: 'preference.editor.suggest.showEnums' },
380
+ { id: 'editor.suggest.showEnumMembers', localized: 'preference.editor.suggest.showEnumMembers' },
381
+ { id: 'editor.suggest.showKeywords', localized: 'preference.editor.suggest.showKeywords' },
382
+ { id: 'editor.suggest.showWords', localized: 'preference.editor.suggest.showWords' },
383
+ { id: 'editor.suggest.showColors', localized: 'preference.editor.suggest.showColors' },
384
+ { id: 'editor.suggest.showFiles', localized: 'preference.editor.suggest.showFiles' },
385
+ { id: 'editor.suggest.showReferences', localized: 'preference.editor.suggest.showReferences' },
386
+ { id: 'editor.suggest.showCustomcolors', localized: 'preference.editor.suggest.showCustomcolors' },
387
+ { id: 'editor.suggest.showFolders', localized: 'preference.editor.suggest.showFolders' },
388
+ { id: 'editor.suggest.showTypeParameters', localized: 'preference.editor.suggest.showTypeParameters' },
389
+ { id: 'editor.suggest.showSnippets', localized: 'preference.editor.suggest.showSnippets' },
390
+ { id: 'editor.suggest.showUsers', localized: 'preference.editor.suggest.showUsers' },
391
+ { id: 'editor.suggest.showIssues', localized: 'preference.editor.suggest.showIssues' },
392
+ { id: 'editor.suggest.preview', localized: 'preference.editor.suggest.preview' },
393
+ // Guides
394
+ { id: 'editor.guides.bracketPairs', localized: 'preference.editor.guides.bracketPairs' },
395
+ { id: 'editor.guides.indentation', localized: 'preference.editor.guides.indentation' },
396
+ { id: 'editor.guides.highlightActiveIndentation', localized: 'preference.editor.guides.highlightActiveIndentation' },
397
+ // 行内补全
398
+ { id: 'editor.inlineSuggest.enabled', localized: 'preference.editor.inlineSuggest.enabled' },
399
+ // 缩进
400
+ { id: 'editor.detectIndentation', localized: 'preference.editor.detectIndentation' },
401
+ { id: 'editor.tabSize', localized: 'preference.editor.tabSize' },
402
+ { id: 'editor.insertSpaces', localized: 'preference.editor.insertSpace' },
403
+ // 显示
404
+ { id: 'editor.wordWrap', localized: 'preference.editor.wordWrap' },
405
+ { id: 'editor.renderLineHighlight', localized: 'preference.editor.renderLineHighlight' },
406
+ { id: 'editor.renderWhitespace', localized: 'preference.editor.renderWhitespace' },
407
+ { id: 'editor.minimap', localized: 'preference.editor.minimap' },
408
+ // 格式化
409
+ { id: 'editor.preferredFormatter', localized: 'preference.editor.preferredFormatter' },
410
+ { id: 'editor.formatOnSave', localized: 'preference.editor.formatOnSave' },
411
+ { id: 'editor.formatOnSaveTimeout', localized: 'preference.editor.formatOnSaveTimeout' },
412
+ { id: 'editor.formatOnPaste', localized: 'preference.editor.formatOnPaste' },
413
+ // 智能提示
414
+ { id: 'editor.quickSuggestionsDelay', localized: 'preference.editor.quickSuggestionsDelay' },
415
+ // 文件
416
+ // `forceReadOnly` 选项暂时不对用户暴露
417
+ // {id: 'editor.forceReadOnly', localized: 'preference.editor.forceReadOnly'},
418
+ { id: 'files.autoGuessEncoding', localized: 'preference.files.autoGuessEncoding.title' },
419
+ { id: 'files.encoding', localized: 'preference.files.encoding.title' },
420
+ { id: 'files.eol', localized: 'preference.files.eol' },
421
+ { id: 'editor.readonlyFiles', localized: 'preference.editor.readonlyFiles' },
422
+ { id: 'files.exclude', localized: 'preference.files.exclude.title' },
423
+ { id: 'files.watcherExclude', localized: 'preference.files.watcherExclude.title' },
424
+ { id: 'files.associations', localized: 'preference.files.associations.title' },
425
+ { id: 'editor.maxTokenizationLineLength', localized: 'preference.editor.maxTokenizationLineLength' },
426
+ { id: 'editor.largeFile', localized: 'preference.editor.largeFile' },
427
+ { id: 'editor.bracketPairColorization.enabled', localized: 'preference.editor.bracketPairColorization.enabled' },
428
+ // Diff 编辑器
429
+ { id: 'diffEditor.renderSideBySide', localized: 'preference.diffEditor.renderSideBySide' },
430
+ { id: 'diffEditor.ignoreTrimWhitespace', localized: 'preference.diffEditor.ignoreTrimWhitespace' },
431
+ ],
432
+ },
433
+ ],
434
+ terminal: [
435
+ {
436
+ preferences: [
437
+ // 终端类型
438
+ { id: 'terminal.type', localized: 'preference.terminal.type' },
439
+ // 字体
440
+ { id: 'terminal.fontFamily', localized: 'preference.terminal.fontFamily' },
441
+ { id: 'terminal.fontSize', localized: 'preference.terminal.fontSize' },
442
+ { id: 'terminal.fontWeight', localized: 'preference.terminal.fontWeight' },
443
+ { id: 'terminal.lineHeight', localized: 'preference.terminal.lineHeight' },
444
+ // 光标
445
+ { id: 'terminal.cursorBlink', localized: 'preference.terminal.cursorBlink' },
446
+ // 显示
447
+ { id: 'terminal.scrollback', localized: 'preference.terminal.scrollback' },
448
+ // 命令行参数
449
+ { id: 'terminal.integrated.shellArgs.linux', localized: 'preference.terminal.integrated.shellArgs.linux' },
450
+ ],
451
+ },
452
+ ],
453
+ feature: [
454
+ {
455
+ preferences: [
456
+ // 树/列表项
457
+ { id: 'workbench.list.openMode', localized: 'preference.workbench.list.openMode.title' },
458
+ { id: 'explorer.autoReveal', localized: 'preference.explorer.autoReveal' },
459
+ // 搜索
460
+ { id: 'search.exclude', localized: 'preference.search.exclude.title' },
461
+ { id: 'files.exclude', localized: 'preference.files.exclude.title' },
462
+ { id: 'files.watcherExclude', localized: 'preference.files.watcherExclude.title' },
463
+ // 输出
464
+ { id: 'output.maxChannelLine', localized: 'output.maxChannelLine' },
465
+ { id: 'output.enableLogHighlight', localized: 'output.enableLogHighlight' },
466
+ { id: 'output.enableSmartScroll', localized: 'output.enableSmartScroll' },
467
+ // 调试
468
+ // 由于筛选器的匹配模式搜索存在性能、匹配难度大等问题,先暂时隐藏
469
+ // { id: 'debug.console.filter.mode', localized: 'preference.debug.console.filter.mode' },
470
+ { id: 'debug.console.wordWrap', localized: 'preference.debug.console.wordWrap' },
471
+ { id: 'debug.inline.values', localized: 'preference.debug.inline.values' },
472
+ ],
473
+ },
474
+ ],
475
+ view: [
476
+ {
477
+ preferences: [
478
+ // 编辑器外观
479
+ { id: 'editor.wrapTab', localized: 'preference.editor.wrapTab' },
480
+ // 资源管理器
481
+ { id: 'explorer.fileTree.baseIndent', localized: 'preference.explorer.fileTree.baseIndent.title' },
482
+ { id: 'explorer.fileTree.indent', localized: 'preference.explorer.fileTree.indent.title' },
483
+ { id: 'explorer.compactFolders', localized: 'preference.explorer.compactFolders.title' },
484
+ // 运行与调试
485
+ { id: 'debug.toolbar.float', localized: 'preference.debug.toolbar.float.title' },
486
+ // 布局信息
487
+ { id: 'view.saveLayoutWithWorkspace', localized: 'preference.view.saveLayoutWithWorkspace.title' },
488
+ ],
489
+ },
490
+ ],
491
+ };
492
+ //# sourceMappingURL=preference-settings.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preference-settings.service.js","sourceRoot":"","sources":["../../src/browser/preference-settings.service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAqD;AACrD,+BAA0C;AAC1C,iEAAsZ;AACtZ,sCAA0E;AAC1E,iEAAgE;AAEhE,uEAAgE;AAGhE,IAAa,yBAAyB,iCAAtC,MAAa,yBAAyB;IA+CpC;QA5BO,iBAAY,GAAW,EAAE,CAAC;QAG1B,kBAAa,GAAW,EAAE,CAAC;QAY1B,mBAAc,GAAoB,EAAE,CAAC;QAErC,qBAAgB,GAAmC,IAAI,GAAG,EAAE,CAAC;QAE7D,eAAU,GAA2C,IAAI,GAAG,EAAE,CAAC;QAE/D,uBAAkB,GAAmC,IAAI,GAAG,EAAE,CAAC;QAI/D,iCAA4B,GAAkB,IAAI,0BAAO,EAAE,CAAC;QAC5D,4BAAuB,GAAI,IAAI,mCAAgB,CAAO,2BAAyB,CAAC,oBAAoB,CAAC,CAAC;QAoC9G,aAAQ,GAAG,CAAC,KAAsB,EAAE,YAAoB,EAAE,EAAE;YAC1D,8BAA8B;YAC9B,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,6CAAmB,CAAC,gBAAgB,CAAC,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;QACnG,CAAC,CAAA;QAgBD,sBAAiB,GAAG,CAAC,OAAY,EAAE,EAAE;YACnC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;QAC9B,CAAC,CAAA;QAyLD;;;WAGG;QACH,WAAM,GAAG,CAAC,KAAa,EAAE,EAAE;YACzB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAA;QAEgB,aAAQ,GAAkB,IAAI,0BAAO,EAAQ,CAAC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1,20 @@
1
+ /// <reference types="react" />
2
+ import { PreferenceScope } from '@opensumi/ide-core-browser';
3
+ /**
4
+ * 用于展示单个设置项的视图
5
+ * 目前支持类型:
6
+ * string:
7
+ * 含有 enum - 下拉选项框
8
+ * 不含有 enum - 输入框
9
+ * number: 输入框
10
+ * array:
11
+ * 只允许 string类 - 可视化编辑项
12
+ * object:
13
+ * 暂不支持
14
+ */
15
+ export declare const NextPreferenceItem: ({ preferenceName, localizedName, scope }: {
16
+ preferenceName: string;
17
+ localizedName?: string | undefined;
18
+ scope: PreferenceScope;
19
+ }) => JSX.Element;
20
+ //# sourceMappingURL=preferenceItem.view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preferenceItem.view.d.ts","sourceRoot":"","sources":["../../src/browser/preferenceItem.view.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAA+O,MAAM,4BAA4B,CAAC;AAqB1S;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB;oBAAgE,MAAM;;WAAiC,eAAe;iBA4FpJ,CAAC"}