@codingame/monaco-vscode-api 10.0.0 → 10.0.2
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/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- 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/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- 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/comment/browser/comment.js +6 -6
- 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/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- 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/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.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/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- 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/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- 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/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +45 -26
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- 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/contextkey/browser/contextKeyService.js +1 -1
- 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/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- 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/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- 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/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.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/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +11 -11
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +34 -34
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- 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/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- 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/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +13 -4
- 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/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/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- 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/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- 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/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- 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/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +11 -9
- 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/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/inlineChat/browser/inlineChatActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +41 -41
- 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/mergeEditor/browser/mergeEditorInput.js +1 -1
- 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/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- 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/speech/common/speechService.js +29 -29
- 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/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +28 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- 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/editor/common/editorResolverService.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/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- 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/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -5,7 +5,7 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
5
5
|
extensionPoint: 'grammars',
|
|
6
6
|
deps: [languagesExtPoint],
|
|
7
7
|
jsonSchema: {
|
|
8
|
-
description: ( localize(
|
|
8
|
+
description: ( localize(7327, 'Contributes textmate tokenizers.')),
|
|
9
9
|
type: 'array',
|
|
10
10
|
defaultSnippets: [{ body: [{ language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' }] }],
|
|
11
11
|
items: {
|
|
@@ -13,43 +13,43 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
13
13
|
defaultSnippets: [{ body: { language: '${1:id}', scopeName: 'source.${2:id}', path: './syntaxes/${3:id}.tmLanguage.' } }],
|
|
14
14
|
properties: {
|
|
15
15
|
language: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(7328, 'Language identifier for which this syntax is contributed to.')),
|
|
17
17
|
type: 'string'
|
|
18
18
|
},
|
|
19
19
|
scopeName: {
|
|
20
|
-
description: ( localize(
|
|
20
|
+
description: ( localize(7329, 'Textmate scope name used by the tmLanguage file.')),
|
|
21
21
|
type: 'string'
|
|
22
22
|
},
|
|
23
23
|
path: {
|
|
24
24
|
description: ( localize(
|
|
25
|
-
|
|
25
|
+
7330,
|
|
26
26
|
'Path of the tmLanguage file. The path is relative to the extension folder and typically starts with \'./syntaxes/\'.'
|
|
27
27
|
)),
|
|
28
28
|
type: 'string'
|
|
29
29
|
},
|
|
30
30
|
embeddedLanguages: {
|
|
31
31
|
description: ( localize(
|
|
32
|
-
|
|
32
|
+
7331,
|
|
33
33
|
'A map of scope name to language id if this grammar contains embedded languages.'
|
|
34
34
|
)),
|
|
35
35
|
type: 'object'
|
|
36
36
|
},
|
|
37
37
|
tokenTypes: {
|
|
38
|
-
description: ( localize(
|
|
38
|
+
description: ( localize(7332, 'A map of scope name to token types.')),
|
|
39
39
|
type: 'object',
|
|
40
40
|
additionalProperties: {
|
|
41
41
|
enum: ['string', 'comment', 'other']
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
injectTo: {
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(7333, 'List of language scope names to which this grammar is injected to.')),
|
|
46
46
|
type: 'array',
|
|
47
47
|
items: {
|
|
48
48
|
type: 'string'
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
balancedBracketScopes: {
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(7334, 'Defines which scope names contain balanced brackets.')),
|
|
53
53
|
type: 'array',
|
|
54
54
|
items: {
|
|
55
55
|
type: 'string'
|
|
@@ -57,7 +57,7 @@ const grammarsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
57
57
|
default: ['*'],
|
|
58
58
|
},
|
|
59
59
|
unbalancedBracketScopes: {
|
|
60
|
-
description: ( localize(
|
|
60
|
+
description: ( localize(7335, 'Defines which scope names do not contain balanced brackets.')),
|
|
61
61
|
type: 'array',
|
|
62
62
|
items: {
|
|
63
63
|
type: 'string'
|
|
@@ -31,7 +31,7 @@ import { IProgressService } from '../../../../platform/progress/common/progress.
|
|
|
31
31
|
var TextFileEditorModel_1;
|
|
32
32
|
let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel {
|
|
33
33
|
static { TextFileEditorModel_1 = this; }
|
|
34
|
-
static { this.TEXTFILE_SAVE_ENCODING_SOURCE = SaveSourceRegistry.registerSource('textFileEncoding.source', ( localize(
|
|
34
|
+
static { this.TEXTFILE_SAVE_ENCODING_SOURCE = SaveSourceRegistry.registerSource('textFileEncoding.source', ( localize(5764, "File Encoding Changed"))); }
|
|
35
35
|
static { this.UNDO_REDO_SAVE_PARTICIPANTS_AUTO_SAVE_THROTTLE_THRESHOLD = 500; }
|
|
36
36
|
constructor(resource, preferredEncoding,
|
|
37
37
|
preferredLanguageId, languageService, modelService, fileService, textFileService, workingCopyBackupService, logService, workingCopyService, filesConfigurationService, labelService, languageDetectionService, accessibilityService, pathService, extensionService, progressService) {
|
|
@@ -500,7 +500,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
|
|
|
500
500
|
}
|
|
501
501
|
const saveCancellation = ( (new CancellationTokenSource()));
|
|
502
502
|
return this.progressService.withProgress({
|
|
503
|
-
title: ( localize(
|
|
503
|
+
title: ( localize(5765, "Saving '{0}'", this.name)),
|
|
504
504
|
location: 10 ,
|
|
505
505
|
cancellable: true,
|
|
506
506
|
delay: this.isDirty() ? 3000 : 5000
|
|
@@ -550,7 +550,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
|
|
|
550
550
|
}
|
|
551
551
|
versionId = this.versionId;
|
|
552
552
|
this.inErrorMode = false;
|
|
553
|
-
progress.report({ message: ( localize(
|
|
553
|
+
progress.report({ message: ( localize(5766, "Writing into file...")) });
|
|
554
554
|
this.trace(`doSave(${versionId}) - before write()`);
|
|
555
555
|
const lastResolvedFileStat = assertIsDefined(this.lastResolvedFileStat);
|
|
556
556
|
const resolvedTextFileEditorModel = this;
|
|
@@ -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(605, '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(606, 'The identifier of the themable color')),
|
|
37
37
|
pattern: colorIdPattern,
|
|
38
38
|
patternErrorMessage: ( localize(
|
|
39
|
-
|
|
39
|
+
607,
|
|
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(608, '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
|
+
609,
|
|
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
|
+
610,
|
|
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
|
+
611,
|
|
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
|
+
612,
|
|
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(613, "'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
|
+
614,
|
|
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(615, "'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
|
+
616,
|
|
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
|
+
617,
|
|
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
|
+
618,
|
|
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
|
+
619,
|
|
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
|
+
620,
|
|
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(621, "ID")),
|
|
200
|
+
( localize(622, "Description")),
|
|
201
|
+
( localize(623, "Dark Default")),
|
|
202
|
+
( localize(624, "Light Default")),
|
|
203
|
+
( localize(625, "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(626, "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(627, 'Contributes extension defined themable icons')),
|
|
18
18
|
type: 'object',
|
|
19
19
|
propertyNames: {
|
|
20
20
|
pattern: iconIdPattern,
|
|
21
|
-
description: ( localize(
|
|
21
|
+
description: ( localize(628, 'The identifier of the themable icon')),
|
|
22
22
|
patternErrorMessage: ( localize(
|
|
23
|
-
|
|
23
|
+
629,
|
|
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(630, '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(631, '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(632, '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
|
+
633,
|
|
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
|
+
634,
|
|
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
|
+
635,
|
|
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
|
+
636,
|
|
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
|
+
637,
|
|
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
|
+
638,
|
|
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
|
+
639,
|
|
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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
2
2
|
import { localize } from '../../../../nls.js';
|
|
3
3
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
4
|
-
const DEFAULT_ICON = registerIcon('settings-view-bar-icon', Codicon.settingsGear, ( localize(
|
|
4
|
+
const DEFAULT_ICON = registerIcon('settings-view-bar-icon', Codicon.settingsGear, ( localize(10679, "Settings icon in the view bar.")));
|
|
5
5
|
const ICONS = [
|
|
6
6
|
DEFAULT_ICON,
|
|
7
7
|
Codicon.vm,
|
|
@@ -5,18 +5,18 @@ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js'
|
|
|
5
5
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
6
6
|
function getSyncAreaLabel(source) {
|
|
7
7
|
switch (source) {
|
|
8
|
-
case "settings" : return ( localize(
|
|
9
|
-
case "keybindings" : return ( localize(
|
|
10
|
-
case "snippets" : return ( localize(
|
|
11
|
-
case "tasks" : return ( localize(
|
|
12
|
-
case "extensions" : return ( localize(
|
|
13
|
-
case "globalState" : return ( localize(
|
|
14
|
-
case "profiles" : return ( localize(
|
|
15
|
-
case "workspaceState" : return ( localize(
|
|
8
|
+
case "settings" : return ( localize(8568, "Settings"));
|
|
9
|
+
case "keybindings" : return ( localize(8569, "Keyboard Shortcuts"));
|
|
10
|
+
case "snippets" : return ( localize(8570, "Snippets"));
|
|
11
|
+
case "tasks" : return ( localize(8571, "Tasks"));
|
|
12
|
+
case "extensions" : return ( localize(8572, "Extensions"));
|
|
13
|
+
case "globalState" : return ( localize(8573, "UI State"));
|
|
14
|
+
case "profiles" : return ( localize(8574, "Profiles"));
|
|
15
|
+
case "workspaceState" : return ( localize(8575, "Workspace State"));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
const SYNC_TITLE = ( localize2(
|
|
19
|
-
const SYNC_VIEW_ICON = registerIcon('settings-sync-view-icon', Codicon.sync, ( localize(
|
|
18
|
+
const SYNC_TITLE = ( localize2(8576, "Settings Sync"));
|
|
19
|
+
const SYNC_VIEW_ICON = registerIcon('settings-sync-view-icon', Codicon.sync, ( localize(8577, 'View icon of the Settings Sync view.')));
|
|
20
20
|
const CONTEXT_SYNC_STATE = ( (new RawContextKey('syncStatus', "uninitialized" )));
|
|
21
21
|
const CONTEXT_SYNC_ENABLEMENT = ( (new RawContextKey('syncEnabled', false)));
|
|
22
22
|
const CONTEXT_ACCOUNT_STATE = ( (new RawContextKey('userDataSyncAccountStatus', "unavailable" )));
|
|
@@ -29,7 +29,7 @@ const SYNC_VIEW_CONTAINER_ID = 'workbench.view.sync';
|
|
|
29
29
|
const SYNC_CONFLICTS_VIEW_ID = 'workbench.views.sync.conflicts';
|
|
30
30
|
const DOWNLOAD_ACTIVITY_ACTION_DESCRIPTOR = {
|
|
31
31
|
id: 'workbench.userDataSync.actions.downloadSyncActivity',
|
|
32
|
-
title: ( localize2(
|
|
32
|
+
title: ( localize2(8578, "Download Settings Sync Activity")),
|
|
33
33
|
category: Categories.Developer,
|
|
34
34
|
f1: true,
|
|
35
35
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -390,7 +390,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
390
390
|
}
|
|
391
391
|
const saveCancellation = ( (new CancellationTokenSource()));
|
|
392
392
|
return this.progressService.withProgress({
|
|
393
|
-
title: ( localize(
|
|
393
|
+
title: ( localize(11599, "Saving '{0}'", this.name)),
|
|
394
394
|
location: 10 ,
|
|
395
395
|
cancellable: true,
|
|
396
396
|
delay: this.isDirty() ? 3000 : 5000
|
|
@@ -437,7 +437,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
437
437
|
}
|
|
438
438
|
versionId = this.versionId;
|
|
439
439
|
this.inErrorMode = false;
|
|
440
|
-
progress.report({ message: ( localize(
|
|
440
|
+
progress.report({ message: ( localize(11600, "Writing into file...")) });
|
|
441
441
|
this.trace(`doSave(${versionId}) - before write()`);
|
|
442
442
|
const lastResolvedFileStat = assertIsDefined(this.lastResolvedFileStat);
|
|
443
443
|
const resolvedFileWorkingCopy = this;
|
|
@@ -514,12 +514,12 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
514
514
|
let message;
|
|
515
515
|
if (fileOperationError.fileOperationResult === 3 ) {
|
|
516
516
|
message = ( localize(
|
|
517
|
-
|
|
517
|
+
11601,
|
|
518
518
|
"Failed to save '{0}': The content of the file is newer. Do you want to overwrite the file with your changes?",
|
|
519
519
|
this.name
|
|
520
520
|
));
|
|
521
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.overwrite', label: ( localize(
|
|
522
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(
|
|
521
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.overwrite', label: ( localize(11602, "Overwrite")), run: () => this.save({ ...options, ignoreModifiedSince: true, reason: 1 }) }));
|
|
522
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(11603, "Revert")), run: () => this.revert() }));
|
|
523
523
|
}
|
|
524
524
|
else {
|
|
525
525
|
const isWriteLocked = fileOperationError.fileOperationResult === 5 ;
|
|
@@ -533,22 +533,22 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
533
533
|
primaryActions.push(toAction({
|
|
534
534
|
id: 'fileWorkingCopy.saveElevated',
|
|
535
535
|
label: triedToUnlock ?
|
|
536
|
-
isWindows ? ( localize(
|
|
537
|
-
isWindows ? ( localize(
|
|
536
|
+
isWindows ? ( localize(11604, "Overwrite as Admin...")) : ( localize(11605, "Overwrite as Sudo...")) :
|
|
537
|
+
isWindows ? ( localize(11606, "Retry as Admin...")) : ( localize(11607, "Retry as Sudo...")),
|
|
538
538
|
run: () => {
|
|
539
539
|
this.save({ ...options, writeElevated: true, writeUnlock: triedToUnlock, reason: 1 });
|
|
540
540
|
}
|
|
541
541
|
}));
|
|
542
542
|
}
|
|
543
543
|
else if (isWriteLocked) {
|
|
544
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.unlock', label: ( localize(
|
|
544
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.unlock', label: ( localize(11602, "Overwrite")), run: () => this.save({ ...options, writeUnlock: true, reason: 1 }) }));
|
|
545
545
|
}
|
|
546
546
|
else {
|
|
547
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.retry', label: ( localize(
|
|
547
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.retry', label: ( localize(11608, "Retry")), run: () => this.save({ ...options, reason: 1 }) }));
|
|
548
548
|
}
|
|
549
549
|
primaryActions.push(toAction({
|
|
550
550
|
id: 'fileWorkingCopy.saveAs',
|
|
551
|
-
label: ( localize(
|
|
551
|
+
label: ( localize(11609, "Save As...")),
|
|
552
552
|
run: async () => {
|
|
553
553
|
const editor = this.workingCopyEditorService.findEditor(this);
|
|
554
554
|
if (editor) {
|
|
@@ -559,24 +559,24 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
}));
|
|
562
|
-
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(
|
|
562
|
+
primaryActions.push(toAction({ id: 'fileWorkingCopy.revert', label: ( localize(11603, "Revert")), run: () => this.revert() }));
|
|
563
563
|
if (isWriteLocked) {
|
|
564
564
|
if (triedToUnlock && canSaveElevated) {
|
|
565
565
|
message = isWindows ?
|
|
566
566
|
( localize(
|
|
567
|
-
|
|
567
|
+
11610,
|
|
568
568
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Admin' to retry as administrator.",
|
|
569
569
|
this.name
|
|
570
570
|
)) :
|
|
571
571
|
( localize(
|
|
572
|
-
|
|
572
|
+
11611,
|
|
573
573
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Sudo' to retry as superuser.",
|
|
574
574
|
this.name
|
|
575
575
|
));
|
|
576
576
|
}
|
|
577
577
|
else {
|
|
578
578
|
message = ( localize(
|
|
579
|
-
|
|
579
|
+
11612,
|
|
580
580
|
"Failed to save '{0}': File is read-only. Select 'Overwrite' to attempt to make it writeable.",
|
|
581
581
|
this.name
|
|
582
582
|
));
|
|
@@ -585,19 +585,19 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
|
|
|
585
585
|
else if (canSaveElevated && isPermissionDenied) {
|
|
586
586
|
message = isWindows ?
|
|
587
587
|
( localize(
|
|
588
|
-
|
|
588
|
+
11613,
|
|
589
589
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Admin' to retry as administrator.",
|
|
590
590
|
this.name
|
|
591
591
|
)) :
|
|
592
592
|
( localize(
|
|
593
|
-
|
|
593
|
+
11614,
|
|
594
594
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.",
|
|
595
595
|
this.name
|
|
596
596
|
));
|
|
597
597
|
}
|
|
598
598
|
else {
|
|
599
599
|
message = ( localize(
|
|
600
|
-
|
|
600
|
+
11615,
|
|
601
601
|
"Failed to save '{0}': {1}",
|
|
602
602
|
this.name,
|
|
603
603
|
toErrorMessage(error, false)
|