@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
|
@@ -183,9 +183,9 @@ let BackLayerWebView = class BackLayerWebView extends Themable {
|
|
|
183
183
|
'notebook-cell-output-line-height': `${this.options.outputLineHeight}px`,
|
|
184
184
|
'notebook-cell-output-max-height': `${this.options.outputLineHeight * this.options.outputLineLimit + 2}px`,
|
|
185
185
|
'notebook-cell-output-font-family': this.options.outputFontFamily || this.options.fontFamily,
|
|
186
|
-
'notebook-cell-markup-empty-content': ( localize(
|
|
187
|
-
'notebook-cell-renderer-not-found-error': ( localize(
|
|
188
|
-
'notebook-cell-renderer-fallbacks-exhausted': ( localize(
|
|
186
|
+
'notebook-cell-markup-empty-content': ( localize(10669, "Empty markdown cell, double-click or press enter to edit.")),
|
|
187
|
+
'notebook-cell-renderer-not-found-error': ( localize(10670, "No renderer found for '$0'")),
|
|
188
|
+
'notebook-cell-renderer-fallbacks-exhausted': ( localize(10671, "Could not render content for '$0'")),
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
generateContent(baseUrl) {
|
|
@@ -985,7 +985,7 @@ let BackLayerWebView = class BackLayerWebView extends Themable {
|
|
|
985
985
|
this.localResourceRootsCache = this._getResourceRootsCache();
|
|
986
986
|
const webview = webviewService.createWebviewElement({
|
|
987
987
|
origin: BackLayerWebView_1.getOriginStore(this.storageService).getOrigin(this.notebookViewType, undefined),
|
|
988
|
-
title: ( localize(
|
|
988
|
+
title: ( localize(10672, "Notebook webview content")),
|
|
989
989
|
options: {
|
|
990
990
|
purpose: WebviewContentPurpose.NotebookRenderer,
|
|
991
991
|
enableFindWidget: false,
|
|
@@ -228,7 +228,7 @@ let CodeCellRenderer = class CodeCellRenderer extends AbstractCellRenderer {
|
|
|
228
228
|
const cellInputCollapsedContainer = append(cellContainer, $('.input-collapse-container'));
|
|
229
229
|
cellInputCollapsedContainer.style.display = 'none';
|
|
230
230
|
const executionOrderLabel = append(focusIndicatorLeft.domNode, $('div.execution-count-label'));
|
|
231
|
-
executionOrderLabel.title = ( localize(
|
|
231
|
+
executionOrderLabel.title = ( localize(10673, 'Execution Order'));
|
|
232
232
|
const editorPart = append(cellContainer, $('.cell-editor-part'));
|
|
233
233
|
const editorContainer = append(editorPart, $('.cell-editor-container'));
|
|
234
234
|
const cellCommentPartContainer = append(container, $('.cell-comment-container'));
|
|
@@ -30,7 +30,7 @@ let SwitchQuickDiffViewItem = class SwitchQuickDiffViewItem extends SelectAction
|
|
|
30
30
|
const peekTitleColor = theme.getColor(peekViewTitleBackground);
|
|
31
31
|
const opaqueTitleColor = peekTitleColor?.makeOpaque(editorBackgroundColor) ?? editorBackgroundColor;
|
|
32
32
|
styles.selectBackground = ( (( (opaqueTitleColor.lighten(.6))).toString()));
|
|
33
|
-
super(null, action, items, startingSelection, contextViewService, styles, { ariaLabel: ( localize(
|
|
33
|
+
super(null, action, items, startingSelection, contextViewService, styles, { ariaLabel: ( localize(10515, 'Switch quick diff base')) });
|
|
34
34
|
this.optionsItems = items;
|
|
35
35
|
}
|
|
36
36
|
setSelection(provider) {
|
|
@@ -51,7 +51,7 @@ SwitchQuickDiffViewItem = ( (__decorate([
|
|
|
51
51
|
], SwitchQuickDiffViewItem)));
|
|
52
52
|
class SwitchQuickDiffBaseAction extends Action {
|
|
53
53
|
static { this.ID = 'quickDiff.base.switch'; }
|
|
54
|
-
static { this.LABEL = ( localize(
|
|
54
|
+
static { this.LABEL = ( localize(10516, "Switch Quick Diff Base")); }
|
|
55
55
|
constructor(callback) {
|
|
56
56
|
super(SwitchQuickDiffBaseAction.ID, SwitchQuickDiffBaseAction.LABEL, undefined, undefined);
|
|
57
57
|
this.callback = callback;
|
|
@@ -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
|
+
6618,
|
|
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
|
+
6619,
|
|
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(6620, "{0} of {1} changes", providerIndex + 1, providerChanges.length))
|
|
258
|
+
: ( localize(6621, "{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(6622, "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(6623, "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(6624, "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(6625, "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(6626, "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(6627, "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(6628, "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(6629, "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(6630, "Editor gutter background color for lines that are added.")));
|
|
851
|
+
const editorGutterDeletedBackground = registerColor('editorGutter.deletedBackground', editorErrorForeground, ( localize(6631, "Editor gutter background color for lines that are deleted.")));
|
|
852
|
+
const minimapGutterModifiedBackground = registerColor('minimapGutter.modifiedBackground', editorGutterModifiedBackground, ( localize(6632, "Minimap gutter background color for lines that are modified.")));
|
|
853
|
+
const minimapGutterAddedBackground = registerColor('minimapGutter.addedBackground', editorGutterAddedBackground, ( localize(6633, "Minimap gutter background color for lines that are added.")));
|
|
854
|
+
const minimapGutterDeletedBackground = registerColor('minimapGutter.deletedBackground', editorGutterDeletedBackground, ( localize(6634, "Minimap gutter background color for lines that are deleted.")));
|
|
855
|
+
const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground', ( (transparent(editorGutterModifiedBackground, 0.6))), ( localize(6635, 'Overview ruler marker color for modified content.')));
|
|
856
|
+
const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground', ( (transparent(editorGutterAddedBackground, 0.6))), ( localize(6636, 'Overview ruler marker color for added content.')));
|
|
857
|
+
const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground', ( (transparent(editorGutterDeletedBackground, 0.6))), ( localize(6637, '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(6638, '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(6639, '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(6640, '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(10531, "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(6767, "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(6768, '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(6748, "{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
|
+
6749,
|
|
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(6749, "{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(6745, "Workspace Snippet"));
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
217
|
if (this.isGlobalSnippets) {
|
|
218
|
-
source = ( localize(
|
|
218
|
+
source = ( localize(6746, "Global User Snippet"));
|
|
219
219
|
}
|
|
220
220
|
else {
|
|
221
|
-
source = ( localize(
|
|
221
|
+
source = ( localize(6747, "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
|
+
2991,
|
|
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
|
+
2992,
|
|
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
|
+
2993,
|
|
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
|
+
2994,
|
|
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(2995, '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(2996, 'Language identifier for which this snippet is contributed to.')),
|
|
88
88
|
type: 'string'
|
|
89
89
|
},
|
|
90
90
|
path: {
|
|
91
91
|
description: ( localize(
|
|
92
|
-
|
|
92
|
+
2997,
|
|
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
|
+
2998,
|
|
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
|
+
2999,
|
|
349
349
|
"The snippet file \"{0}\" could not be read.",
|
|
350
350
|
(file.location.toString())
|
|
351
351
|
)));
|
|
@@ -11,7 +11,7 @@ const taskDefinitionSchema = {
|
|
|
11
11
|
type: {
|
|
12
12
|
type: 'string',
|
|
13
13
|
description: ( localize(
|
|
14
|
-
|
|
14
|
+
6587,
|
|
15
15
|
'The actual task type. Please note that types starting with a \'$\' are reserved for internal usage.'
|
|
16
16
|
))
|
|
17
17
|
},
|
|
@@ -23,7 +23,7 @@ const taskDefinitionSchema = {
|
|
|
23
23
|
},
|
|
24
24
|
properties: {
|
|
25
25
|
type: 'object',
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(6588, 'Additional properties of the task type')),
|
|
27
27
|
additionalProperties: {
|
|
28
28
|
$ref: 'http://json-schema.org/draft-07/schema#'
|
|
29
29
|
}
|
|
@@ -31,7 +31,7 @@ const taskDefinitionSchema = {
|
|
|
31
31
|
when: {
|
|
32
32
|
type: 'string',
|
|
33
33
|
markdownDescription: ( localize(
|
|
34
|
-
|
|
34
|
+
6589,
|
|
35
35
|
'Condition which must be true to enable this type of task. Consider using `shellExecutionSupported`, `processExecutionSupported`, and `customExecutionSupported` as appropriate for this task definition. See the [API documentation](https://code.visualstudio.com/api/extension-guides/task-provider#when-clause) for more information.'
|
|
36
36
|
)),
|
|
37
37
|
default: ''
|
|
@@ -47,7 +47,7 @@ var Configuration;
|
|
|
47
47
|
const taskType = isString(value.type) ? value.type : undefined;
|
|
48
48
|
if (!taskType || taskType.length === 0) {
|
|
49
49
|
messageCollector.error(( localize(
|
|
50
|
-
|
|
50
|
+
6590,
|
|
51
51
|
'The task type configuration is missing the required \'taskType\' property'
|
|
52
52
|
)));
|
|
53
53
|
return undefined;
|
|
@@ -79,7 +79,7 @@ const taskDefinitionsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
jsonSchema: {
|
|
82
|
-
description: ( localize(
|
|
82
|
+
description: ( localize(6591, 'Contributes task kinds')),
|
|
83
83
|
type: 'array',
|
|
84
84
|
items: taskDefinitionSchema
|
|
85
85
|
}
|
|
@@ -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
|
+
6494,
|
|
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
|
+
6495,
|
|
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(6496, "Whether the task commands have been registered yet")))));
|
|
12
12
|
const ProcessExecutionSupportedContext = ( (new RawContextKey('processExecutionSupported', false, ( localize(
|
|
13
|
-
|
|
13
|
+
6497,
|
|
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(6498, "True when in the web with no remote authority.")))));
|
|
17
17
|
const TaskExecutionSupportedContext = ( (ContextKeyExpr.or(
|
|
18
18
|
(ContextKeyExpr.and(ShellExecutionSupportedContext, ProcessExecutionSupportedContext)),
|
|
19
19
|
CustomExecutionSupportedContext
|
|
@@ -73,11 +73,11 @@ let TerminalEditorInput = class TerminalEditorInput extends EditorInput {
|
|
|
73
73
|
async confirm(terminals) {
|
|
74
74
|
const { confirmed } = await this._dialogService.confirm({
|
|
75
75
|
type: Severity$1.Warning,
|
|
76
|
-
message: ( localize(
|
|
77
|
-
primaryButton: ( localize(
|
|
76
|
+
message: ( localize(8856, "Do you want to terminate running processes?")),
|
|
77
|
+
primaryButton: ( localize(8857, "&&Terminate")),
|
|
78
78
|
detail: terminals.length > 1 ?
|
|
79
|
-
( (terminals.map(terminal => terminal.editor.getName()))).join('\n') + '\n\n' + ( localize(
|
|
80
|
-
( localize(
|
|
79
|
+
( (terminals.map(terminal => terminal.editor.getName()))).join('\n') + '\n\n' + ( localize(8858, "Closing will terminate the running processes in the terminals.")) :
|
|
80
|
+
( localize(8859, "Closing will terminate the running processes in this terminal."))
|
|
81
81
|
});
|
|
82
82
|
return confirmed ? ConfirmResult.DONT_SAVE : ConfirmResult.CANCEL;
|
|
83
83
|
}
|