@codingame/monaco-vscode-api 8.0.2 → 8.0.3
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/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- 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/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/editor.api.d.ts +91 -69
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostLogService.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/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +127 -127
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +14 -14
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- 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/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- 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/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- 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/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +32 -32
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +16 -16
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- 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/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -26,30 +26,30 @@ const colorIdPattern = '^\\w+[.\\w+]*$';
|
|
|
26
26
|
const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
27
27
|
extensionPoint: 'colors',
|
|
28
28
|
jsonSchema: {
|
|
29
|
-
description: ( localize(
|
|
29
|
+
description: ( localize(590, 'Contributes extension defined themable colors')),
|
|
30
30
|
type: 'array',
|
|
31
31
|
items: {
|
|
32
32
|
type: 'object',
|
|
33
33
|
properties: {
|
|
34
34
|
id: {
|
|
35
35
|
type: 'string',
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(591, 'The identifier of the themable color')),
|
|
37
37
|
pattern: colorIdPattern,
|
|
38
38
|
patternErrorMessage: ( localize(
|
|
39
|
-
|
|
39
|
+
592,
|
|
40
40
|
'Identifiers must only contain letters, digits and dots and can not start with a dot'
|
|
41
41
|
)),
|
|
42
42
|
},
|
|
43
43
|
description: {
|
|
44
44
|
type: 'string',
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(593, 'The description of the themable color')),
|
|
46
46
|
},
|
|
47
47
|
defaults: {
|
|
48
48
|
type: 'object',
|
|
49
49
|
properties: {
|
|
50
50
|
light: {
|
|
51
51
|
description: ( localize(
|
|
52
|
-
|
|
52
|
+
594,
|
|
53
53
|
'The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
|
|
54
54
|
)),
|
|
55
55
|
type: 'string',
|
|
@@ -60,7 +60,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
60
60
|
},
|
|
61
61
|
dark: {
|
|
62
62
|
description: ( localize(
|
|
63
|
-
|
|
63
|
+
595,
|
|
64
64
|
'The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
|
|
65
65
|
)),
|
|
66
66
|
type: 'string',
|
|
@@ -71,7 +71,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
71
71
|
},
|
|
72
72
|
highContrast: {
|
|
73
73
|
description: ( localize(
|
|
74
|
-
|
|
74
|
+
596,
|
|
75
75
|
'The default color for high contrast dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `dark` color is used as default for high contrast dark themes.'
|
|
76
76
|
)),
|
|
77
77
|
type: 'string',
|
|
@@ -82,7 +82,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
82
82
|
},
|
|
83
83
|
highContrastLight: {
|
|
84
84
|
description: ( localize(
|
|
85
|
-
|
|
85
|
+
597,
|
|
86
86
|
'The default color for high contrast light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `light` color is used as default for high contrast light themes.'
|
|
87
87
|
)),
|
|
88
88
|
type: 'string',
|
|
@@ -105,7 +105,7 @@ class ColorExtensionPoint {
|
|
|
105
105
|
const extensionValue = extension.value;
|
|
106
106
|
const collector = extension.collector;
|
|
107
107
|
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
108
|
-
collector.error(( localize(
|
|
108
|
+
collector.error(( localize(598, "'configuration.colors' must be a array")));
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
const parseColorValue = (s, name) => {
|
|
@@ -118,7 +118,7 @@ class ColorExtensionPoint {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
collector.error(( localize(
|
|
121
|
-
|
|
121
|
+
599,
|
|
122
122
|
"{0} must be either a color value in hex (#RRGGBB[AA] or #RGB[A]) or the identifier of a themable color which provides the default.",
|
|
123
123
|
name
|
|
124
124
|
)));
|
|
@@ -126,19 +126,19 @@ class ColorExtensionPoint {
|
|
|
126
126
|
};
|
|
127
127
|
for (const colorContribution of extensionValue) {
|
|
128
128
|
if (typeof colorContribution.id !== 'string' || colorContribution.id.length === 0) {
|
|
129
|
-
collector.error(( localize(
|
|
129
|
+
collector.error(( localize(600, "'configuration.colors.id' must be defined and can not be empty")));
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
if (!colorContribution.id.match(colorIdPattern)) {
|
|
133
133
|
collector.error(( localize(
|
|
134
|
-
|
|
134
|
+
601,
|
|
135
135
|
"'configuration.colors.id' must only contain letters, digits and dots and can not start with a dot"
|
|
136
136
|
)));
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
139
|
if (typeof colorContribution.description !== 'string' || colorContribution.id.length === 0) {
|
|
140
140
|
collector.error(( localize(
|
|
141
|
-
|
|
141
|
+
602,
|
|
142
142
|
"'configuration.colors.description' must be defined and can not be empty"
|
|
143
143
|
)));
|
|
144
144
|
return;
|
|
@@ -146,21 +146,21 @@ class ColorExtensionPoint {
|
|
|
146
146
|
const defaults = colorContribution.defaults;
|
|
147
147
|
if (!defaults || typeof defaults !== 'object' || typeof defaults.light !== 'string' || typeof defaults.dark !== 'string') {
|
|
148
148
|
collector.error(( localize(
|
|
149
|
-
|
|
149
|
+
603,
|
|
150
150
|
"'configuration.colors.defaults' must be defined and must contain 'light' and 'dark'"
|
|
151
151
|
)));
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
if (defaults.highContrast && typeof defaults.highContrast !== 'string') {
|
|
155
155
|
collector.error(( localize(
|
|
156
|
-
|
|
156
|
+
604,
|
|
157
157
|
"If defined, 'configuration.colors.defaults.highContrast' must be a string."
|
|
158
158
|
)));
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
if (defaults.highContrastLight && typeof defaults.highContrastLight !== 'string') {
|
|
162
162
|
collector.error(( localize(
|
|
163
|
-
|
|
163
|
+
605,
|
|
164
164
|
"If defined, 'configuration.colors.defaults.highContrastLight' must be a string."
|
|
165
165
|
)));
|
|
166
166
|
return;
|
|
@@ -196,11 +196,11 @@ class ColorDataRenderer extends Disposable {
|
|
|
196
196
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
197
197
|
}
|
|
198
198
|
const headers = [
|
|
199
|
-
( localize(
|
|
200
|
-
( localize(
|
|
201
|
-
( localize(
|
|
202
|
-
( localize(
|
|
203
|
-
( localize(
|
|
199
|
+
( localize(606, "ID")),
|
|
200
|
+
( localize(607, "Description")),
|
|
201
|
+
( localize(608, "Dark Default")),
|
|
202
|
+
( localize(609, "Light Default")),
|
|
203
|
+
( localize(610, "High Contrast Default")),
|
|
204
204
|
];
|
|
205
205
|
const toColor = (colorReference) => colorReference[0] === '#' ? ( (Color.fromHex(colorReference))) : undefined;
|
|
206
206
|
const rows = ( (colors.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -224,7 +224,7 @@ class ColorDataRenderer extends Disposable {
|
|
|
224
224
|
}
|
|
225
225
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
226
226
|
id: 'colors',
|
|
227
|
-
label: ( localize(
|
|
227
|
+
label: ( localize(611, "Colors")),
|
|
228
228
|
access: {
|
|
229
229
|
canToggle: false
|
|
230
230
|
},
|
|
@@ -14,13 +14,13 @@ const iconIdPattern = `^${ThemeIcon.iconNameSegment}(-${ThemeIcon.iconNameSegmen
|
|
|
14
14
|
const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
15
15
|
extensionPoint: 'icons',
|
|
16
16
|
jsonSchema: {
|
|
17
|
-
description: ( localize(
|
|
17
|
+
description: ( localize(612, 'Contributes extension defined themable icons')),
|
|
18
18
|
type: 'object',
|
|
19
19
|
propertyNames: {
|
|
20
20
|
pattern: iconIdPattern,
|
|
21
|
-
description: ( localize(
|
|
21
|
+
description: ( localize(613, 'The identifier of the themable icon')),
|
|
22
22
|
patternErrorMessage: ( localize(
|
|
23
|
-
|
|
23
|
+
614,
|
|
24
24
|
'Identifiers can only contain letters, digits and minuses and need to consist of at least two segments in the form `component-iconname`.'
|
|
25
25
|
)),
|
|
26
26
|
},
|
|
@@ -29,7 +29,7 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
29
29
|
properties: {
|
|
30
30
|
description: {
|
|
31
31
|
type: 'string',
|
|
32
|
-
description: ( localize(
|
|
32
|
+
description: ( localize(615, 'The description of the themable icon')),
|
|
33
33
|
},
|
|
34
34
|
default: {
|
|
35
35
|
anyOf: [
|
|
@@ -38,11 +38,11 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
38
38
|
type: 'object',
|
|
39
39
|
properties: {
|
|
40
40
|
fontPath: {
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(616, 'The path of the icon font that defines the icon.')),
|
|
42
42
|
type: 'string'
|
|
43
43
|
},
|
|
44
44
|
fontCharacter: {
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(617, 'The character for the icon in the icon font.')),
|
|
46
46
|
type: 'string'
|
|
47
47
|
}
|
|
48
48
|
},
|
|
@@ -51,7 +51,7 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
53
|
description: ( localize(
|
|
54
|
-
|
|
54
|
+
618,
|
|
55
55
|
'The default of the icon. Either a reference to an extisting ThemeIcon or an icon in an icon font.'
|
|
56
56
|
)),
|
|
57
57
|
}
|
|
@@ -70,7 +70,7 @@ class IconExtensionPoint {
|
|
|
70
70
|
const collector = extension.collector;
|
|
71
71
|
if (!extensionValue || typeof extensionValue !== 'object') {
|
|
72
72
|
collector.error(( localize(
|
|
73
|
-
|
|
73
|
+
619,
|
|
74
74
|
"'configuration.icons' must be an object with the icon names as properties."
|
|
75
75
|
)));
|
|
76
76
|
return;
|
|
@@ -78,7 +78,7 @@ class IconExtensionPoint {
|
|
|
78
78
|
for (const id in extensionValue) {
|
|
79
79
|
if (!id.match(iconIdPattern)) {
|
|
80
80
|
collector.error(( localize(
|
|
81
|
-
|
|
81
|
+
620,
|
|
82
82
|
"'configuration.icons' keys represent the icon id and can only contain letter, digits and minuses. They need to consist of at least two segments in the form `component-iconname`."
|
|
83
83
|
)));
|
|
84
84
|
return;
|
|
@@ -86,7 +86,7 @@ class IconExtensionPoint {
|
|
|
86
86
|
const iconContribution = extensionValue[id];
|
|
87
87
|
if (typeof iconContribution.description !== 'string' || iconContribution.description.length === 0) {
|
|
88
88
|
collector.error(( localize(
|
|
89
|
-
|
|
89
|
+
621,
|
|
90
90
|
"'configuration.icons.description' must be defined and can not be empty"
|
|
91
91
|
)));
|
|
92
92
|
return;
|
|
@@ -100,7 +100,7 @@ class IconExtensionPoint {
|
|
|
100
100
|
const format = formatMap[fileExt];
|
|
101
101
|
if (!format) {
|
|
102
102
|
collector.warn(( localize(
|
|
103
|
-
|
|
103
|
+
622,
|
|
104
104
|
"Expected `contributes.icons.default.fontPath` to have file extension 'woff', woff2' or 'ttf', is '{0}'.",
|
|
105
105
|
fileExt
|
|
106
106
|
)));
|
|
@@ -110,7 +110,7 @@ class IconExtensionPoint {
|
|
|
110
110
|
const iconFontLocation = joinPath(extensionLocation, defaultIcon.fontPath);
|
|
111
111
|
if (!isEqualOrParent(iconFontLocation, extensionLocation)) {
|
|
112
112
|
collector.warn(( localize(
|
|
113
|
-
|
|
113
|
+
623,
|
|
114
114
|
"Expected `contributes.icons.default.fontPath` ({0}) to be included inside extension's folder ({0}).",
|
|
115
115
|
iconFontLocation.path,
|
|
116
116
|
extensionLocation.path
|
|
@@ -129,7 +129,7 @@ class IconExtensionPoint {
|
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
131
|
collector.error(( localize(
|
|
132
|
-
|
|
132
|
+
624,
|
|
133
133
|
"'configuration.icons.default' must be either a reference to the id of an other theme icon (string) or a icon definition (object) with properties `fontPath` and `fontCharacter`."
|
|
134
134
|
)));
|
|
135
135
|
}
|
|
@@ -6,14 +6,14 @@ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js'
|
|
|
6
6
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
7
7
|
function getSyncAreaLabel(source) {
|
|
8
8
|
switch (source) {
|
|
9
|
-
case SyncResource.Settings: return ( localize(
|
|
10
|
-
case SyncResource.Keybindings: return ( localize(
|
|
11
|
-
case SyncResource.Snippets: return ( localize(
|
|
12
|
-
case SyncResource.Tasks: return ( localize(
|
|
13
|
-
case SyncResource.Extensions: return ( localize(
|
|
14
|
-
case SyncResource.GlobalState: return ( localize(
|
|
15
|
-
case SyncResource.Profiles: return ( localize(
|
|
16
|
-
case SyncResource.WorkspaceState: return ( localize(
|
|
9
|
+
case SyncResource.Settings: return ( localize(8513, "Settings"));
|
|
10
|
+
case SyncResource.Keybindings: return ( localize(8514, "Keyboard Shortcuts"));
|
|
11
|
+
case SyncResource.Snippets: return ( localize(8515, "Snippets"));
|
|
12
|
+
case SyncResource.Tasks: return ( localize(8516, "Tasks"));
|
|
13
|
+
case SyncResource.Extensions: return ( localize(8517, "Extensions"));
|
|
14
|
+
case SyncResource.GlobalState: return ( localize(8518, "UI State"));
|
|
15
|
+
case SyncResource.Profiles: return ( localize(8519, "Profiles"));
|
|
16
|
+
case SyncResource.WorkspaceState: return ( localize(8520, "Workspace State"));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
var AccountStatus;
|
|
@@ -21,8 +21,8 @@ var AccountStatus;
|
|
|
21
21
|
AccountStatus["Unavailable"] = "unavailable";
|
|
22
22
|
AccountStatus["Available"] = "available";
|
|
23
23
|
})(AccountStatus || (AccountStatus = {}))));
|
|
24
|
-
const SYNC_TITLE = ( localize2(
|
|
25
|
-
const SYNC_VIEW_ICON = registerIcon('settings-sync-view-icon', Codicon.sync, ( localize(
|
|
24
|
+
const SYNC_TITLE = ( localize2(8521, "Settings Sync"));
|
|
25
|
+
const SYNC_VIEW_ICON = registerIcon('settings-sync-view-icon', Codicon.sync, ( localize(8522, 'View icon of the Settings Sync view.')));
|
|
26
26
|
const CONTEXT_SYNC_STATE = ( (new RawContextKey('syncStatus', SyncStatus.Uninitialized)));
|
|
27
27
|
const CONTEXT_SYNC_ENABLEMENT = ( (new RawContextKey('syncEnabled', false)));
|
|
28
28
|
const CONTEXT_ACCOUNT_STATE = ( (new RawContextKey('userDataSyncAccountStatus', AccountStatus.Unavailable)));
|
|
@@ -35,7 +35,7 @@ const SYNC_VIEW_CONTAINER_ID = 'workbench.view.sync';
|
|
|
35
35
|
const SYNC_CONFLICTS_VIEW_ID = 'workbench.views.sync.conflicts';
|
|
36
36
|
const DOWNLOAD_ACTIVITY_ACTION_DESCRIPTOR = {
|
|
37
37
|
id: 'workbench.userDataSync.actions.downloadSyncActivity',
|
|
38
|
-
title: ( localize2(
|
|
38
|
+
title: ( localize2(8523, "Download Settings Sync Activity")),
|
|
39
39
|
category: Categories.Developer,
|
|
40
40
|
f1: true,
|
|
41
41
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -403,7 +403,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
403
403
|
}
|
|
404
404
|
const saveCancellation = ( (new CancellationTokenSource()));
|
|
405
405
|
return this.progressService.withProgress({
|
|
406
|
-
title: ( localize(
|
|
406
|
+
title: ( localize(10651, "Saving '{0}'", this.name)),
|
|
407
407
|
location: ProgressLocation.Window,
|
|
408
408
|
cancellable: true,
|
|
409
409
|
delay: this.isDirty() ? 3000 : 5000
|
|
@@ -450,7 +450,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
450
450
|
}
|
|
451
451
|
versionId = this.versionId;
|
|
452
452
|
this.inErrorMode = false;
|
|
453
|
-
progress.report({ message: ( localize(
|
|
453
|
+
progress.report({ message: ( localize(10652, "Writing into file...")) });
|
|
454
454
|
this.trace(`doSave(${versionId}) - before write()`);
|
|
455
455
|
const lastResolvedFileStat = assertIsDefined(this.lastResolvedFileStat);
|
|
456
456
|
const resolvedFileWorkingCopy = this;
|
|
@@ -527,12 +527,12 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
527
527
|
let message;
|
|
528
528
|
if (fileOperationError.fileOperationResult === FileOperationResult.FILE_MODIFIED_SINCE) {
|
|
529
529
|
message = ( localize(
|
|
530
|
-
|
|
530
|
+
10653,
|
|
531
531
|
"Failed to save '{0}': The content of the file is newer. Do you want to overwrite the file with your changes?",
|
|
532
532
|
this.name
|
|
533
533
|
));
|
|
534
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.overwrite', label: ( localize(
|
|
535
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(
|
|
534
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.overwrite', label: ( localize(10654, "Overwrite")), run: () => this.save({ ...options, ignoreModifiedSince: true, reason: SaveReason.EXPLICIT }) }));
|
|
535
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(10655, "Discard")), run: () => this.revert() }));
|
|
536
536
|
}
|
|
537
537
|
else {
|
|
538
538
|
const isWriteLocked = fileOperationError.fileOperationResult === FileOperationResult.FILE_WRITE_LOCKED;
|
|
@@ -546,22 +546,22 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
546
546
|
primaryActions.push(toAction({
|
|
547
547
|
id: 'fileWorkingCopy.saveElevated',
|
|
548
548
|
label: triedToUnlock ?
|
|
549
|
-
isWindows ? ( localize(
|
|
550
|
-
isWindows ? ( localize(
|
|
549
|
+
isWindows ? ( localize(10656, "Overwrite as Admin...")) : ( localize(10657, "Overwrite as Sudo...")) :
|
|
550
|
+
isWindows ? ( localize(10658, "Retry as Admin...")) : ( localize(10659, "Retry as Sudo...")),
|
|
551
551
|
run: () => {
|
|
552
552
|
this.save({ ...options, writeElevated: true, writeUnlock: triedToUnlock, reason: SaveReason.EXPLICIT });
|
|
553
553
|
}
|
|
554
554
|
}));
|
|
555
555
|
}
|
|
556
556
|
else if (isWriteLocked) {
|
|
557
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.unlock', label: ( localize(
|
|
557
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.unlock', label: ( localize(10654, "Overwrite")), run: () => this.save({ ...options, writeUnlock: true, reason: SaveReason.EXPLICIT }) }));
|
|
558
558
|
}
|
|
559
559
|
else {
|
|
560
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.retry', label: ( localize(
|
|
560
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.retry', label: ( localize(10660, "Retry")), run: () => this.save({ ...options, reason: SaveReason.EXPLICIT }) }));
|
|
561
561
|
}
|
|
562
562
|
primaryActions.push(toAction({
|
|
563
563
|
id: 'fileWorkingCopy.saveAs',
|
|
564
|
-
label: ( localize(
|
|
564
|
+
label: ( localize(10661, "Save As...")),
|
|
565
565
|
run: async () => {
|
|
566
566
|
const editor = this.workingCopyEditorService.findEditor(this);
|
|
567
567
|
if (editor) {
|
|
@@ -572,24 +572,24 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}));
|
|
575
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(
|
|
575
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(10655, "Discard")), run: () => this.revert() }));
|
|
576
576
|
if (isWriteLocked) {
|
|
577
577
|
if (triedToUnlock && canSaveElevated) {
|
|
578
578
|
message = isWindows ?
|
|
579
579
|
( localize(
|
|
580
|
-
|
|
580
|
+
10662,
|
|
581
581
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Admin' to retry as administrator.",
|
|
582
582
|
this.name
|
|
583
583
|
)) :
|
|
584
584
|
( localize(
|
|
585
|
-
|
|
585
|
+
10663,
|
|
586
586
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Sudo' to retry as superuser.",
|
|
587
587
|
this.name
|
|
588
588
|
));
|
|
589
589
|
}
|
|
590
590
|
else {
|
|
591
591
|
message = ( localize(
|
|
592
|
-
|
|
592
|
+
10664,
|
|
593
593
|
"Failed to save '{0}': File is read-only. Select 'Overwrite' to attempt to make it writeable.",
|
|
594
594
|
this.name
|
|
595
595
|
));
|
|
@@ -598,19 +598,19 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
598
598
|
else if (canSaveElevated && isPermissionDenied) {
|
|
599
599
|
message = isWindows ?
|
|
600
600
|
( localize(
|
|
601
|
-
|
|
601
|
+
10665,
|
|
602
602
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Admin' to retry as administrator.",
|
|
603
603
|
this.name
|
|
604
604
|
)) :
|
|
605
605
|
( localize(
|
|
606
|
-
|
|
606
|
+
10666,
|
|
607
607
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.",
|
|
608
608
|
this.name
|
|
609
609
|
));
|
|
610
610
|
}
|
|
611
611
|
else {
|
|
612
612
|
message = ( localize(
|
|
613
|
-
|
|
613
|
+
10667,
|
|
614
614
|
"Failed to save '{0}': {1}",
|
|
615
615
|
this.name,
|
|
616
616
|
toErrorMessage(error, false)
|