@theia/preferences 1.77.0-next.99 → 1.77.0
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.
- package/lib/browser/folder-preference-provider.d.ts +1 -1
- package/lib/browser/folder-preference-provider.d.ts.map +1 -1
- package/lib/browser/folder-preference-provider.js +17 -23
- package/lib/browser/folder-preference-provider.js.map +1 -1
- package/lib/browser/folders-preferences-provider.d.ts +3 -3
- package/lib/browser/folders-preferences-provider.d.ts.map +1 -1
- package/lib/browser/folders-preferences-provider.js +30 -40
- package/lib/browser/folders-preferences-provider.js.map +1 -1
- package/lib/browser/frontend-preference-storage.d.ts +2 -2
- package/lib/browser/frontend-preference-storage.d.ts.map +1 -1
- package/lib/browser/frontend-preference-storage.js +5 -9
- package/lib/browser/frontend-preference-storage.js.map +1 -1
- package/lib/browser/index.d.ts +3 -3
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +4 -7
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/monaco-jsonc-editor.js +10 -14
- package/lib/browser/monaco-jsonc-editor.js.map +1 -1
- package/lib/browser/package.spec.d.ts +1 -0
- package/lib/browser/package.spec.js +1 -1
- package/lib/browser/package.spec.js.map +1 -1
- package/lib/browser/preference-bindings.js +23 -27
- package/lib/browser/preference-bindings.js.map +1 -1
- package/lib/browser/preference-frontend-contribution.d.ts +9 -6
- package/lib/browser/preference-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/preference-frontend-contribution.js +34 -38
- package/lib/browser/preference-frontend-contribution.js.map +1 -1
- package/lib/browser/preference-frontend-contribution.spec.js +30 -16
- package/lib/browser/preference-frontend-contribution.spec.js.map +1 -1
- package/lib/browser/preference-frontend-module.d.ts +1 -1
- package/lib/browser/preference-frontend-module.d.ts.map +1 -1
- package/lib/browser/preference-frontend-module.js +51 -54
- package/lib/browser/preference-frontend-module.js.map +1 -1
- package/lib/browser/preference-open-handler.d.ts +1 -1
- package/lib/browser/preference-open-handler.d.ts.map +1 -1
- package/lib/browser/preference-open-handler.js +10 -14
- package/lib/browser/preference-open-handler.js.map +1 -1
- package/lib/browser/preference-transaction-manager.d.ts +2 -2
- package/lib/browser/preference-transaction-manager.d.ts.map +1 -1
- package/lib/browser/preference-transaction-manager.js +49 -63
- package/lib/browser/preference-transaction-manager.js.map +1 -1
- package/lib/browser/preference-tree-model.d.ts +4 -4
- package/lib/browser/preference-tree-model.d.ts.map +1 -1
- package/lib/browser/preference-tree-model.js +48 -59
- package/lib/browser/preference-tree-model.js.map +1 -1
- package/lib/browser/preference-tree-model.spec.js +84 -86
- package/lib/browser/preference-tree-model.spec.js.map +1 -1
- package/lib/browser/preferences-contribution.d.ts +2 -2
- package/lib/browser/preferences-contribution.d.ts.map +1 -1
- package/lib/browser/preferences-contribution.js +76 -86
- package/lib/browser/preferences-contribution.js.map +1 -1
- package/lib/browser/preferences-json-schema-contribution.js +34 -41
- package/lib/browser/preferences-json-schema-contribution.js.map +1 -1
- package/lib/browser/preferences-monaco-contribution.js +1 -4
- package/lib/browser/preferences-monaco-contribution.js.map +1 -1
- package/lib/browser/session-preference-remote-cli-contribution.js +13 -17
- package/lib/browser/session-preference-remote-cli-contribution.js.map +1 -1
- package/lib/browser/session-preference-remote-cli-contribution.spec.js +8 -10
- package/lib/browser/session-preference-remote-cli-contribution.spec.js.map +1 -1
- package/lib/browser/session-preference-status-bar-contribution.js +34 -43
- package/lib/browser/session-preference-status-bar-contribution.js.map +1 -1
- package/lib/browser/util/preference-layout.js +74 -77
- package/lib/browser/util/preference-layout.js.map +1 -1
- package/lib/browser/util/preference-layout.spec.js +6 -8
- package/lib/browser/util/preference-layout.spec.js.map +1 -1
- package/lib/browser/util/preference-scope-command-manager.js +19 -25
- package/lib/browser/util/preference-scope-command-manager.js.map +1 -1
- package/lib/browser/util/preference-tree-generator.d.ts +3 -3
- package/lib/browser/util/preference-tree-generator.d.ts.map +1 -1
- package/lib/browser/util/preference-tree-generator.js +31 -41
- package/lib/browser/util/preference-tree-generator.js.map +1 -1
- package/lib/browser/util/preference-tree-label-provider.d.ts +2 -2
- package/lib/browser/util/preference-tree-label-provider.d.ts.map +1 -1
- package/lib/browser/util/preference-tree-label-provider.js +14 -18
- package/lib/browser/util/preference-tree-label-provider.js.map +1 -1
- package/lib/browser/util/preference-tree-label-provider.spec.js +21 -23
- package/lib/browser/util/preference-tree-label-provider.spec.js.map +1 -1
- package/lib/browser/util/preference-types.js +27 -30
- package/lib/browser/util/preference-types.js.map +1 -1
- package/lib/browser/views/components/preference-array-input.d.ts +3 -3
- package/lib/browser/views/components/preference-array-input.d.ts.map +1 -1
- package/lib/browser/views/components/preference-array-input.js +17 -20
- package/lib/browser/views/components/preference-array-input.js.map +1 -1
- package/lib/browser/views/components/preference-boolean-input.d.ts +3 -3
- package/lib/browser/views/components/preference-boolean-input.d.ts.map +1 -1
- package/lib/browser/views/components/preference-boolean-input.js +14 -17
- package/lib/browser/views/components/preference-boolean-input.js.map +1 -1
- package/lib/browser/views/components/preference-file-input.d.ts +4 -4
- package/lib/browser/views/components/preference-file-input.d.ts.map +1 -1
- package/lib/browser/views/components/preference-file-input.js +23 -27
- package/lib/browser/views/components/preference-file-input.js.map +1 -1
- package/lib/browser/views/components/preference-json-input.d.ts +3 -3
- package/lib/browser/views/components/preference-json-input.d.ts.map +1 -1
- package/lib/browser/views/components/preference-json-input.js +18 -22
- package/lib/browser/views/components/preference-json-input.js.map +1 -1
- package/lib/browser/views/components/preference-markdown-renderer.d.ts +2 -2
- package/lib/browser/views/components/preference-markdown-renderer.d.ts.map +1 -1
- package/lib/browser/views/components/preference-markdown-renderer.js +20 -27
- package/lib/browser/views/components/preference-markdown-renderer.js.map +1 -1
- package/lib/browser/views/components/preference-node-renderer-creator.d.ts +2 -2
- package/lib/browser/views/components/preference-node-renderer-creator.d.ts.map +1 -1
- package/lib/browser/views/components/preference-node-renderer-creator.js +31 -36
- package/lib/browser/views/components/preference-node-renderer-creator.js.map +1 -1
- package/lib/browser/views/components/preference-node-renderer.d.ts +6 -6
- package/lib/browser/views/components/preference-node-renderer.d.ts.map +1 -1
- package/lib/browser/views/components/preference-node-renderer.js +70 -90
- package/lib/browser/views/components/preference-node-renderer.js.map +1 -1
- package/lib/browser/views/components/preference-null-input.d.ts +3 -3
- package/lib/browser/views/components/preference-null-input.d.ts.map +1 -1
- package/lib/browser/views/components/preference-null-input.js +12 -15
- package/lib/browser/views/components/preference-null-input.js.map +1 -1
- package/lib/browser/views/components/preference-number-input.d.ts +3 -3
- package/lib/browser/views/components/preference-number-input.d.ts.map +1 -1
- package/lib/browser/views/components/preference-number-input.js +29 -32
- package/lib/browser/views/components/preference-number-input.js.map +1 -1
- package/lib/browser/views/components/preference-select-input.d.ts +3 -3
- package/lib/browser/views/components/preference-select-input.d.ts.map +1 -1
- package/lib/browser/views/components/preference-select-input.js +23 -26
- package/lib/browser/views/components/preference-select-input.js.map +1 -1
- package/lib/browser/views/components/preference-string-input.d.ts +3 -3
- package/lib/browser/views/components/preference-string-input.d.ts.map +1 -1
- package/lib/browser/views/components/preference-string-input.js +14 -17
- package/lib/browser/views/components/preference-string-input.js.map +1 -1
- package/lib/browser/views/preference-editor-widget.d.ts +5 -5
- package/lib/browser/views/preference-editor-widget.d.ts.map +1 -1
- package/lib/browser/views/preference-editor-widget.js +65 -78
- package/lib/browser/views/preference-editor-widget.js.map +1 -1
- package/lib/browser/views/preference-scope-tabbar-widget.d.ts +2 -2
- package/lib/browser/views/preference-scope-tabbar-widget.d.ts.map +1 -1
- package/lib/browser/views/preference-scope-tabbar-widget.js +51 -63
- package/lib/browser/views/preference-scope-tabbar-widget.js.map +1 -1
- package/lib/browser/views/preference-searchbar-widget.js +23 -30
- package/lib/browser/views/preference-searchbar-widget.js.map +1 -1
- package/lib/browser/views/preference-tree-widget.d.ts +3 -3
- package/lib/browser/views/preference-tree-widget.d.ts.map +1 -1
- package/lib/browser/views/preference-tree-widget.js +23 -31
- package/lib/browser/views/preference-tree-widget.js.map +1 -1
- package/lib/browser/views/preference-widget-bindings.js +60 -64
- package/lib/browser/views/preference-widget-bindings.js.map +1 -1
- package/lib/browser/views/preference-widget.d.ts +5 -5
- package/lib/browser/views/preference-widget.d.ts.map +1 -1
- package/lib/browser/views/preference-widget.js +24 -34
- package/lib/browser/views/preference-widget.js.map +1 -1
- package/lib/browser/workspace-file-preference-provider.d.ts +2 -2
- package/lib/browser/workspace-file-preference-provider.d.ts.map +1 -1
- package/lib/browser/workspace-file-preference-provider.js +21 -26
- package/lib/browser/workspace-file-preference-provider.js.map +1 -1
- package/lib/browser/workspace-preference-provider.d.ts +5 -5
- package/lib/browser/workspace-preference-provider.d.ts.map +1 -1
- package/lib/browser/workspace-preference-provider.js +31 -40
- package/lib/browser/workspace-preference-provider.js.map +1 -1
- package/lib/common/abstract-resource-preference-provider.d.ts +2 -2
- package/lib/common/abstract-resource-preference-provider.d.ts.map +1 -1
- package/lib/common/abstract-resource-preference-provider.js +55 -68
- package/lib/common/abstract-resource-preference-provider.js.map +1 -1
- package/lib/common/abstract-resource-preference-provider.spec.js +34 -36
- package/lib/common/abstract-resource-preference-provider.spec.js.map +1 -1
- package/lib/common/cli-preferences.d.ts +28 -6
- package/lib/common/cli-preferences.d.ts.map +1 -1
- package/lib/common/cli-preferences.js +34 -11
- package/lib/common/cli-preferences.js.map +1 -1
- package/lib/common/cli-preferences.spec.js +63 -18
- package/lib/common/cli-preferences.spec.js.map +1 -1
- package/lib/common/jsonc-editor.js +13 -17
- package/lib/common/jsonc-editor.js.map +1 -1
- package/lib/common/section-preference-provider.d.ts +2 -2
- package/lib/common/section-preference-provider.d.ts.map +1 -1
- package/lib/common/section-preference-provider.js +18 -25
- package/lib/common/section-preference-provider.js.map +1 -1
- package/lib/common/user-configs-preference-provider.d.ts +3 -3
- package/lib/common/user-configs-preference-provider.d.ts.map +1 -1
- package/lib/common/user-configs-preference-provider.js +26 -36
- package/lib/common/user-configs-preference-provider.js.map +1 -1
- package/lib/common/user-preference-provider.d.ts +1 -1
- package/lib/common/user-preference-provider.d.ts.map +1 -1
- package/lib/common/user-preference-provider.js +10 -13
- package/lib/common/user-preference-provider.js.map +1 -1
- package/lib/node/backend-preference-storage.d.ts +2 -2
- package/lib/node/backend-preference-storage.d.ts.map +1 -1
- package/lib/node/backend-preference-storage.js +12 -16
- package/lib/node/backend-preference-storage.js.map +1 -1
- package/lib/node/backend-preference-storage.spec.js +10 -12
- package/lib/node/backend-preference-storage.spec.js.map +1 -1
- package/lib/node/preference-backend-module.js +23 -25
- package/lib/node/preference-backend-module.js.map +1 -1
- package/lib/node/preference-bindings.js +11 -14
- package/lib/node/preference-bindings.js.map +1 -1
- package/lib/node/preference-cli-contribution.d.ts +8 -7
- package/lib/node/preference-cli-contribution.d.ts.map +1 -1
- package/lib/node/preference-cli-contribution.js +18 -19
- package/lib/node/preference-cli-contribution.js.map +1 -1
- package/lib/node/preference-cli-contribution.spec.js +63 -38
- package/lib/node/preference-cli-contribution.spec.js.map +1 -1
- package/package.json +18 -9
- package/src/browser/folder-preference-provider.ts +1 -1
- package/src/browser/folders-preferences-provider.ts +6 -6
- package/src/browser/frontend-preference-storage.ts +2 -2
- package/src/browser/index.ts +3 -3
- package/src/browser/preference-bindings.ts +7 -7
- package/src/browser/preference-frontend-contribution.spec.ts +31 -11
- package/src/browser/preference-frontend-contribution.ts +18 -15
- package/src/browser/preference-frontend-module.ts +18 -18
- package/src/browser/preference-open-handler.ts +1 -1
- package/src/browser/preference-transaction-manager.ts +2 -2
- package/src/browser/preference-tree-model.spec.ts +6 -6
- package/src/browser/preference-tree-model.ts +5 -5
- package/src/browser/preferences-contribution.ts +2 -2
- package/src/browser/preferences-json-schema-contribution.ts +1 -1
- package/src/browser/session-preference-remote-cli-contribution.spec.ts +3 -3
- package/src/browser/session-preference-remote-cli-contribution.ts +1 -1
- package/src/browser/session-preference-status-bar-contribution.ts +2 -2
- package/src/browser/util/preference-layout.spec.ts +1 -1
- package/src/browser/util/preference-layout.ts +1 -1
- package/src/browser/util/preference-scope-command-manager.ts +1 -1
- package/src/browser/util/preference-tree-generator.ts +4 -4
- package/src/browser/util/preference-tree-label-provider.spec.ts +4 -4
- package/src/browser/util/preference-tree-label-provider.ts +2 -2
- package/src/browser/views/components/preference-array-input.ts +3 -3
- package/src/browser/views/components/preference-boolean-input.ts +3 -3
- package/src/browser/views/components/preference-file-input.ts +5 -5
- package/src/browser/views/components/preference-json-input.ts +3 -3
- package/src/browser/views/components/preference-markdown-renderer.ts +2 -2
- package/src/browser/views/components/preference-node-renderer-creator.ts +2 -2
- package/src/browser/views/components/preference-node-renderer.ts +7 -7
- package/src/browser/views/components/preference-null-input.ts +3 -3
- package/src/browser/views/components/preference-number-input.ts +3 -3
- package/src/browser/views/components/preference-select-input.ts +3 -3
- package/src/browser/views/components/preference-string-input.ts +3 -3
- package/src/browser/views/preference-editor-widget.ts +10 -10
- package/src/browser/views/preference-scope-tabbar-widget.tsx +2 -2
- package/src/browser/views/preference-searchbar-widget.tsx +1 -1
- package/src/browser/views/preference-tree-widget.tsx +3 -3
- package/src/browser/views/preference-widget-bindings.ts +19 -19
- package/src/browser/views/preference-widget.tsx +5 -5
- package/src/browser/workspace-file-preference-provider.ts +3 -3
- package/src/browser/workspace-preference-provider.ts +8 -9
- package/src/common/abstract-resource-preference-provider.spec.ts +2 -2
- package/src/common/abstract-resource-preference-provider.ts +23 -24
- package/src/common/cli-preferences.spec.ts +62 -9
- package/src/common/cli-preferences.ts +48 -9
- package/src/common/jsonc-editor.ts +3 -3
- package/src/common/section-preference-provider.ts +3 -3
- package/src/common/user-configs-preference-provider.ts +5 -5
- package/src/common/user-preference-provider.ts +1 -1
- package/src/node/backend-preference-storage.spec.ts +2 -2
- package/src/node/backend-preference-storage.ts +3 -3
- package/src/node/preference-backend-module.ts +6 -6
- package/src/node/preference-bindings.ts +3 -3
- package/src/node/preference-cli-contribution.spec.ts +46 -15
- package/src/node/preference-cli-contribution.ts +12 -9
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -14,15 +13,13 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
exports.SESSION_PREFERENCE_STATUS_BAR_ID = 'session-preference-status';
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
18
|
+
import { CommonCommands, StatusBar, StatusBarAlignment } from '@theia/core/lib/browser';
|
|
19
|
+
import { MarkdownStringImpl } from '@theia/core/lib/common/markdown-rendering/markdown-string';
|
|
20
|
+
import { PreferenceProviderProvider, PreferenceScope, PreferenceService } from '@theia/core/lib/common/preferences';
|
|
21
|
+
import { DisposableCollection, nls } from '@theia/core';
|
|
22
|
+
export const SESSION_PREFERENCE_STATUS_BAR_ID = 'session-preference-status';
|
|
26
23
|
/**
|
|
27
24
|
* Status bar item that reports preferences whose effective value comes from the
|
|
28
25
|
* in-memory session scope (typically set via `--session-preference`). Each active
|
|
@@ -31,14 +28,14 @@ exports.SESSION_PREFERENCE_STATUS_BAR_ID = 'session-preference-status';
|
|
|
31
28
|
*/
|
|
32
29
|
let SessionPreferenceStatusBarContribution = class SessionPreferenceStatusBarContribution {
|
|
33
30
|
constructor() {
|
|
34
|
-
this.toDispose = new
|
|
31
|
+
this.toDispose = new DisposableCollection();
|
|
35
32
|
}
|
|
36
33
|
init() {
|
|
37
34
|
this.toDispose.push(this.preferenceService.onPreferenceChanged(e => {
|
|
38
35
|
// React to both additions and removals of session overrides.
|
|
39
36
|
// Filtering by `isInSessionScope(key)` would miss removals because by the time
|
|
40
37
|
// the event fires, the session value is already gone.
|
|
41
|
-
if (e.scope ===
|
|
38
|
+
if (e.scope === PreferenceScope.Session) {
|
|
42
39
|
this.refresh();
|
|
43
40
|
}
|
|
44
41
|
}));
|
|
@@ -49,12 +46,12 @@ let SessionPreferenceStatusBarContribution = class SessionPreferenceStatusBarCon
|
|
|
49
46
|
refresh() {
|
|
50
47
|
const entries = this.collectActive();
|
|
51
48
|
if (entries.length === 0) {
|
|
52
|
-
this.statusBar.removeElement(
|
|
49
|
+
this.statusBar.removeElement(SESSION_PREFERENCE_STATUS_BAR_ID);
|
|
53
50
|
return;
|
|
54
51
|
}
|
|
55
|
-
const label =
|
|
56
|
-
this.statusBar.setElement(
|
|
57
|
-
alignment:
|
|
52
|
+
const label = nls.localize('theia/preferences/sessionPreferences/statusBar', 'Session Preferences ({0})', entries.length);
|
|
53
|
+
this.statusBar.setElement(SESSION_PREFERENCE_STATUS_BAR_ID, {
|
|
54
|
+
alignment: StatusBarAlignment.LEFT,
|
|
58
55
|
text: `$(warning) ${label}`,
|
|
59
56
|
tooltip: this.buildTooltip(entries),
|
|
60
57
|
// Lower priority sits further right on the left area, so this entry stays
|
|
@@ -68,7 +65,7 @@ let SessionPreferenceStatusBarContribution = class SessionPreferenceStatusBarCon
|
|
|
68
65
|
// Read directly from the session provider rather than walking schema properties,
|
|
69
66
|
// so overrides for keys that aren't registered as schema properties (e.g. a stray
|
|
70
67
|
// `--session-preference foo.bar=1`) still show up here and in the tooltip.
|
|
71
|
-
const sessionProvider = this.providerProvider(
|
|
68
|
+
const sessionProvider = this.providerProvider(PreferenceScope.Session);
|
|
72
69
|
const preferences = sessionProvider?.getPreferences() ?? {};
|
|
73
70
|
const result = Object.entries(preferences);
|
|
74
71
|
// Stable order: alphabetical by key.
|
|
@@ -78,26 +75,26 @@ let SessionPreferenceStatusBarContribution = class SessionPreferenceStatusBarCon
|
|
|
78
75
|
buildTooltip(entries) {
|
|
79
76
|
// `isTrusted` is restricted to the single command we actually emit links for, so
|
|
80
77
|
// a stray `command:` link in any preference key (extremely unlikely) can't execute.
|
|
81
|
-
const md = new
|
|
78
|
+
const md = new MarkdownStringImpl('', {
|
|
82
79
|
supportThemeIcons: true,
|
|
83
|
-
isTrusted: { enabledCommands: [
|
|
80
|
+
isTrusted: { enabledCommands: [CommonCommands.OPEN_PREFERENCES.id] }
|
|
84
81
|
});
|
|
85
|
-
md.appendMarkdown(`**${
|
|
86
|
-
md.appendMarkdown(
|
|
82
|
+
md.appendMarkdown(`**${nls.localize('theia/preferences/sessionPreferences/tooltipHeader', 'These settings are overridden for this session')}**\n\n`);
|
|
83
|
+
md.appendMarkdown(nls.localize('theia/preferences/sessionPreferences/tooltipBody', 'They were passed in via --session-preference and only live in memory. Click a setting name to jump to it in the Settings view.'));
|
|
87
84
|
md.appendMarkdown('\n\n');
|
|
88
85
|
for (const [key, value] of entries) {
|
|
89
86
|
// The setting name is a plain markdown link to the Settings view; the value
|
|
90
87
|
// follows as plain text after a colon. No code-block styling on either side.
|
|
91
88
|
md.appendMarkdown(`[${this.escapeLinkText(key)}](${this.buildOpenSettingsUri(key)}): ${this.formatDisplayValue(value)}\n\n`);
|
|
92
89
|
}
|
|
93
|
-
md.appendMarkdown(
|
|
90
|
+
md.appendMarkdown(nls.localize('theia/preferences/sessionPreferences/tooltipChangeNote', 'Editing any of these clears its session override for this run. To use the saved values from the next launch on, restart without the --session-preference arguments.'));
|
|
94
91
|
return md;
|
|
95
92
|
}
|
|
96
93
|
buildOpenSettingsUri(preferenceKey) {
|
|
97
94
|
// The Settings UI uses its search term, so a plain key string filters the view
|
|
98
95
|
// to that single preference.
|
|
99
96
|
const args = encodeURIComponent(JSON.stringify([preferenceKey]));
|
|
100
|
-
return `command:${
|
|
97
|
+
return `command:${CommonCommands.OPEN_PREFERENCES.id}?${args}`;
|
|
101
98
|
}
|
|
102
99
|
/**
|
|
103
100
|
* Produces a readable, no-code-formatting representation of a preference value:
|
|
@@ -110,8 +107,8 @@ let SessionPreferenceStatusBarContribution = class SessionPreferenceStatusBarCon
|
|
|
110
107
|
}
|
|
111
108
|
if (typeof value === 'boolean') {
|
|
112
109
|
return value
|
|
113
|
-
?
|
|
114
|
-
:
|
|
110
|
+
? nls.localizeByDefault('on')
|
|
111
|
+
: nls.localizeByDefault('off');
|
|
115
112
|
}
|
|
116
113
|
if (value === undefined) {
|
|
117
114
|
return '(unset)';
|
|
@@ -129,29 +126,23 @@ let SessionPreferenceStatusBarContribution = class SessionPreferenceStatusBarCon
|
|
|
129
126
|
}
|
|
130
127
|
onStop() {
|
|
131
128
|
this.toDispose.dispose();
|
|
132
|
-
this.statusBar.removeElement(
|
|
129
|
+
this.statusBar.removeElement(SESSION_PREFERENCE_STATUS_BAR_ID);
|
|
133
130
|
}
|
|
134
131
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
(0, inversify_1.inject)(browser_1.StatusBar),
|
|
138
|
-
tslib_1.__metadata("design:type", Object)
|
|
132
|
+
__decorate([
|
|
133
|
+
inject(StatusBar)
|
|
139
134
|
], SessionPreferenceStatusBarContribution.prototype, "statusBar", void 0);
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
tslib_1.__metadata("design:type", Object)
|
|
135
|
+
__decorate([
|
|
136
|
+
inject(PreferenceService)
|
|
143
137
|
], SessionPreferenceStatusBarContribution.prototype, "preferenceService", void 0);
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
tslib_1.__metadata("design:type", Function)
|
|
138
|
+
__decorate([
|
|
139
|
+
inject(PreferenceProviderProvider)
|
|
147
140
|
], SessionPreferenceStatusBarContribution.prototype, "providerProvider", void 0);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
tslib_1.__metadata("design:type", Function),
|
|
151
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
152
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
141
|
+
__decorate([
|
|
142
|
+
postConstruct()
|
|
153
143
|
], SessionPreferenceStatusBarContribution.prototype, "init", null);
|
|
154
|
-
|
|
155
|
-
|
|
144
|
+
SessionPreferenceStatusBarContribution = __decorate([
|
|
145
|
+
injectable()
|
|
156
146
|
], SessionPreferenceStatusBarContribution);
|
|
147
|
+
export { SessionPreferenceStatusBarContribution };
|
|
157
148
|
//# sourceMappingURL=session-preference-status-bar-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-preference-status-bar-contribution.js","sourceRoot":"","sources":["../../src/browser/session-preference-status-bar-contribution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-preference-status-bar-contribution.js","sourceRoot":"","sources":["../../src/browser/session-preference-status-bar-contribution.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAmC,SAAS,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACzH,OAAO,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACpH,OAAO,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,CAAC,MAAM,gCAAgC,GAAG,2BAA2B,CAAC;AAE5E;;;;;GAKG;AAEI,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAA5C;QAWgB,cAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAkH9D,CAAC;IA/Ga,IAAI;QACV,IAAI,CAAC,SAAS,CAAC,IAAI,CACf,IAAI,CAAC,iBAAiB,CAAC,mB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E;kEAYf;AAzBQ,sCAAsC;IADlD,UAAU,EAAE;GACA,sCAAsC,CA6HlD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,15 +13,13 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
id: exports.COMMONLY_USED_SECTION_PREFIX,
|
|
25
|
-
label: core_1.nls.localizeByDefault('Commonly Used'),
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { nls } from '@theia/core';
|
|
18
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
19
|
+
export const COMMONLY_USED_SECTION_PREFIX = 'commonly-used';
|
|
20
|
+
export const COMMONLY_USED_LAYOUT = {
|
|
21
|
+
id: COMMONLY_USED_SECTION_PREFIX,
|
|
22
|
+
label: nls.localizeByDefault('Commonly Used'),
|
|
26
23
|
settings: [
|
|
27
24
|
'files.autoSave',
|
|
28
25
|
'editor.fontSize',
|
|
@@ -37,67 +34,67 @@ exports.COMMONLY_USED_LAYOUT = {
|
|
|
37
34
|
'files.associations'
|
|
38
35
|
]
|
|
39
36
|
};
|
|
40
|
-
|
|
37
|
+
export const DEFAULT_LAYOUT = [
|
|
41
38
|
{
|
|
42
39
|
id: 'editor',
|
|
43
|
-
label:
|
|
40
|
+
label: nls.localizeByDefault('Text Editor'),
|
|
44
41
|
settings: ['editor.*'],
|
|
45
42
|
children: [
|
|
46
43
|
{
|
|
47
44
|
id: 'editor.cursor',
|
|
48
|
-
label:
|
|
45
|
+
label: nls.localizeByDefault('Cursor'),
|
|
49
46
|
settings: ['editor.cursor*']
|
|
50
47
|
},
|
|
51
48
|
{
|
|
52
49
|
id: 'editor.find',
|
|
53
|
-
label:
|
|
50
|
+
label: nls.localizeByDefault('Find'),
|
|
54
51
|
settings: ['editor.find.*']
|
|
55
52
|
},
|
|
56
53
|
{
|
|
57
54
|
id: 'editor.font',
|
|
58
|
-
label:
|
|
55
|
+
label: nls.localizeByDefault('Font'),
|
|
59
56
|
settings: ['editor.font*']
|
|
60
57
|
},
|
|
61
58
|
{
|
|
62
59
|
id: 'editor.format',
|
|
63
|
-
label:
|
|
60
|
+
label: nls.localizeByDefault('Formatting'),
|
|
64
61
|
settings: ['editor.format*']
|
|
65
62
|
},
|
|
66
63
|
{
|
|
67
64
|
id: 'editor.diffEditor',
|
|
68
|
-
label:
|
|
65
|
+
label: nls.localizeByDefault('Diff Editor'),
|
|
69
66
|
settings: ['diffEditor.*']
|
|
70
67
|
},
|
|
71
68
|
{
|
|
72
69
|
id: 'editor.multiDiffEditor',
|
|
73
|
-
label:
|
|
70
|
+
label: nls.localizeByDefault('Multi-File Diff Editor'),
|
|
74
71
|
settings: ['multiDiffEditor.*']
|
|
75
72
|
},
|
|
76
73
|
{
|
|
77
74
|
id: 'editor.minimap',
|
|
78
|
-
label:
|
|
75
|
+
label: nls.localizeByDefault('Minimap'),
|
|
79
76
|
settings: ['editor.minimap.*']
|
|
80
77
|
},
|
|
81
78
|
{
|
|
82
79
|
id: 'editor.suggestions',
|
|
83
|
-
label:
|
|
80
|
+
label: nls.localizeByDefault('Suggestions'),
|
|
84
81
|
settings: ['editor.*suggest*']
|
|
85
82
|
},
|
|
86
83
|
{
|
|
87
84
|
id: 'editor.files',
|
|
88
|
-
label:
|
|
85
|
+
label: nls.localizeByDefault('Files'),
|
|
89
86
|
settings: ['files.*']
|
|
90
87
|
}
|
|
91
88
|
]
|
|
92
89
|
},
|
|
93
90
|
{
|
|
94
91
|
id: 'workbench',
|
|
95
|
-
label:
|
|
92
|
+
label: nls.localizeByDefault('Workbench'),
|
|
96
93
|
settings: ['workbench.*', 'workspace.*'],
|
|
97
94
|
children: [
|
|
98
95
|
{
|
|
99
96
|
id: 'workbench.appearance',
|
|
100
|
-
label:
|
|
97
|
+
label: nls.localizeByDefault('Appearance'),
|
|
101
98
|
settings: [
|
|
102
99
|
'workbench.activityBar.*', 'workbench.*color*', 'workbench.fontAliasing', 'workbench.iconTheme', 'workbench.sidebar.location',
|
|
103
100
|
'workbench.*.visible', 'workbench.tips.enabled', 'workbench.tree.*', 'workbench.view.*'
|
|
@@ -105,204 +102,204 @@ exports.DEFAULT_LAYOUT = [
|
|
|
105
102
|
},
|
|
106
103
|
{
|
|
107
104
|
id: 'workbench.breadcrumbs',
|
|
108
|
-
label:
|
|
105
|
+
label: nls.localizeByDefault('Breadcrumbs'),
|
|
109
106
|
settings: ['breadcrumbs.*']
|
|
110
107
|
},
|
|
111
108
|
{
|
|
112
109
|
id: 'workbench.editor',
|
|
113
|
-
label:
|
|
110
|
+
label: nls.localizeByDefault('Editor Management'),
|
|
114
111
|
settings: ['workbench.editor.*']
|
|
115
112
|
},
|
|
116
113
|
{
|
|
117
114
|
id: 'workbench.settings',
|
|
118
|
-
label:
|
|
115
|
+
label: nls.localizeByDefault('Settings Editor'),
|
|
119
116
|
settings: ['workbench.settings.*']
|
|
120
117
|
},
|
|
121
118
|
{
|
|
122
119
|
id: 'workbench.zenmode',
|
|
123
|
-
label:
|
|
120
|
+
label: nls.localizeByDefault('Zen Mode'),
|
|
124
121
|
settings: ['zenmode.*']
|
|
125
122
|
},
|
|
126
123
|
{
|
|
127
124
|
id: 'workbench.screencastmode',
|
|
128
|
-
label:
|
|
125
|
+
label: nls.localizeByDefault('Screencast Mode'),
|
|
129
126
|
settings: ['screencastMode.*']
|
|
130
127
|
}
|
|
131
128
|
]
|
|
132
129
|
},
|
|
133
130
|
{
|
|
134
131
|
id: 'window',
|
|
135
|
-
label:
|
|
132
|
+
label: nls.localizeByDefault('Window'),
|
|
136
133
|
settings: ['window.*'],
|
|
137
134
|
children: [
|
|
138
135
|
{
|
|
139
136
|
id: 'window.newWindow',
|
|
140
|
-
label:
|
|
137
|
+
label: nls.localizeByDefault('New Window'),
|
|
141
138
|
settings: ['window.*newwindow*']
|
|
142
139
|
}
|
|
143
140
|
]
|
|
144
141
|
},
|
|
145
142
|
{
|
|
146
143
|
id: 'features',
|
|
147
|
-
label:
|
|
144
|
+
label: nls.localizeByDefault('Features'),
|
|
148
145
|
children: [
|
|
149
146
|
{
|
|
150
147
|
id: 'features.accessibilitySignals',
|
|
151
|
-
label:
|
|
148
|
+
label: nls.localizeByDefault('Accessibility Signals'),
|
|
152
149
|
settings: ['accessibility.signal*']
|
|
153
150
|
},
|
|
154
151
|
{
|
|
155
152
|
id: 'features.accessibility',
|
|
156
|
-
label:
|
|
153
|
+
label: nls.localizeByDefault('Accessibility'),
|
|
157
154
|
settings: ['accessibility.*']
|
|
158
155
|
},
|
|
159
156
|
{
|
|
160
157
|
id: 'features.explorer',
|
|
161
|
-
label:
|
|
158
|
+
label: nls.localizeByDefault('Explorer'),
|
|
162
159
|
settings: ['explorer.*', 'outline.*']
|
|
163
160
|
},
|
|
164
161
|
{
|
|
165
162
|
id: 'features.search',
|
|
166
|
-
label:
|
|
163
|
+
label: nls.localizeByDefault('Search'),
|
|
167
164
|
settings: ['search.*']
|
|
168
165
|
},
|
|
169
166
|
{
|
|
170
167
|
id: 'features.debug',
|
|
171
|
-
label:
|
|
168
|
+
label: nls.localizeByDefault('Debug'),
|
|
172
169
|
settings: ['debug.*', 'launch']
|
|
173
170
|
},
|
|
174
171
|
{
|
|
175
172
|
id: 'features.testing',
|
|
176
|
-
label:
|
|
173
|
+
label: nls.localizeByDefault('Testing'),
|
|
177
174
|
settings: ['testing.*']
|
|
178
175
|
},
|
|
179
176
|
{
|
|
180
177
|
id: 'features.scm',
|
|
181
|
-
label:
|
|
178
|
+
label: nls.localizeByDefault('Source Control'),
|
|
182
179
|
settings: ['scm.*']
|
|
183
180
|
},
|
|
184
181
|
{
|
|
185
182
|
id: 'features.extensions',
|
|
186
|
-
label:
|
|
183
|
+
label: nls.localizeByDefault('Extensions'),
|
|
187
184
|
settings: ['extensions.*']
|
|
188
185
|
},
|
|
189
186
|
{
|
|
190
187
|
id: 'features.terminal',
|
|
191
|
-
label:
|
|
188
|
+
label: nls.localizeByDefault('Terminal'),
|
|
192
189
|
settings: ['terminal.*']
|
|
193
190
|
},
|
|
194
191
|
{
|
|
195
192
|
id: 'features.task',
|
|
196
|
-
label:
|
|
193
|
+
label: nls.localizeByDefault('Task'),
|
|
197
194
|
settings: ['task.*']
|
|
198
195
|
},
|
|
199
196
|
{
|
|
200
197
|
id: 'features.problems',
|
|
201
|
-
label:
|
|
198
|
+
label: nls.localizeByDefault('Problems'),
|
|
202
199
|
settings: ['problems.*']
|
|
203
200
|
},
|
|
204
201
|
{
|
|
205
202
|
id: 'features.output',
|
|
206
|
-
label:
|
|
203
|
+
label: nls.localizeByDefault('Output'),
|
|
207
204
|
settings: ['output.*']
|
|
208
205
|
},
|
|
209
206
|
{
|
|
210
207
|
id: 'features.comments',
|
|
211
|
-
label:
|
|
208
|
+
label: nls.localizeByDefault('Comments'),
|
|
212
209
|
settings: ['comments.*']
|
|
213
210
|
},
|
|
214
211
|
{
|
|
215
212
|
id: 'features.remote',
|
|
216
|
-
label:
|
|
213
|
+
label: nls.localizeByDefault('Remote'),
|
|
217
214
|
settings: ['remote.*']
|
|
218
215
|
},
|
|
219
216
|
{
|
|
220
217
|
id: 'features.timeline',
|
|
221
|
-
label:
|
|
218
|
+
label: nls.localizeByDefault('Timeline'),
|
|
222
219
|
settings: ['timeline.*']
|
|
223
220
|
},
|
|
224
221
|
{
|
|
225
222
|
id: 'features.toolbar',
|
|
226
|
-
label:
|
|
223
|
+
label: nls.localize('theia/preferences/toolbar', 'Toolbar'),
|
|
227
224
|
settings: ['toolbar.*']
|
|
228
225
|
},
|
|
229
226
|
{
|
|
230
227
|
id: 'features.notebook',
|
|
231
|
-
label:
|
|
228
|
+
label: nls.localizeByDefault('Notebook'),
|
|
232
229
|
settings: ['notebook.*', 'interactiveWindow.*']
|
|
233
230
|
},
|
|
234
231
|
{
|
|
235
232
|
id: 'features.mergeEditor',
|
|
236
|
-
label:
|
|
233
|
+
label: nls.localizeByDefault('Merge Editor'),
|
|
237
234
|
settings: ['mergeEditor.*']
|
|
238
235
|
},
|
|
239
236
|
{
|
|
240
237
|
id: 'features.chat',
|
|
241
|
-
label:
|
|
238
|
+
label: nls.localizeByDefault('Chat'),
|
|
242
239
|
settings: ['chat.*', 'inlineChat.*']
|
|
243
240
|
}
|
|
244
241
|
]
|
|
245
242
|
},
|
|
246
243
|
{
|
|
247
244
|
id: 'application',
|
|
248
|
-
label:
|
|
245
|
+
label: nls.localizeByDefault('Application'),
|
|
249
246
|
children: [
|
|
250
247
|
{
|
|
251
248
|
id: 'application.http',
|
|
252
|
-
label:
|
|
249
|
+
label: nls.localizeByDefault('HTTP'),
|
|
253
250
|
settings: ['http.*']
|
|
254
251
|
},
|
|
255
252
|
{
|
|
256
253
|
id: 'application.keyboard',
|
|
257
|
-
label:
|
|
254
|
+
label: nls.localizeByDefault('Keyboard'),
|
|
258
255
|
settings: ['keyboard.*']
|
|
259
256
|
},
|
|
260
257
|
{
|
|
261
258
|
id: 'application.update',
|
|
262
|
-
label:
|
|
259
|
+
label: nls.localizeByDefault('Update'),
|
|
263
260
|
settings: ['update.*']
|
|
264
261
|
},
|
|
265
262
|
{
|
|
266
263
|
id: 'application.telemetry',
|
|
267
|
-
label:
|
|
264
|
+
label: nls.localizeByDefault('Telemetry'),
|
|
268
265
|
settings: ['telemetry.*']
|
|
269
266
|
},
|
|
270
267
|
{
|
|
271
268
|
id: 'application.settingsSync',
|
|
272
|
-
label:
|
|
269
|
+
label: nls.localizeByDefault('Settings Sync'),
|
|
273
270
|
settings: ['settingsSync.*']
|
|
274
271
|
},
|
|
275
272
|
{
|
|
276
273
|
id: 'application.experimental',
|
|
277
|
-
label:
|
|
274
|
+
label: nls.localizeByDefault('Experimental'),
|
|
278
275
|
settings: ['application.experimental.*']
|
|
279
276
|
},
|
|
280
277
|
{
|
|
281
278
|
id: 'application.other',
|
|
282
|
-
label:
|
|
279
|
+
label: nls.localizeByDefault('Other'),
|
|
283
280
|
settings: ['application.*']
|
|
284
281
|
}
|
|
285
282
|
]
|
|
286
283
|
},
|
|
287
284
|
{
|
|
288
285
|
id: 'security',
|
|
289
|
-
label:
|
|
286
|
+
label: nls.localizeByDefault('Security'),
|
|
290
287
|
settings: ['security.*'],
|
|
291
288
|
children: [
|
|
292
289
|
{
|
|
293
290
|
id: 'security.workspace',
|
|
294
|
-
label:
|
|
291
|
+
label: nls.localizeByDefault('Workspace'),
|
|
295
292
|
settings: ['security.workspace.*']
|
|
296
293
|
}
|
|
297
294
|
]
|
|
298
295
|
},
|
|
299
296
|
{
|
|
300
297
|
id: 'ai-features',
|
|
301
|
-
label:
|
|
298
|
+
label: nls.localizeByDefault('AI Features'),
|
|
302
299
|
children: [
|
|
303
300
|
{
|
|
304
301
|
id: 'ai-features.aiEnablement',
|
|
305
|
-
label:
|
|
302
|
+
label: nls.localize('theia/preferences/ai-features/ai-enable', 'AI Enablement'),
|
|
306
303
|
settings: ['ai-features.AiEnable.*']
|
|
307
304
|
},
|
|
308
305
|
{
|
|
@@ -312,7 +309,7 @@ exports.DEFAULT_LAYOUT = [
|
|
|
312
309
|
},
|
|
313
310
|
{
|
|
314
311
|
id: 'ai-features.chat',
|
|
315
|
-
label:
|
|
312
|
+
label: nls.localizeByDefault('Chat'),
|
|
316
313
|
settings: ['ai-features.chat.*']
|
|
317
314
|
},
|
|
318
315
|
{
|
|
@@ -327,7 +324,7 @@ exports.DEFAULT_LAYOUT = [
|
|
|
327
324
|
},
|
|
328
325
|
{
|
|
329
326
|
id: 'ai-features.codeCompletion',
|
|
330
|
-
label:
|
|
327
|
+
label: nls.localize('theia/preferences/ai-features/code-completion', 'Code Completion'),
|
|
331
328
|
settings: ['ai-features.codeCompletion.*']
|
|
332
329
|
},
|
|
333
330
|
{
|
|
@@ -337,12 +334,12 @@ exports.DEFAULT_LAYOUT = [
|
|
|
337
334
|
},
|
|
338
335
|
{
|
|
339
336
|
id: 'ai-features.mcp',
|
|
340
|
-
label:
|
|
337
|
+
label: nls.localizeByDefault('MCP'),
|
|
341
338
|
settings: ['ai-features.mcp.*']
|
|
342
339
|
},
|
|
343
340
|
{
|
|
344
341
|
id: 'ai-features.modelSettings',
|
|
345
|
-
label:
|
|
342
|
+
label: nls.localize('theia/preferences/ai-features/model-settings', 'Model Settings'),
|
|
346
343
|
settings: ['ai-features.modelSettings.*', 'ai-features.languageModelAliases']
|
|
347
344
|
},
|
|
348
345
|
{
|
|
@@ -357,17 +354,17 @@ exports.DEFAULT_LAYOUT = [
|
|
|
357
354
|
},
|
|
358
355
|
{
|
|
359
356
|
id: 'ai-features.openAiCustom',
|
|
360
|
-
label:
|
|
357
|
+
label: nls.localize('theia/preferences/ai-features/open-ai-custom', '{0} Custom Models', 'Open AI'),
|
|
361
358
|
settings: ['ai-features.openAiCustom.*']
|
|
362
359
|
},
|
|
363
360
|
{
|
|
364
361
|
id: 'ai-features.openAiOfficial',
|
|
365
|
-
label:
|
|
362
|
+
label: nls.localize('theia/preferences/ai-features/open-ai-official', '{0} Official Models', 'Open AI'),
|
|
366
363
|
settings: ['ai-features.openAiOfficial.*']
|
|
367
364
|
},
|
|
368
365
|
{
|
|
369
366
|
id: 'ai-features.promptTemplates',
|
|
370
|
-
label:
|
|
367
|
+
label: nls.localize('theia/preferences/ai-features/promptTemplates', 'Prompt Templates'),
|
|
371
368
|
settings: ['ai-features.promptTemplates.*']
|
|
372
369
|
},
|
|
373
370
|
{
|
|
@@ -377,18 +374,18 @@ exports.DEFAULT_LAYOUT = [
|
|
|
377
374
|
},
|
|
378
375
|
{
|
|
379
376
|
id: 'ai-features.workspaceFunctions',
|
|
380
|
-
label:
|
|
377
|
+
label: nls.localize('theia/preferences/ai-features/workspace-functions', 'Workspace Functions'),
|
|
381
378
|
settings: ['ai-features.workspaceFunctions.*']
|
|
382
379
|
}
|
|
383
380
|
]
|
|
384
381
|
},
|
|
385
382
|
{
|
|
386
383
|
id: 'extensions',
|
|
387
|
-
label:
|
|
384
|
+
label: nls.localizeByDefault('Extensions'),
|
|
388
385
|
children: [
|
|
389
386
|
{
|
|
390
387
|
id: 'extensions.hosted-plugin',
|
|
391
|
-
label:
|
|
388
|
+
label: nls.localize('theia/preferences/hostedPlugin', 'Hosted Plugin'),
|
|
392
389
|
settings: ['hosted-plugin.*']
|
|
393
390
|
}
|
|
394
391
|
]
|
|
@@ -396,10 +393,10 @@ exports.DEFAULT_LAYOUT = [
|
|
|
396
393
|
];
|
|
397
394
|
let PreferenceLayoutProvider = class PreferenceLayoutProvider {
|
|
398
395
|
getLayout() {
|
|
399
|
-
return
|
|
396
|
+
return DEFAULT_LAYOUT;
|
|
400
397
|
}
|
|
401
398
|
getCommonlyUsedLayout() {
|
|
402
|
-
return
|
|
399
|
+
return COMMONLY_USED_LAYOUT;
|
|
403
400
|
}
|
|
404
401
|
hasCategory(id) {
|
|
405
402
|
return [...this.getLayout(), this.getCommonlyUsedLayout()].some(e => e.id === id);
|
|
@@ -444,8 +441,8 @@ let PreferenceLayoutProvider = class PreferenceLayoutProvider {
|
|
|
444
441
|
return new RegExp(`^${setting.replace(/\./g, '\\.').replace(/\*/g, '.*')}$`);
|
|
445
442
|
}
|
|
446
443
|
};
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
(0, inversify_1.injectable)()
|
|
444
|
+
PreferenceLayoutProvider = __decorate([
|
|
445
|
+
injectable()
|
|
450
446
|
], PreferenceLayoutProvider);
|
|
447
|
+
export { PreferenceLayoutProvider };
|
|
451
448
|
//# sourceMappingURL=preference-layout.js.map
|