@codingame/monaco-vscode-api 11.0.1 → 11.1.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/api.js +1 -1
- package/extensions.d.ts +1 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -364
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +5 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
|
@@ -15,7 +15,7 @@ import { PANEL_BORDER, EDITOR_DRAG_AND_DROP_BACKGROUND, TAB_ACTIVE_BORDER } from
|
|
|
15
15
|
|
|
16
16
|
const ansiColorIdentifiers = [];
|
|
17
17
|
const TERMINAL_BACKGROUND_COLOR = registerColor('terminal.background', null, ( localize(
|
|
18
|
-
|
|
18
|
+
9378,
|
|
19
19
|
'The background color of the terminal, this allows coloring the terminal differently to the panel.'
|
|
20
20
|
)));
|
|
21
21
|
const TERMINAL_FOREGROUND_COLOR = registerColor('terminal.foreground', {
|
|
@@ -23,20 +23,20 @@ const TERMINAL_FOREGROUND_COLOR = registerColor('terminal.foreground', {
|
|
|
23
23
|
dark: '#CCCCCC',
|
|
24
24
|
hcDark: '#FFFFFF',
|
|
25
25
|
hcLight: '#292929'
|
|
26
|
-
}, ( localize(
|
|
27
|
-
const TERMINAL_CURSOR_FOREGROUND_COLOR = registerColor('terminalCursor.foreground', null, ( localize(
|
|
26
|
+
}, ( localize(9379, 'The foreground color of the terminal.')));
|
|
27
|
+
const TERMINAL_CURSOR_FOREGROUND_COLOR = registerColor('terminalCursor.foreground', null, ( localize(9380, 'The foreground color of the terminal cursor.')));
|
|
28
28
|
const TERMINAL_CURSOR_BACKGROUND_COLOR = registerColor('terminalCursor.background', null, ( localize(
|
|
29
|
-
|
|
29
|
+
9381,
|
|
30
30
|
'The background color of the terminal cursor. Allows customizing the color of a character overlapped by a block cursor.'
|
|
31
31
|
)));
|
|
32
|
-
const TERMINAL_SELECTION_BACKGROUND_COLOR = registerColor('terminal.selectionBackground', editorSelectionBackground, ( localize(
|
|
32
|
+
const TERMINAL_SELECTION_BACKGROUND_COLOR = registerColor('terminal.selectionBackground', editorSelectionBackground, ( localize(9382, 'The selection background color of the terminal.')));
|
|
33
33
|
const TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR = registerColor('terminal.inactiveSelectionBackground', {
|
|
34
34
|
light: ( (transparent(TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5))),
|
|
35
35
|
dark: ( (transparent(TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5))),
|
|
36
36
|
hcDark: ( (transparent(TERMINAL_SELECTION_BACKGROUND_COLOR, 0.7))),
|
|
37
37
|
hcLight: ( (transparent(TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5)))
|
|
38
38
|
}, ( localize(
|
|
39
|
-
|
|
39
|
+
9383,
|
|
40
40
|
'The selection background color of the terminal when it does not have focus.'
|
|
41
41
|
)));
|
|
42
42
|
const TERMINAL_SELECTION_FOREGROUND_COLOR = registerColor('terminal.selectionForeground', {
|
|
@@ -45,7 +45,7 @@ const TERMINAL_SELECTION_FOREGROUND_COLOR = registerColor('terminal.selectionFor
|
|
|
45
45
|
hcDark: '#000000',
|
|
46
46
|
hcLight: '#ffffff'
|
|
47
47
|
}, ( localize(
|
|
48
|
-
|
|
48
|
+
9384,
|
|
49
49
|
'The selection foreground color of the terminal. When this is null the selection foreground will be retained and have the minimum contrast ratio feature applied.'
|
|
50
50
|
)));
|
|
51
51
|
const TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR = registerColor('terminalCommandDecoration.defaultBackground', {
|
|
@@ -53,14 +53,14 @@ const TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR = registerColor('term
|
|
|
53
53
|
dark: '#ffffff40',
|
|
54
54
|
hcDark: '#ffffff80',
|
|
55
55
|
hcLight: '#00000040',
|
|
56
|
-
}, ( localize(
|
|
56
|
+
}, ( localize(9385, 'The default terminal command decoration background color.')));
|
|
57
57
|
const TERMINAL_COMMAND_DECORATION_SUCCESS_BACKGROUND_COLOR = registerColor('terminalCommandDecoration.successBackground', {
|
|
58
58
|
dark: '#1B81A8',
|
|
59
59
|
light: '#2090D3',
|
|
60
60
|
hcDark: '#1B81A8',
|
|
61
61
|
hcLight: '#007100'
|
|
62
62
|
}, ( localize(
|
|
63
|
-
|
|
63
|
+
9386,
|
|
64
64
|
'The terminal command decoration background color for successful commands.'
|
|
65
65
|
)));
|
|
66
66
|
const TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR = registerColor('terminalCommandDecoration.errorBackground', {
|
|
@@ -69,38 +69,38 @@ const TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR = registerColor('termin
|
|
|
69
69
|
hcDark: '#F14C4C',
|
|
70
70
|
hcLight: '#B5200D'
|
|
71
71
|
}, ( localize(
|
|
72
|
-
|
|
72
|
+
9387,
|
|
73
73
|
'The terminal command decoration background color for error commands.'
|
|
74
74
|
)));
|
|
75
|
-
const TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR = registerColor('terminalOverviewRuler.cursorForeground', '#A0A0A0CC', ( localize(
|
|
75
|
+
const TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR = registerColor('terminalOverviewRuler.cursorForeground', '#A0A0A0CC', ( localize(9388, 'The overview ruler cursor color.')));
|
|
76
76
|
registerColor('terminal.border', PANEL_BORDER, ( localize(
|
|
77
|
-
|
|
77
|
+
9389,
|
|
78
78
|
'The color of the border that separates split panes within the terminal. This defaults to panel.border.'
|
|
79
79
|
)));
|
|
80
|
-
const TERMINAL_OVERVIEW_RULER_BORDER_COLOR = registerColor('terminalOverviewRuler.border', editorOverviewRulerBorder, ( localize(
|
|
80
|
+
const TERMINAL_OVERVIEW_RULER_BORDER_COLOR = registerColor('terminalOverviewRuler.border', editorOverviewRulerBorder, ( localize(9390, 'The overview ruler left-side border color.')));
|
|
81
81
|
const TERMINAL_FIND_MATCH_BACKGROUND_COLOR = registerColor('terminal.findMatchBackground', {
|
|
82
82
|
dark: editorFindMatch,
|
|
83
83
|
light: editorFindMatch,
|
|
84
84
|
hcDark: null,
|
|
85
85
|
hcLight: '#0F4A85'
|
|
86
86
|
}, ( localize(
|
|
87
|
-
|
|
87
|
+
9391,
|
|
88
88
|
'Color of the current search match in the terminal. The color must not be opaque so as not to hide underlying terminal content.'
|
|
89
89
|
)), true);
|
|
90
|
-
registerColor('terminal.hoverHighlightBackground', ( (transparent(editorHoverHighlight, 0.5))), ( localize(
|
|
90
|
+
registerColor('terminal.hoverHighlightBackground', ( (transparent(editorHoverHighlight, 0.5))), ( localize(9392, 'Border color of the other search matches in the terminal.')));
|
|
91
91
|
const TERMINAL_FIND_MATCH_BORDER_COLOR = registerColor('terminal.findMatchBorder', {
|
|
92
92
|
dark: null,
|
|
93
93
|
light: null,
|
|
94
94
|
hcDark: '#f38518',
|
|
95
95
|
hcLight: '#0F4A85'
|
|
96
|
-
}, ( localize(
|
|
96
|
+
}, ( localize(9393, 'Border color of the current search match in the terminal.')));
|
|
97
97
|
const TERMINAL_FIND_MATCH_HIGHLIGHT_BACKGROUND_COLOR = registerColor('terminal.findMatchHighlightBackground', {
|
|
98
98
|
dark: editorFindMatchHighlight,
|
|
99
99
|
light: editorFindMatchHighlight,
|
|
100
100
|
hcDark: null,
|
|
101
101
|
hcLight: null
|
|
102
102
|
}, ( localize(
|
|
103
|
-
|
|
103
|
+
9394,
|
|
104
104
|
'Color of the other search matches in the terminal. The color must not be opaque so as not to hide underlying terminal content.'
|
|
105
105
|
)), true);
|
|
106
106
|
const TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR = registerColor('terminal.findMatchHighlightBorder', {
|
|
@@ -108,19 +108,19 @@ const TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR = registerColor('terminal.findM
|
|
|
108
108
|
light: null,
|
|
109
109
|
hcDark: '#f38518',
|
|
110
110
|
hcLight: '#0F4A85'
|
|
111
|
-
}, ( localize(
|
|
111
|
+
}, ( localize(9392, 'Border color of the other search matches in the terminal.')));
|
|
112
112
|
const TERMINAL_OVERVIEW_RULER_FIND_MATCH_FOREGROUND_COLOR = registerColor('terminalOverviewRuler.findMatchForeground', {
|
|
113
113
|
dark: overviewRulerFindMatchForeground,
|
|
114
114
|
light: overviewRulerFindMatchForeground,
|
|
115
115
|
hcDark: '#f38518',
|
|
116
116
|
hcLight: '#0F4A85'
|
|
117
|
-
}, ( localize(
|
|
117
|
+
}, ( localize(9395, 'Overview ruler marker color for find matches in the terminal.')));
|
|
118
118
|
registerColor('terminal.dropBackground', EDITOR_DRAG_AND_DROP_BACKGROUND, ( localize(
|
|
119
|
-
|
|
119
|
+
9396,
|
|
120
120
|
"Background color when dragging on top of terminals. The color should have transparency so that the terminal contents can still shine through."
|
|
121
121
|
)), true);
|
|
122
122
|
registerColor('terminal.tab.activeBorder', TAB_ACTIVE_BORDER, ( localize(
|
|
123
|
-
|
|
123
|
+
9397,
|
|
124
124
|
'Border on the side of the terminal tab in the panel. This defaults to tab.activeBorder.'
|
|
125
125
|
)));
|
|
126
126
|
registerColor('terminal.initialHintForeground', {
|
|
@@ -128,7 +128,7 @@ registerColor('terminal.initialHintForeground', {
|
|
|
128
128
|
light: '#0007',
|
|
129
129
|
hcDark: null,
|
|
130
130
|
hcLight: null
|
|
131
|
-
}, ( localize(
|
|
131
|
+
}, ( localize(9398, 'Foreground color of the terminal initial hint.')));
|
|
132
132
|
const ansiColorMap = {
|
|
133
133
|
'terminal.ansiBlack': {
|
|
134
134
|
index: 0,
|
|
@@ -279,7 +279,7 @@ function registerColors() {
|
|
|
279
279
|
for (const id in ansiColorMap) {
|
|
280
280
|
const entry = ansiColorMap[id];
|
|
281
281
|
const colorName = id.substring(13);
|
|
282
|
-
ansiColorIdentifiers[entry.index] = registerColor(id, entry.defaults, ( localize(
|
|
282
|
+
ansiColorIdentifiers[entry.index] = registerColor(id, entry.defaults, ( localize(9399, '\'{0}\' ANSI color in the terminal.', colorName)));
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
@@ -11,7 +11,7 @@ const TRUSTED_DOMAINS_CONTENT_STORAGE_KEY = 'http.linkProtectionTrustedDomainsCo
|
|
|
11
11
|
const manageTrustedDomainSettingsCommand = {
|
|
12
12
|
id: 'workbench.action.manageTrustedDomain',
|
|
13
13
|
description: {
|
|
14
|
-
description: ( localize2(
|
|
14
|
+
description: ( localize2(4665, 'Manage Trusted Domains')),
|
|
15
15
|
args: []
|
|
16
16
|
},
|
|
17
17
|
handler: async (accessor) => {
|
|
@@ -28,7 +28,7 @@ async function configureOpenerTrustedDomainsHandler(trustedDomains, domainToConf
|
|
|
28
28
|
const options = [];
|
|
29
29
|
options.push({
|
|
30
30
|
type: 'item',
|
|
31
|
-
label: ( localize(
|
|
31
|
+
label: ( localize(4666, 'Trust {0}', domainToConfigure)),
|
|
32
32
|
id: 'trust',
|
|
33
33
|
toTrust: domainToConfigure,
|
|
34
34
|
picked: true
|
|
@@ -40,7 +40,7 @@ async function configureOpenerTrustedDomainsHandler(trustedDomains, domainToConf
|
|
|
40
40
|
const base = parsedDomainToConfigure.authority.split(':')[0];
|
|
41
41
|
options.push({
|
|
42
42
|
type: 'item',
|
|
43
|
-
label: ( localize(
|
|
43
|
+
label: ( localize(4667, 'Trust {0} on all ports', base)),
|
|
44
44
|
toTrust: base + ':*',
|
|
45
45
|
id: 'trust'
|
|
46
46
|
});
|
|
@@ -49,20 +49,20 @@ async function configureOpenerTrustedDomainsHandler(trustedDomains, domainToConf
|
|
|
49
49
|
else {
|
|
50
50
|
options.push({
|
|
51
51
|
type: 'item',
|
|
52
|
-
label: ( localize(
|
|
52
|
+
label: ( localize(4668, 'Trust {0} and all its subdomains', domainEnd)),
|
|
53
53
|
toTrust: topLevelDomain,
|
|
54
54
|
id: 'trust'
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
options.push({
|
|
58
58
|
type: 'item',
|
|
59
|
-
label: ( localize(
|
|
59
|
+
label: ( localize(4669, 'Trust all domains (disables link protection)')),
|
|
60
60
|
toTrust: '*',
|
|
61
61
|
id: 'trust'
|
|
62
62
|
});
|
|
63
63
|
options.push({
|
|
64
64
|
type: 'item',
|
|
65
|
-
label: ( localize(
|
|
65
|
+
label: ( localize(4670, 'Manage Trusted Domains')),
|
|
66
66
|
id: 'manage'
|
|
67
67
|
});
|
|
68
68
|
const pickedResult = await quickInputService.pick(options, { activeItem: options[0] });
|
|
@@ -38,7 +38,7 @@ if (CutAction) {
|
|
|
38
38
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
|
39
39
|
command: {
|
|
40
40
|
id: CutAction.id,
|
|
41
|
-
title: ( localize(
|
|
41
|
+
title: ( localize(4454, "Cut")),
|
|
42
42
|
},
|
|
43
43
|
group: '5_cutcopypaste',
|
|
44
44
|
order: 1,
|
|
@@ -49,7 +49,7 @@ if (CopyAction) {
|
|
|
49
49
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
|
50
50
|
command: {
|
|
51
51
|
id: CopyAction.id,
|
|
52
|
-
title: ( localize(
|
|
52
|
+
title: ( localize(4455, "Copy")),
|
|
53
53
|
},
|
|
54
54
|
group: '5_cutcopypaste',
|
|
55
55
|
order: 2,
|
|
@@ -60,7 +60,7 @@ if (PasteAction) {
|
|
|
60
60
|
MenuRegistry.appendMenuItem(MenuId.WebviewContext, {
|
|
61
61
|
command: {
|
|
62
62
|
id: PasteAction.id,
|
|
63
|
-
title: ( localize(
|
|
63
|
+
title: ( localize(4456, "Paste")),
|
|
64
64
|
},
|
|
65
65
|
group: '5_cutcopypaste',
|
|
66
66
|
order: 3,
|
|
@@ -21,7 +21,7 @@ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layout
|
|
|
21
21
|
var WebviewEditor_1;
|
|
22
22
|
const CONTEXT_ACTIVE_WEBVIEW_PANEL_ID = ( (new RawContextKey('activeWebviewPanelId', '', {
|
|
23
23
|
type: 'string',
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(9701, "The viewType of the currently active webview panel.")),
|
|
25
25
|
})));
|
|
26
26
|
let WebviewEditor = class WebviewEditor extends EditorPane {
|
|
27
27
|
static { WebviewEditor_1 = this; }
|
|
@@ -2,8 +2,8 @@ import { localize } from '../../../../nls.js';
|
|
|
2
2
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
3
3
|
|
|
4
4
|
const WorkspaceTrustContext = {
|
|
5
|
-
IsEnabled: ( (new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(
|
|
6
|
-
IsTrusted: ( (new RawContextKey('isWorkspaceTrusted', false, ( localize(
|
|
5
|
+
IsEnabled: ( (new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(6371, "Whether the workspace trust feature is enabled."))))),
|
|
6
|
+
IsTrusted: ( (new RawContextKey('isWorkspaceTrusted', false, ( localize(6372, "Whether the current workspace has been trusted by the user.")))))
|
|
7
7
|
};
|
|
8
8
|
const MANAGE_TRUST_COMMAND_ID = 'workbench.trust.manage';
|
|
9
9
|
|
|
@@ -91,7 +91,7 @@ let AuxiliaryWindow = class AuxiliaryWindow extends BaseWindow {
|
|
|
91
91
|
preventUnload(e) {
|
|
92
92
|
e.preventDefault();
|
|
93
93
|
e.returnValue = ( localize(
|
|
94
|
-
|
|
94
|
+
4229,
|
|
95
95
|
"Changes that you made may not be saved. Please check press 'Cancel' and try again."
|
|
96
96
|
));
|
|
97
97
|
}
|
|
@@ -150,7 +150,7 @@ let BrowserAuxiliaryWindowService = class BrowserAuxiliaryWindowService extends
|
|
|
150
150
|
mark('code/auxiliaryWindow/willOpen');
|
|
151
151
|
const targetWindow = await this.openWindow(options);
|
|
152
152
|
if (!targetWindow) {
|
|
153
|
-
throw ( (new Error(localize(
|
|
153
|
+
throw ( (new Error(localize(4230, "Unable to open a new window."))));
|
|
154
154
|
}
|
|
155
155
|
const resolvedWindowId = await this.resolveWindowId(targetWindow);
|
|
156
156
|
ensureCodeWindow(targetWindow, resolvedWindowId);
|
|
@@ -224,16 +224,16 @@ let BrowserAuxiliaryWindowService = class BrowserAuxiliaryWindowService extends
|
|
|
224
224
|
return (await this.dialogService.prompt({
|
|
225
225
|
type: Severity$1.Warning,
|
|
226
226
|
message: ( localize(
|
|
227
|
-
|
|
227
|
+
4231,
|
|
228
228
|
"The browser interrupted the opening of a new window. Press 'Retry' to try again."
|
|
229
229
|
)),
|
|
230
230
|
detail: ( localize(
|
|
231
|
-
|
|
231
|
+
4232,
|
|
232
232
|
"To avoid this problem in the future, please ensure to allow popups for this website."
|
|
233
233
|
)),
|
|
234
234
|
buttons: [
|
|
235
235
|
{
|
|
236
|
-
label: ( localize(
|
|
236
|
+
label: ( localize(4233, "&&Retry")),
|
|
237
237
|
run: () => this.openWindow(options)
|
|
238
238
|
}
|
|
239
239
|
],
|
|
@@ -136,7 +136,7 @@ class AbstractVariableResolverService {
|
|
|
136
136
|
}
|
|
137
137
|
throw ( new VariableError(
|
|
138
138
|
variableKind,
|
|
139
|
-
localize(
|
|
139
|
+
localize(3870, "Variable {0} can not be resolved. Please open an editor.", match)
|
|
140
140
|
));
|
|
141
141
|
};
|
|
142
142
|
const getFolderPathForFile = (variableKind) => {
|
|
@@ -148,7 +148,7 @@ class AbstractVariableResolverService {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
throw ( new VariableError(variableKind, localize(
|
|
151
|
-
|
|
151
|
+
3871,
|
|
152
152
|
"Variable {0}: can not find workspace folder of '{1}'.",
|
|
153
153
|
match,
|
|
154
154
|
basename(filePath)
|
|
@@ -161,7 +161,7 @@ class AbstractVariableResolverService {
|
|
|
161
161
|
return folder;
|
|
162
162
|
}
|
|
163
163
|
throw ( new VariableError(variableKind, localize(
|
|
164
|
-
|
|
164
|
+
3872,
|
|
165
165
|
"Variable {0} can not be resolved. No such folder '{1}'.",
|
|
166
166
|
match,
|
|
167
167
|
argument
|
|
@@ -172,14 +172,14 @@ class AbstractVariableResolverService {
|
|
|
172
172
|
}
|
|
173
173
|
if (this._context.getWorkspaceFolderCount() > 1) {
|
|
174
174
|
throw ( new VariableError(variableKind, localize(
|
|
175
|
-
|
|
175
|
+
3873,
|
|
176
176
|
"Variable {0} can not be resolved in a multi folder workspace. Scope this variable using ':' and a workspace folder name.",
|
|
177
177
|
match
|
|
178
178
|
)));
|
|
179
179
|
}
|
|
180
180
|
throw ( new VariableError(
|
|
181
181
|
variableKind,
|
|
182
|
-
localize(
|
|
182
|
+
localize(3874, "Variable {0} can not be resolved. Please open a folder.", match)
|
|
183
183
|
));
|
|
184
184
|
};
|
|
185
185
|
switch (variable) {
|
|
@@ -194,7 +194,7 @@ class AbstractVariableResolverService {
|
|
|
194
194
|
return '';
|
|
195
195
|
}
|
|
196
196
|
throw ( new VariableError(VariableKind.Env, localize(
|
|
197
|
-
|
|
197
|
+
3875,
|
|
198
198
|
"Variable {0} can not be resolved because no environment variable name is given.",
|
|
199
199
|
match
|
|
200
200
|
)));
|
|
@@ -203,7 +203,7 @@ class AbstractVariableResolverService {
|
|
|
203
203
|
const config = this._context.getConfigurationValue(folderUri, argument);
|
|
204
204
|
if (isUndefinedOrNull(config)) {
|
|
205
205
|
throw ( new VariableError(VariableKind.Config, localize(
|
|
206
|
-
|
|
206
|
+
3876,
|
|
207
207
|
"Variable {0} can not be resolved because setting '{1}' not found.",
|
|
208
208
|
match,
|
|
209
209
|
argument
|
|
@@ -211,7 +211,7 @@ class AbstractVariableResolverService {
|
|
|
211
211
|
}
|
|
212
212
|
if (isObject(config)) {
|
|
213
213
|
throw ( new VariableError(VariableKind.Config, localize(
|
|
214
|
-
|
|
214
|
+
3877,
|
|
215
215
|
"Variable {0} can not be resolved because '{1}' is a structured value.",
|
|
216
216
|
match,
|
|
217
217
|
argument
|
|
@@ -220,7 +220,7 @@ class AbstractVariableResolverService {
|
|
|
220
220
|
return config;
|
|
221
221
|
}
|
|
222
222
|
throw ( new VariableError(VariableKind.Config, localize(
|
|
223
|
-
|
|
223
|
+
3878,
|
|
224
224
|
"Variable {0} can not be resolved because no settings name is given.",
|
|
225
225
|
match
|
|
226
226
|
)));
|
|
@@ -233,7 +233,7 @@ class AbstractVariableResolverService {
|
|
|
233
233
|
const ext = await this._context.getExtension(argument);
|
|
234
234
|
if (!ext) {
|
|
235
235
|
throw ( new VariableError(VariableKind.ExtensionInstallFolder, localize(
|
|
236
|
-
|
|
236
|
+
3879,
|
|
237
237
|
"Variable {0} can not be resolved because the extension {1} is not installed.",
|
|
238
238
|
match,
|
|
239
239
|
argument
|
|
@@ -242,7 +242,7 @@ class AbstractVariableResolverService {
|
|
|
242
242
|
return this.fsPath(ext.extensionLocation);
|
|
243
243
|
}
|
|
244
244
|
throw ( new VariableError(VariableKind.ExtensionInstallFolder, localize(
|
|
245
|
-
|
|
245
|
+
3880,
|
|
246
246
|
"Variable {0} can not be resolved because no extension name is given.",
|
|
247
247
|
match
|
|
248
248
|
)));
|
|
@@ -261,7 +261,7 @@ class AbstractVariableResolverService {
|
|
|
261
261
|
return environment.userHome;
|
|
262
262
|
}
|
|
263
263
|
throw ( new VariableError(VariableKind.UserHome, localize(
|
|
264
|
-
|
|
264
|
+
3881,
|
|
265
265
|
"Variable {0} can not be resolved. UserHome path is not defined",
|
|
266
266
|
match
|
|
267
267
|
)));
|
|
@@ -272,7 +272,7 @@ class AbstractVariableResolverService {
|
|
|
272
272
|
return lineNumber;
|
|
273
273
|
}
|
|
274
274
|
throw ( new VariableError(VariableKind.LineNumber, localize(
|
|
275
|
-
|
|
275
|
+
3882,
|
|
276
276
|
"Variable {0} can not be resolved. Make sure to have a line selected in the active editor.",
|
|
277
277
|
match
|
|
278
278
|
)));
|
|
@@ -283,7 +283,7 @@ class AbstractVariableResolverService {
|
|
|
283
283
|
return selectedText;
|
|
284
284
|
}
|
|
285
285
|
throw ( new VariableError(VariableKind.SelectedText, localize(
|
|
286
|
-
|
|
286
|
+
3883,
|
|
287
287
|
"Variable {0} can not be resolved. Make sure to have some text selected in the active editor.",
|
|
288
288
|
match
|
|
289
289
|
)));
|
|
@@ -355,7 +355,7 @@ class AbstractVariableResolverService {
|
|
|
355
355
|
return v;
|
|
356
356
|
}
|
|
357
357
|
throw ( new VariableError(variableKind, localize(
|
|
358
|
-
|
|
358
|
+
3884,
|
|
359
359
|
"Variable {0} can not be resolved because the command has no value.",
|
|
360
360
|
match
|
|
361
361
|
)));
|
|
@@ -5,7 +5,7 @@ const getDefaultIconPath = () => ( (( (FileAccess.asBrowserUri('vs/workbench/ser
|
|
|
5
5
|
const extensionsConfigurationNodeBase = {
|
|
6
6
|
id: 'extensions',
|
|
7
7
|
order: 30,
|
|
8
|
-
title: ( localize(
|
|
8
|
+
title: ( localize(7268, "Extensions")),
|
|
9
9
|
type: 'object'
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -70,8 +70,8 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
70
70
|
const recommendedWorksapceFolders = workspace.folders.filter(workspaceFolder => workspaceFolderExtensionsConfigContents.get(workspaceFolder.uri)?.recommendations?.some(r => r.toLowerCase() === extensionId));
|
|
71
71
|
const isRecommended = isWorkspaceRecommended || recommendedWorksapceFolders.length > 0;
|
|
72
72
|
const workspaceOrFolders = isRecommended
|
|
73
|
-
? await this.pickWorkspaceOrFolders(recommendedWorksapceFolders, isWorkspaceRecommended ? workspace : undefined, ( localize(
|
|
74
|
-
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(
|
|
73
|
+
? await this.pickWorkspaceOrFolders(recommendedWorksapceFolders, isWorkspaceRecommended ? workspace : undefined, ( localize(3942, "Remove extension recommendation from")))
|
|
74
|
+
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(3943, "Add extension recommendation to")));
|
|
75
75
|
for (const workspaceOrWorkspaceFolder of workspaceOrFolders) {
|
|
76
76
|
if (isWorkspace(workspaceOrWorkspaceFolder)) {
|
|
77
77
|
await this.addOrRemoveWorkspaceRecommendation(extensionId, workspaceOrWorkspaceFolder, workspaceExtensionsConfigContent, !isRecommended);
|
|
@@ -93,8 +93,8 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
93
93
|
const unWantedWorksapceFolders = workspace.folders.filter(workspaceFolder => workspaceFolderExtensionsConfigContents.get(workspaceFolder.uri)?.unwantedRecommendations?.some(r => r === extensionId));
|
|
94
94
|
const isUnwanted = isWorkspaceUnwanted || unWantedWorksapceFolders.length > 0;
|
|
95
95
|
const workspaceOrFolders = isUnwanted
|
|
96
|
-
? await this.pickWorkspaceOrFolders(unWantedWorksapceFolders, isWorkspaceUnwanted ? workspace : undefined, ( localize(
|
|
97
|
-
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(
|
|
96
|
+
? await this.pickWorkspaceOrFolders(unWantedWorksapceFolders, isWorkspaceUnwanted ? workspace : undefined, ( localize(3942, "Remove extension recommendation from")))
|
|
97
|
+
: await this.pickWorkspaceOrFolders(workspace.folders, workspace.configuration ? workspace : undefined, ( localize(3943, "Add extension recommendation to")));
|
|
98
98
|
for (const workspaceOrWorkspaceFolder of workspaceOrFolders) {
|
|
99
99
|
if (isWorkspace(workspaceOrWorkspaceFolder)) {
|
|
100
100
|
await this.addOrRemoveWorkspaceUnwantedRecommendation(extensionId, workspaceOrWorkspaceFolder, workspaceExtensionsConfigContent, !isUnwanted);
|
|
@@ -221,7 +221,7 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
221
221
|
const folderPicks = ( (workspaceFolders.map(workspaceFolder => {
|
|
222
222
|
return {
|
|
223
223
|
label: workspaceFolder.name,
|
|
224
|
-
description: ( localize(
|
|
224
|
+
description: ( localize(3944, "Workspace Folder")),
|
|
225
225
|
workspaceOrFolder: workspaceFolder,
|
|
226
226
|
iconClasses: getIconClasses(this.modelService, this.languageService, workspaceFolder.uri, FileKind.ROOT_FOLDER)
|
|
227
227
|
};
|
|
@@ -229,7 +229,7 @@ let WorkspaceExtensionsConfigService = class WorkspaceExtensionsConfigService ex
|
|
|
229
229
|
if (workspace) {
|
|
230
230
|
folderPicks.push({ type: 'separator' });
|
|
231
231
|
folderPicks.push({
|
|
232
|
-
label: ( localize(
|
|
232
|
+
label: ( localize(3945, "Workspace")),
|
|
233
233
|
workspaceOrFolder: workspace,
|
|
234
234
|
});
|
|
235
235
|
}
|
package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js
CHANGED
|
@@ -30,26 +30,26 @@ let FilesConfigurationService = class FilesConfigurationService extends Disposab
|
|
|
30
30
|
static { this.DEFAULT_AUTO_SAVE_DELAY = 1000; }
|
|
31
31
|
static { this.READONLY_MESSAGES = {
|
|
32
32
|
providerReadonly: { value: ( localize(
|
|
33
|
-
|
|
33
|
+
773,
|
|
34
34
|
"Editor is read-only because the file system of the file is read-only."
|
|
35
35
|
)), isTrusted: true },
|
|
36
36
|
sessionReadonly: { value: ( localize(
|
|
37
|
-
|
|
37
|
+
774,
|
|
38
38
|
"Editor is read-only because the file was set read-only in this session. [Click here](command:{0}) to set writeable.",
|
|
39
39
|
'workbench.action.files.setActiveEditorWriteableInSession'
|
|
40
40
|
)), isTrusted: true },
|
|
41
41
|
configuredReadonly: { value: ( localize(
|
|
42
|
-
|
|
42
|
+
775,
|
|
43
43
|
"Editor is read-only because the file was set read-only via settings. [Click here](command:{0}) to configure or [toggle for this session](command:{1}).",
|
|
44
44
|
`workbench.action.openSettings?${encodeURIComponent('["files.readonly"]')}`,
|
|
45
45
|
'workbench.action.files.toggleActiveEditorReadonlyInSession'
|
|
46
46
|
)), isTrusted: true },
|
|
47
47
|
fileLocked: { value: ( localize(
|
|
48
|
-
|
|
48
|
+
776,
|
|
49
49
|
"Editor is read-only because of file permissions. [Click here](command:{0}) to set writeable anyway.",
|
|
50
50
|
'workbench.action.files.setActiveEditorWriteableInSession'
|
|
51
51
|
)), isTrusted: true },
|
|
52
|
-
fileReadonly: { value: ( localize(
|
|
52
|
+
fileReadonly: { value: ( localize(777, "Editor is read-only because the file is read-only.")), isTrusted: true }
|
|
53
53
|
}; }
|
|
54
54
|
constructor(contextKeyService, configurationService, contextService, environmentService, uriIdentityService, fileService, markerService, textResourceConfigurationService) {
|
|
55
55
|
super();
|