@codingame/monaco-vscode-api 9.0.2 → 9.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/actionbar/actionViewItems.js +1 -1
- 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/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +8 -8
- 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/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- 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/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +50 -50
- 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/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- 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/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +7 -7
- 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/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- 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/gotoError/browser/gotoErrorWidget.js +14 -14
- 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/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- 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/hover/browser/markerHoverParticipant.js +5 -5
- 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/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +2 -2
- 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/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- 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/peekView/browser/peekView.js +17 -17
- 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/rename/browser/renameWidget.js +6 -6
- 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/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- 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/symbolIcons/browser/symbolIcons.js +33 -33
- 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/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- 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/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +19 -19
- 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/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- 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/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- 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/contrib/chat/browser/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
- 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/debug/browser/baseDebugView.js +1 -1
- 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/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +3 -3
- 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 +166 -166
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- 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/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +14 -14
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.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/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- 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/taskService.js +5 -5
- 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/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
|
@@ -237,14 +237,14 @@ let DirtyDiffWidget = class DirtyDiffWidget extends PeekViewWidget {
|
|
|
237
237
|
if (!this.shouldUseDropdown()) {
|
|
238
238
|
detail = this.model.changes.length > 1
|
|
239
239
|
? ( localize(
|
|
240
|
-
|
|
240
|
+
6308,
|
|
241
241
|
"{0} - {1} of {2} changes",
|
|
242
242
|
label,
|
|
243
243
|
providerIndex + 1,
|
|
244
244
|
providerChanges.length
|
|
245
245
|
))
|
|
246
246
|
: ( localize(
|
|
247
|
-
|
|
247
|
+
6309,
|
|
248
248
|
"{0} - {1} of {2} change",
|
|
249
249
|
label,
|
|
250
250
|
providerIndex + 1,
|
|
@@ -254,8 +254,8 @@ let DirtyDiffWidget = class DirtyDiffWidget extends PeekViewWidget {
|
|
|
254
254
|
}
|
|
255
255
|
else {
|
|
256
256
|
detail = this.model.changes.length > 1
|
|
257
|
-
? ( localize(
|
|
258
|
-
: ( localize(
|
|
257
|
+
? ( localize(6310, "{0} of {1} changes", providerIndex + 1, providerChanges.length))
|
|
258
|
+
: ( localize(6311, "{0} of {1} change", providerIndex + 1, providerChanges.length));
|
|
259
259
|
this.dropdownContainer.style.display = 'inherit';
|
|
260
260
|
}
|
|
261
261
|
this.setTitle(this.title, detail);
|
|
@@ -313,7 +313,7 @@ let DirtyDiffWidget = class DirtyDiffWidget extends PeekViewWidget {
|
|
|
313
313
|
this._actionbarWidget.clear();
|
|
314
314
|
this._actionbarWidget.push(actions.reverse(), { label: false, icon: true });
|
|
315
315
|
this._actionbarWidget.push([next, previous], { label: false, icon: true });
|
|
316
|
-
this._actionbarWidget.push(( (new Action('peekview.close', ( localize(
|
|
316
|
+
this._actionbarWidget.push(( (new Action('peekview.close', ( localize(6312, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => this.dispose()))), { label: false, icon: true });
|
|
317
317
|
}
|
|
318
318
|
_fillHead(container) {
|
|
319
319
|
super._fillHead(container, true);
|
|
@@ -418,7 +418,7 @@ class ShowPreviousChangeAction extends EditorAction {
|
|
|
418
418
|
constructor(outerEditor) {
|
|
419
419
|
super({
|
|
420
420
|
id: 'editor.action.dirtydiff.previous',
|
|
421
|
-
label: ( localize(
|
|
421
|
+
label: ( localize(6313, "Show Previous Change")),
|
|
422
422
|
alias: 'Show Previous Change',
|
|
423
423
|
precondition: ( (TextCompareEditorActiveContext.toNegated())),
|
|
424
424
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod$1.Shift | KeyMod$1.Alt | KeyCode.F3, weight: KeybindingWeight.EditorContrib }
|
|
@@ -445,7 +445,7 @@ class ShowNextChangeAction extends EditorAction {
|
|
|
445
445
|
constructor(outerEditor) {
|
|
446
446
|
super({
|
|
447
447
|
id: 'editor.action.dirtydiff.next',
|
|
448
|
-
label: ( localize(
|
|
448
|
+
label: ( localize(6314, "Show Next Change")),
|
|
449
449
|
alias: 'Show Next Change',
|
|
450
450
|
precondition: ( (TextCompareEditorActiveContext.toNegated())),
|
|
451
451
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod$1.Alt | KeyCode.F3, weight: KeybindingWeight.EditorContrib }
|
|
@@ -472,7 +472,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
472
472
|
group: '7_change_nav',
|
|
473
473
|
command: {
|
|
474
474
|
id: 'editor.action.dirtydiff.next',
|
|
475
|
-
title: ( localize(
|
|
475
|
+
title: ( localize(6315, "Next &&Change"))
|
|
476
476
|
},
|
|
477
477
|
order: 1
|
|
478
478
|
});
|
|
@@ -480,7 +480,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
480
480
|
group: '7_change_nav',
|
|
481
481
|
command: {
|
|
482
482
|
id: 'editor.action.dirtydiff.previous',
|
|
483
|
-
title: ( localize(
|
|
483
|
+
title: ( localize(6316, "Previous &&Change"))
|
|
484
484
|
},
|
|
485
485
|
order: 2
|
|
486
486
|
});
|
|
@@ -488,7 +488,7 @@ class GotoPreviousChangeAction extends EditorAction {
|
|
|
488
488
|
constructor() {
|
|
489
489
|
super({
|
|
490
490
|
id: 'workbench.action.editor.previousChange',
|
|
491
|
-
label: ( localize(
|
|
491
|
+
label: ( localize(6317, "Go to Previous Change")),
|
|
492
492
|
alias: 'Go to Previous Change',
|
|
493
493
|
precondition: ( (TextCompareEditorActiveContext.toNegated())),
|
|
494
494
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod$1.Shift | KeyMod$1.Alt | KeyCode.F5, weight: KeybindingWeight.EditorContrib }
|
|
@@ -522,7 +522,7 @@ class GotoNextChangeAction extends EditorAction {
|
|
|
522
522
|
constructor() {
|
|
523
523
|
super({
|
|
524
524
|
id: 'workbench.action.editor.nextChange',
|
|
525
|
-
label: ( localize(
|
|
525
|
+
label: ( localize(6318, "Go to Next Change")),
|
|
526
526
|
alias: 'Go to Next Change',
|
|
527
527
|
precondition: ( (TextCompareEditorActiveContext.toNegated())),
|
|
528
528
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod$1.Alt | KeyCode.F5, weight: KeybindingWeight.EditorContrib }
|
|
@@ -841,20 +841,20 @@ const editorGutterModifiedBackground = registerColor('editorGutter.modifiedBackg
|
|
|
841
841
|
light: '#2090D3',
|
|
842
842
|
hcDark: '#1B81A8',
|
|
843
843
|
hcLight: '#2090D3'
|
|
844
|
-
}, ( localize(
|
|
844
|
+
}, ( localize(6319, "Editor gutter background color for lines that are modified.")));
|
|
845
845
|
const editorGutterAddedBackground = registerColor('editorGutter.addedBackground', {
|
|
846
846
|
dark: '#487E02',
|
|
847
847
|
light: '#48985D',
|
|
848
848
|
hcDark: '#487E02',
|
|
849
849
|
hcLight: '#48985D'
|
|
850
|
-
}, ( localize(
|
|
851
|
-
const editorGutterDeletedBackground = registerColor('editorGutter.deletedBackground', editorErrorForeground, ( localize(
|
|
852
|
-
const minimapGutterModifiedBackground = registerColor('minimapGutter.modifiedBackground', editorGutterModifiedBackground, ( localize(
|
|
853
|
-
const minimapGutterAddedBackground = registerColor('minimapGutter.addedBackground', editorGutterAddedBackground, ( localize(
|
|
854
|
-
const minimapGutterDeletedBackground = registerColor('minimapGutter.deletedBackground', editorGutterDeletedBackground, ( localize(
|
|
855
|
-
const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground', ( (transparent(editorGutterModifiedBackground, 0.6))), ( localize(
|
|
856
|
-
const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground', ( (transparent(editorGutterAddedBackground, 0.6))), ( localize(
|
|
857
|
-
const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground', ( (transparent(editorGutterDeletedBackground, 0.6))), ( localize(
|
|
850
|
+
}, ( localize(6320, "Editor gutter background color for lines that are added.")));
|
|
851
|
+
const editorGutterDeletedBackground = registerColor('editorGutter.deletedBackground', editorErrorForeground, ( localize(6321, "Editor gutter background color for lines that are deleted.")));
|
|
852
|
+
const minimapGutterModifiedBackground = registerColor('minimapGutter.modifiedBackground', editorGutterModifiedBackground, ( localize(6322, "Minimap gutter background color for lines that are modified.")));
|
|
853
|
+
const minimapGutterAddedBackground = registerColor('minimapGutter.addedBackground', editorGutterAddedBackground, ( localize(6323, "Minimap gutter background color for lines that are added.")));
|
|
854
|
+
const minimapGutterDeletedBackground = registerColor('minimapGutter.deletedBackground', editorGutterDeletedBackground, ( localize(6324, "Minimap gutter background color for lines that are deleted.")));
|
|
855
|
+
const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground', ( (transparent(editorGutterModifiedBackground, 0.6))), ( localize(6325, 'Overview ruler marker color for modified content.')));
|
|
856
|
+
const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground', ( (transparent(editorGutterAddedBackground, 0.6))), ( localize(6326, 'Overview ruler marker color for added content.')));
|
|
857
|
+
const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground', ( (transparent(editorGutterDeletedBackground, 0.6))), ( localize(6327, 'Overview ruler marker color for deleted content.')));
|
|
858
858
|
let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends Disposable {
|
|
859
859
|
static createDecoration(className, tooltip, options) {
|
|
860
860
|
const decorationOptions = {
|
|
@@ -889,7 +889,7 @@ let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends
|
|
|
889
889
|
const gutter = decorations === 'all' || decorations === 'gutter';
|
|
890
890
|
const overview = decorations === 'all' || decorations === 'overview';
|
|
891
891
|
const minimap = decorations === 'all' || decorations === 'minimap';
|
|
892
|
-
const diffAdded = ( localize(
|
|
892
|
+
const diffAdded = ( localize(6328, 'Added lines'));
|
|
893
893
|
this.addedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-added', diffAdded, {
|
|
894
894
|
gutter,
|
|
895
895
|
overview: { active: overview, color: overviewRulerAddedForeground },
|
|
@@ -902,7 +902,7 @@ let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends
|
|
|
902
902
|
minimap: { active: minimap, color: minimapGutterAddedBackground },
|
|
903
903
|
isWholeLine: true
|
|
904
904
|
});
|
|
905
|
-
const diffModified = ( localize(
|
|
905
|
+
const diffModified = ( localize(6329, 'Changed lines'));
|
|
906
906
|
this.modifiedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-modified', diffModified, {
|
|
907
907
|
gutter,
|
|
908
908
|
overview: { active: overview, color: overviewRulerModifiedForeground },
|
|
@@ -915,7 +915,7 @@ let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends
|
|
|
915
915
|
minimap: { active: minimap, color: minimapGutterModifiedBackground },
|
|
916
916
|
isWholeLine: true
|
|
917
917
|
});
|
|
918
|
-
this.deletedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-deleted', ( localize(
|
|
918
|
+
this.deletedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-deleted', ( localize(6330, 'Removed lines')), {
|
|
919
919
|
gutter,
|
|
920
920
|
overview: { active: overview, color: overviewRulerDeletedForeground },
|
|
921
921
|
minimap: { active: minimap, color: minimapGutterDeletedBackground },
|
package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js
CHANGED
|
@@ -2,7 +2,7 @@ import { EditorAction2 } from '../../../../../editor/browser/editorExtensions.js
|
|
|
2
2
|
import { localize2 } from '../../../../../nls.js';
|
|
3
3
|
import { Action2 } from '../../../../../platform/actions/common/actions.js';
|
|
4
4
|
const defaultOptions = {
|
|
5
|
-
category: ( localize2(
|
|
5
|
+
category: ( localize2(10580, "Snippets")),
|
|
6
6
|
};
|
|
7
7
|
class SnippetsAction extends Action2 {
|
|
8
8
|
constructor(desc) {
|
|
@@ -13,7 +13,7 @@ class ApplyFileSnippetAction extends SnippetsAction {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: ApplyFileSnippetAction.Id,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(6787, "Fill File with Snippet")),
|
|
17
17
|
f1: true,
|
|
18
18
|
});
|
|
19
19
|
}
|
|
@@ -75,7 +75,7 @@ class ApplyFileSnippetAction extends SnippetsAction {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
const pick = await quickInputService.pick(picks, {
|
|
78
|
-
placeHolder: ( localize(
|
|
78
|
+
placeHolder: ( localize(6788, 'Select a snippet')),
|
|
79
79
|
matchOnDetail: true,
|
|
80
80
|
});
|
|
81
81
|
return pick?.snippet;
|
|
@@ -25,7 +25,7 @@ class SnippetCompletion {
|
|
|
25
25
|
constructor(snippet, range) {
|
|
26
26
|
this.snippet = snippet;
|
|
27
27
|
this.label = { label: snippet.prefix, description: snippet.name };
|
|
28
|
-
this.detail = ( localize(
|
|
28
|
+
this.detail = ( localize(6768, "{0} ({1})", snippet.description || snippet.name, snippet.source));
|
|
29
29
|
this.insertText = snippet.codeSnippet;
|
|
30
30
|
this.extensionId = snippet.extensionId;
|
|
31
31
|
this.range = range;
|
|
@@ -119,14 +119,14 @@ let SnippetCompletionProvider = class SnippetCompletionProvider {
|
|
|
119
119
|
let to = i + 1;
|
|
120
120
|
for (; to < suggestions.length && item.label === suggestions[to].label; to++) {
|
|
121
121
|
suggestions[to].label.label = ( localize(
|
|
122
|
-
|
|
122
|
+
6769,
|
|
123
123
|
"{0}, {1}",
|
|
124
124
|
suggestions[to].label.label,
|
|
125
125
|
suggestions[to].snippet.name
|
|
126
126
|
));
|
|
127
127
|
}
|
|
128
128
|
if (to > i + 1) {
|
|
129
|
-
suggestions[i].label.label = ( localize(
|
|
129
|
+
suggestions[i].label.label = ( localize(6769, "{0}, {1}", suggestions[i].label.label, suggestions[i].snippet.name));
|
|
130
130
|
i = to;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -211,14 +211,14 @@ class SnippetFile {
|
|
|
211
211
|
source = this._extension.displayName || this._extension.name;
|
|
212
212
|
}
|
|
213
213
|
else if (this.source === SnippetSource.Workspace) {
|
|
214
|
-
source = ( localize(
|
|
214
|
+
source = ( localize(6765, "Workspace Snippet"));
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
217
|
if (this.isGlobalSnippets) {
|
|
218
|
-
source = ( localize(
|
|
218
|
+
source = ( localize(6766, "Global User Snippet"));
|
|
219
219
|
}
|
|
220
220
|
else {
|
|
221
|
-
source = ( localize(
|
|
221
|
+
source = ( localize(6767, "User Snippet"));
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
for (const _prefix of Iterable.wrap(prefix)) {
|
|
@@ -32,7 +32,7 @@ var snippetExt;
|
|
|
32
32
|
function toValidSnippet(extension, snippet, languageService) {
|
|
33
33
|
if (isFalsyOrWhitespace(snippet.path)) {
|
|
34
34
|
extension.collector.error(( localize(
|
|
35
|
-
|
|
35
|
+
3007,
|
|
36
36
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
37
37
|
extension.description.name,
|
|
38
38
|
String(snippet.path)
|
|
@@ -41,7 +41,7 @@ var snippetExt;
|
|
|
41
41
|
}
|
|
42
42
|
if (isFalsyOrWhitespace(snippet.language) && !snippet.path.endsWith('.code-snippets')) {
|
|
43
43
|
extension.collector.error(( localize(
|
|
44
|
-
|
|
44
|
+
3008,
|
|
45
45
|
"When omitting the language, the value of `contributes.{0}.path` must be a `.code-snippets`-file. Provided value: {1}",
|
|
46
46
|
extension.description.name,
|
|
47
47
|
String(snippet.path)
|
|
@@ -50,7 +50,7 @@ var snippetExt;
|
|
|
50
50
|
}
|
|
51
51
|
if (!isFalsyOrWhitespace(snippet.language) && !languageService.isRegisteredLanguageId(snippet.language)) {
|
|
52
52
|
extension.collector.error(( localize(
|
|
53
|
-
|
|
53
|
+
3009,
|
|
54
54
|
"Unknown language in `contributes.{0}.language`. Provided value: {1}",
|
|
55
55
|
extension.description.name,
|
|
56
56
|
String(snippet.language)
|
|
@@ -61,7 +61,7 @@ var snippetExt;
|
|
|
61
61
|
const snippetLocation = joinPath(extensionLocation, snippet.path);
|
|
62
62
|
if (!isEqualOrParent(snippetLocation, extensionLocation)) {
|
|
63
63
|
extension.collector.error(( localize(
|
|
64
|
-
|
|
64
|
+
3010,
|
|
65
65
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
66
66
|
extension.description.name,
|
|
67
67
|
snippetLocation.path,
|
|
@@ -76,7 +76,7 @@ var snippetExt;
|
|
|
76
76
|
}
|
|
77
77
|
snippetExt.toValidSnippet = toValidSnippet;
|
|
78
78
|
snippetExt.snippetsContribution = {
|
|
79
|
-
description: ( localize(
|
|
79
|
+
description: ( localize(3011, 'Contributes snippets.')),
|
|
80
80
|
type: 'array',
|
|
81
81
|
defaultSnippets: [{ body: [{ language: '', path: '' }] }],
|
|
82
82
|
items: {
|
|
@@ -84,12 +84,12 @@ var snippetExt;
|
|
|
84
84
|
defaultSnippets: [{ body: { language: '${1:id}', path: './snippets/${2:id}.json.' } }],
|
|
85
85
|
properties: {
|
|
86
86
|
language: {
|
|
87
|
-
description: ( localize(
|
|
87
|
+
description: ( localize(3012, 'Language identifier for which this snippet is contributed to.')),
|
|
88
88
|
type: 'string'
|
|
89
89
|
},
|
|
90
90
|
path: {
|
|
91
91
|
description: ( localize(
|
|
92
|
-
|
|
92
|
+
3013,
|
|
93
93
|
'Path of the snippets file. The path is relative to the extension folder and typically starts with \'./snippets/\'.'
|
|
94
94
|
)),
|
|
95
95
|
type: 'string'
|
|
@@ -338,14 +338,14 @@ let SnippetsService = class SnippetsService {
|
|
|
338
338
|
file.load().then(file => {
|
|
339
339
|
if (( (file.data.some(snippet => snippet.isBogous)))) {
|
|
340
340
|
extension.collector.warn(( localize(
|
|
341
|
-
|
|
341
|
+
3014,
|
|
342
342
|
"One or more snippets from the extension '{0}' very likely confuse snippet-variables and snippet-placeholders (see https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax for more details)",
|
|
343
343
|
extension.description.name
|
|
344
344
|
)));
|
|
345
345
|
}
|
|
346
346
|
}, err => {
|
|
347
347
|
extension.collector.warn(( localize(
|
|
348
|
-
|
|
348
|
+
3015,
|
|
349
349
|
"The snippet file \"{0}\" could not be read.",
|
|
350
350
|
(file.location.toString())
|
|
351
351
|
)));
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { localize } from '../../../../nls.js';
|
|
2
2
|
import { RawContextKey, ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
3
3
|
const CustomExecutionSupportedContext = ( (new RawContextKey('customExecutionSupported', false, ( localize(
|
|
4
|
-
|
|
4
|
+
6380,
|
|
5
5
|
"Whether CustomExecution tasks are supported. Consider using in the when clause of a \'taskDefinition\' contribution."
|
|
6
6
|
)))));
|
|
7
7
|
const ShellExecutionSupportedContext = ( (new RawContextKey('shellExecutionSupported', false, ( localize(
|
|
8
|
-
|
|
8
|
+
6381,
|
|
9
9
|
"Whether ShellExecution tasks are supported. Consider using in the when clause of a \'taskDefinition\' contribution."
|
|
10
10
|
)))));
|
|
11
|
-
const TaskCommandsRegistered = ( (new RawContextKey('taskCommandsRegistered', false, ( localize(
|
|
11
|
+
const TaskCommandsRegistered = ( (new RawContextKey('taskCommandsRegistered', false, ( localize(6382, "Whether the task commands have been registered yet")))));
|
|
12
12
|
const ProcessExecutionSupportedContext = ( (new RawContextKey('processExecutionSupported', false, ( localize(
|
|
13
|
-
|
|
13
|
+
6383,
|
|
14
14
|
"Whether ProcessExecution tasks are supported. Consider using in the when clause of a \'taskDefinition\' contribution."
|
|
15
15
|
)))));
|
|
16
|
-
const ServerlessWebContext = ( (new RawContextKey('serverlessWebContext', false, ( localize(
|
|
16
|
+
const ServerlessWebContext = ( (new RawContextKey('serverlessWebContext', false, ( localize(6384, "True when in the web with no remote authority.")))));
|
|
17
17
|
const TaskExecutionSupportedContext = ( (ContextKeyExpr.or(
|
|
18
18
|
(ContextKeyExpr.and(ShellExecutionSupportedContext, ProcessExecutionSupportedContext)),
|
|
19
19
|
CustomExecutionSupportedContext
|
|
@@ -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(9538, "The viewType of the currently active webview panel.")),
|
|
25
25
|
})));
|
|
26
26
|
let WebviewEditor = class WebviewEditor extends EditorPane {
|
|
27
27
|
static { WebviewEditor_1 = this; }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { localize } from '../../../../nls.js';
|
|
2
2
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
3
3
|
const WorkspaceTrustContext = {
|
|
4
|
-
IsEnabled: ( (new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(
|
|
5
|
-
IsTrusted: ( (new RawContextKey('isWorkspaceTrusted', false, ( localize(
|
|
4
|
+
IsEnabled: ( (new RawContextKey('isWorkspaceTrustEnabled', false, ( localize(6366, "Whether the workspace trust feature is enabled."))))),
|
|
5
|
+
IsTrusted: ( (new RawContextKey('isWorkspaceTrusted', false, ( localize(6367, "Whether the current workspace has been trusted by the user.")))))
|
|
6
6
|
};
|
|
7
7
|
const MANAGE_TRUST_COMMAND_ID = 'workbench.trust.manage';
|
|
8
8
|
export { MANAGE_TRUST_COMMAND_ID, WorkspaceTrustContext };
|
|
@@ -14,7 +14,7 @@ const editorAssociationsConfigurationNode = {
|
|
|
14
14
|
'workbench.editorAssociations': {
|
|
15
15
|
type: 'object',
|
|
16
16
|
markdownDescription: ( localize(
|
|
17
|
-
|
|
17
|
+
5636,
|
|
18
18
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
19
19
|
)),
|
|
20
20
|
additionalProperties: {
|
|
@@ -21,25 +21,25 @@ import { isString } from '../../../../base/common/types.js';
|
|
|
21
21
|
const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
22
22
|
extensionPoint: 'languages',
|
|
23
23
|
jsonSchema: {
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(2477, 'Contributes language declarations.')),
|
|
25
25
|
type: 'array',
|
|
26
26
|
items: {
|
|
27
27
|
type: 'object',
|
|
28
28
|
defaultSnippets: [{ body: { id: '${1:languageId}', aliases: ['${2:label}'], extensions: ['${3:extension}'], configuration: './language-configuration.json' } }],
|
|
29
29
|
properties: {
|
|
30
30
|
id: {
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(2478, 'ID of the language.')),
|
|
32
32
|
type: 'string'
|
|
33
33
|
},
|
|
34
34
|
aliases: {
|
|
35
|
-
description: ( localize(
|
|
35
|
+
description: ( localize(2479, 'Name aliases for the language.')),
|
|
36
36
|
type: 'array',
|
|
37
37
|
items: {
|
|
38
38
|
type: 'string'
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
extensions: {
|
|
42
|
-
description: ( localize(
|
|
42
|
+
description: ( localize(2480, 'File extensions associated to the language.')),
|
|
43
43
|
default: ['.foo'],
|
|
44
44
|
type: 'array',
|
|
45
45
|
items: {
|
|
@@ -47,21 +47,21 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
filenames: {
|
|
50
|
-
description: ( localize(
|
|
50
|
+
description: ( localize(2481, 'File names associated to the language.')),
|
|
51
51
|
type: 'array',
|
|
52
52
|
items: {
|
|
53
53
|
type: 'string'
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
filenamePatterns: {
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(2482, 'File name glob patterns associated to the language.')),
|
|
58
58
|
type: 'array',
|
|
59
59
|
items: {
|
|
60
60
|
type: 'string'
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
mimetypes: {
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(2483, 'Mime types associated to the language.')),
|
|
65
65
|
type: 'array',
|
|
66
66
|
items: {
|
|
67
67
|
type: 'string'
|
|
@@ -69,14 +69,14 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
69
69
|
},
|
|
70
70
|
firstLine: {
|
|
71
71
|
description: ( localize(
|
|
72
|
-
|
|
72
|
+
2484,
|
|
73
73
|
'A regular expression matching the first line of a file of the language.'
|
|
74
74
|
)),
|
|
75
75
|
type: 'string'
|
|
76
76
|
},
|
|
77
77
|
configuration: {
|
|
78
78
|
description: ( localize(
|
|
79
|
-
|
|
79
|
+
2485,
|
|
80
80
|
'A relative path to a file containing configuration options for the language.'
|
|
81
81
|
)),
|
|
82
82
|
type: 'string',
|
|
@@ -85,16 +85,16 @@ const languagesExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
85
85
|
icon: {
|
|
86
86
|
type: 'object',
|
|
87
87
|
description: ( localize(
|
|
88
|
-
|
|
88
|
+
2486,
|
|
89
89
|
'A icon to use as file icon, if no icon theme provides one for the language.'
|
|
90
90
|
)),
|
|
91
91
|
properties: {
|
|
92
92
|
light: {
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(2487, 'Icon path when a light theme is used')),
|
|
94
94
|
type: 'string'
|
|
95
95
|
},
|
|
96
96
|
dark: {
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(2488, 'Icon path when a dark theme is used')),
|
|
98
98
|
type: 'string'
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -168,11 +168,11 @@ class LanguageTableRenderer extends Disposable {
|
|
|
168
168
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
169
169
|
}
|
|
170
170
|
const headers = [
|
|
171
|
-
( localize(
|
|
172
|
-
( localize(
|
|
173
|
-
( localize(
|
|
174
|
-
( localize(
|
|
175
|
-
( localize(
|
|
171
|
+
( localize(2489, "ID")),
|
|
172
|
+
( localize(2490, "Name")),
|
|
173
|
+
( localize(2491, "File Extensions")),
|
|
174
|
+
( localize(2492, "Grammar")),
|
|
175
|
+
( localize(2493, "Snippets"))
|
|
176
176
|
];
|
|
177
177
|
const rows = ( (languages.sort((a, b) => a.id.localeCompare(b.id))
|
|
178
178
|
.map(l => {
|
|
@@ -194,7 +194,7 @@ class LanguageTableRenderer extends Disposable {
|
|
|
194
194
|
}
|
|
195
195
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
196
196
|
id: 'languages',
|
|
197
|
-
label: ( localize(
|
|
197
|
+
label: ( localize(2494, "Programming Languages")),
|
|
198
198
|
access: {
|
|
199
199
|
canToggle: false
|
|
200
200
|
},
|
|
@@ -212,7 +212,7 @@ let WorkbenchLanguageService = class WorkbenchLanguageService extends LanguageSe
|
|
|
212
212
|
const extension = extensions[i];
|
|
213
213
|
if (!Array.isArray(extension.value)) {
|
|
214
214
|
extension.collector.error(( localize(
|
|
215
|
-
|
|
215
|
+
2495,
|
|
216
216
|
"Invalid `contributes.{0}`. Expected an array.",
|
|
217
217
|
languagesExtPoint.name
|
|
218
218
|
)));
|
|
@@ -292,16 +292,16 @@ function isUndefinedOrStringArray(value) {
|
|
|
292
292
|
}
|
|
293
293
|
function isValidLanguageExtensionPoint(value, collector) {
|
|
294
294
|
if (!value) {
|
|
295
|
-
collector?.error(( localize(
|
|
295
|
+
collector?.error(( localize(2496, "Empty value for `contributes.{0}`", languagesExtPoint.name)));
|
|
296
296
|
return false;
|
|
297
297
|
}
|
|
298
298
|
if (typeof value.id !== 'string') {
|
|
299
|
-
collector?.error(( localize(
|
|
299
|
+
collector?.error(( localize(2497, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
300
300
|
return false;
|
|
301
301
|
}
|
|
302
302
|
if (!isUndefinedOrStringArray(value.extensions)) {
|
|
303
303
|
collector?.error(( localize(
|
|
304
|
-
|
|
304
|
+
2498,
|
|
305
305
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
306
306
|
'extensions'
|
|
307
307
|
)));
|
|
@@ -309,7 +309,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
309
309
|
}
|
|
310
310
|
if (!isUndefinedOrStringArray(value.filenames)) {
|
|
311
311
|
collector?.error(( localize(
|
|
312
|
-
|
|
312
|
+
2499,
|
|
313
313
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
314
314
|
'filenames'
|
|
315
315
|
)));
|
|
@@ -317,7 +317,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
317
317
|
}
|
|
318
318
|
if (typeof value.firstLine !== 'undefined' && typeof value.firstLine !== 'string') {
|
|
319
319
|
collector?.error(( localize(
|
|
320
|
-
|
|
320
|
+
2500,
|
|
321
321
|
"property `{0}` can be omitted and must be of type `string`",
|
|
322
322
|
'firstLine'
|
|
323
323
|
)));
|
|
@@ -325,7 +325,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
325
325
|
}
|
|
326
326
|
if (typeof value.configuration !== 'undefined' && typeof value.configuration !== 'string') {
|
|
327
327
|
collector?.error(( localize(
|
|
328
|
-
|
|
328
|
+
2501,
|
|
329
329
|
"property `{0}` can be omitted and must be of type `string`",
|
|
330
330
|
'configuration'
|
|
331
331
|
)));
|
|
@@ -333,7 +333,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
333
333
|
}
|
|
334
334
|
if (!isUndefinedOrStringArray(value.aliases)) {
|
|
335
335
|
collector?.error(( localize(
|
|
336
|
-
|
|
336
|
+
2502,
|
|
337
337
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
338
338
|
'aliases'
|
|
339
339
|
)));
|
|
@@ -341,7 +341,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
341
341
|
}
|
|
342
342
|
if (!isUndefinedOrStringArray(value.mimetypes)) {
|
|
343
343
|
collector?.error(( localize(
|
|
344
|
-
|
|
344
|
+
2503,
|
|
345
345
|
"property `{0}` can be omitted and must be of type `string[]`",
|
|
346
346
|
'mimetypes'
|
|
347
347
|
)));
|
|
@@ -350,7 +350,7 @@ function isValidLanguageExtensionPoint(value, collector) {
|
|
|
350
350
|
if (typeof value.icon !== 'undefined') {
|
|
351
351
|
if (typeof value.icon !== 'object' || typeof value.icon.light !== 'string' || typeof value.icon.dark !== 'string') {
|
|
352
352
|
collector?.error(( localize(
|
|
353
|
-
|
|
353
|
+
2504,
|
|
354
354
|
"property `{0}` can be omitted and must be of type `object` with properties `{1}` and `{2}` of type `string`",
|
|
355
355
|
'icon',
|
|
356
356
|
'light',
|
|
@@ -33,7 +33,7 @@ import { IProgressService } from '../../../../platform/progress/common/progress.
|
|
|
33
33
|
var TextFileEditorModel_1;
|
|
34
34
|
let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel {
|
|
35
35
|
static { TextFileEditorModel_1 = this; }
|
|
36
|
-
static { this.TEXTFILE_SAVE_ENCODING_SOURCE = SaveSourceRegistry.registerSource('textFileEncoding.source', ( localize(
|
|
36
|
+
static { this.TEXTFILE_SAVE_ENCODING_SOURCE = SaveSourceRegistry.registerSource('textFileEncoding.source', ( localize(5711, "File Encoding Changed"))); }
|
|
37
37
|
static { this.UNDO_REDO_SAVE_PARTICIPANTS_AUTO_SAVE_THROTTLE_THRESHOLD = 500; }
|
|
38
38
|
constructor(resource, preferredEncoding,
|
|
39
39
|
preferredLanguageId, languageService, modelService, fileService, textFileService, workingCopyBackupService, logService, workingCopyService, filesConfigurationService, labelService, languageDetectionService, accessibilityService, pathService, extensionService, progressService) {
|
|
@@ -502,7 +502,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
|
|
|
502
502
|
}
|
|
503
503
|
const saveCancellation = ( (new CancellationTokenSource()));
|
|
504
504
|
return this.progressService.withProgress({
|
|
505
|
-
title: ( localize(
|
|
505
|
+
title: ( localize(5712, "Saving '{0}'", this.name)),
|
|
506
506
|
location: ProgressLocation.Window,
|
|
507
507
|
cancellable: true,
|
|
508
508
|
delay: this.isDirty() ? 3000 : 5000
|
|
@@ -552,7 +552,7 @@ let TextFileEditorModel = class TextFileEditorModel extends BaseTextEditorModel
|
|
|
552
552
|
}
|
|
553
553
|
versionId = this.versionId;
|
|
554
554
|
this.inErrorMode = false;
|
|
555
|
-
progress.report({ message: ( localize(
|
|
555
|
+
progress.report({ message: ( localize(5713, "Writing into file...")) });
|
|
556
556
|
this.trace(`doSave(${versionId}) - before write()`);
|
|
557
557
|
const lastResolvedFileStat = assertIsDefined(this.lastResolvedFileStat);
|
|
558
558
|
const resolvedTextFileEditorModel = this;
|