@codingame/monaco-vscode-api 8.0.1 → 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/api.js +1 -1
- package/extensions.d.ts +24 -0
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/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/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 +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- 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/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.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/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- 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/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- 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/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- 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/editorPlaceholder.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- 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/viewFilter.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/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +7 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.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/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- 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/extensions/browser/extensionsActions.js +166 -166
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.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/notebookAccessibilityProvider.js +3 -3
- 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/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/preferences/browser/preferencesIcons.js +12 -12
- 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/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/terminal/browser/terminalMenus.js +32 -32
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- 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/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -25,7 +25,7 @@ class MoveCaretLeftAction extends MoveCaretAction {
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super(true, {
|
|
27
27
|
id: 'editor.action.moveCarretLeftAction',
|
|
28
|
-
label: ( localize(
|
|
28
|
+
label: ( localize(1179, "Move Selected Text Left")),
|
|
29
29
|
alias: 'Move Selected Text Left',
|
|
30
30
|
precondition: EditorContextKeys.writable
|
|
31
31
|
});
|
|
@@ -35,7 +35,7 @@ class MoveCaretRightAction extends MoveCaretAction {
|
|
|
35
35
|
constructor() {
|
|
36
36
|
super(false, {
|
|
37
37
|
id: 'editor.action.moveCarretRightAction',
|
|
38
|
-
label: ( localize(
|
|
38
|
+
label: ( localize(1180, "Move Selected Text Right")),
|
|
39
39
|
alias: 'Move Selected Text Right',
|
|
40
40
|
precondition: EditorContextKeys.writable
|
|
41
41
|
});
|
|
@@ -10,7 +10,7 @@ import { registerSingleton, InstantiationType } from '../../../../platform/insta
|
|
|
10
10
|
import { localize } from '../../../../nls.js';
|
|
11
11
|
const IEditorCancellationTokens = ( (createDecorator('IEditorCancelService')));
|
|
12
12
|
const ctxCancellableOperation = ( (new RawContextKey('cancellableOperation', false, ( localize(
|
|
13
|
-
|
|
13
|
+
9366,
|
|
14
14
|
'Whether the editor runs a cancellable operation, e.g. like \'Peek References\''
|
|
15
15
|
)))));
|
|
16
16
|
registerSingleton(IEditorCancellationTokens, class {
|
|
@@ -306,7 +306,7 @@ let CommonFindController = class CommonFindController extends Disposable {
|
|
|
306
306
|
replaceAll() {
|
|
307
307
|
if (this._model) {
|
|
308
308
|
if (this._editor.getModel()?.isTooLargeForHeapOperation()) {
|
|
309
|
-
this._notificationService.warn(( localize(
|
|
309
|
+
this._notificationService.warn(( localize(1230, "The file is too large to perform a replace all operation.")));
|
|
310
310
|
return false;
|
|
311
311
|
}
|
|
312
312
|
this._model.replaceAll();
|
|
@@ -429,7 +429,7 @@ FindController = ( (__decorate([
|
|
|
429
429
|
], FindController)));
|
|
430
430
|
const StartFindAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
431
431
|
id: FIND_IDS.StartFindAction,
|
|
432
|
-
label: ( localize(
|
|
432
|
+
label: ( localize(1231, "Find")),
|
|
433
433
|
alias: 'Find',
|
|
434
434
|
precondition: ( (ContextKeyExpr.or(
|
|
435
435
|
EditorContextKeys.focus,
|
|
@@ -443,7 +443,7 @@ const StartFindAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
|
443
443
|
menuOpts: {
|
|
444
444
|
menuId: MenuId.MenubarEditMenu,
|
|
445
445
|
group: '3_find',
|
|
446
|
-
title: ( localize(
|
|
446
|
+
title: ( localize(1232, "&&Find")),
|
|
447
447
|
order: 1
|
|
448
448
|
}
|
|
449
449
|
}))));
|
|
@@ -484,7 +484,7 @@ class StartFindWithArgsAction extends EditorAction {
|
|
|
484
484
|
constructor() {
|
|
485
485
|
super({
|
|
486
486
|
id: FIND_IDS.StartFindWithArgs,
|
|
487
|
-
label: ( localize(
|
|
487
|
+
label: ( localize(1233, "Find With Arguments")),
|
|
488
488
|
alias: 'Find With Arguments',
|
|
489
489
|
precondition: undefined,
|
|
490
490
|
kbOpts: {
|
|
@@ -525,7 +525,7 @@ class StartFindWithSelectionAction extends EditorAction {
|
|
|
525
525
|
constructor() {
|
|
526
526
|
super({
|
|
527
527
|
id: FIND_IDS.StartFindWithSelection,
|
|
528
|
-
label: ( localize(
|
|
528
|
+
label: ( localize(1234, "Find With Selection")),
|
|
529
529
|
alias: 'Find With Selection',
|
|
530
530
|
precondition: undefined,
|
|
531
531
|
kbOpts: {
|
|
@@ -577,7 +577,7 @@ class NextMatchFindAction extends MatchFindAction {
|
|
|
577
577
|
constructor() {
|
|
578
578
|
super({
|
|
579
579
|
id: FIND_IDS.NextMatchFindAction,
|
|
580
|
-
label: ( localize(
|
|
580
|
+
label: ( localize(1235, "Find Next")),
|
|
581
581
|
alias: 'Find Next',
|
|
582
582
|
precondition: undefined,
|
|
583
583
|
kbOpts: [{
|
|
@@ -605,7 +605,7 @@ class PreviousMatchFindAction extends MatchFindAction {
|
|
|
605
605
|
constructor() {
|
|
606
606
|
super({
|
|
607
607
|
id: FIND_IDS.PreviousMatchFindAction,
|
|
608
|
-
label: ( localize(
|
|
608
|
+
label: ( localize(1236, "Find Previous")),
|
|
609
609
|
alias: 'Find Previous',
|
|
610
610
|
precondition: undefined,
|
|
611
611
|
kbOpts: [{
|
|
@@ -629,7 +629,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
629
629
|
constructor() {
|
|
630
630
|
super({
|
|
631
631
|
id: FIND_IDS.GoToMatchFindAction,
|
|
632
|
-
label: ( localize(
|
|
632
|
+
label: ( localize(1237, "Go to Match...")),
|
|
633
633
|
alias: 'Go to Match...',
|
|
634
634
|
precondition: CONTEXT_FIND_WIDGET_VISIBLE
|
|
635
635
|
});
|
|
@@ -645,14 +645,14 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
645
645
|
const notificationService = accessor.get(INotificationService);
|
|
646
646
|
notificationService.notify({
|
|
647
647
|
severity: Severity$1.Warning,
|
|
648
|
-
message: ( localize(
|
|
648
|
+
message: ( localize(1238, "No matches. Try searching for something else."))
|
|
649
649
|
});
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
652
652
|
const quickInputService = accessor.get(IQuickInputService);
|
|
653
653
|
const inputBox = quickInputService.createInputBox();
|
|
654
654
|
inputBox.placeholder = ( localize(
|
|
655
|
-
|
|
655
|
+
1239,
|
|
656
656
|
"Type a number to go to a specific match (between 1 and {0})",
|
|
657
657
|
matchesCount
|
|
658
658
|
));
|
|
@@ -682,7 +682,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
682
682
|
}
|
|
683
683
|
else {
|
|
684
684
|
inputBox.validationMessage = ( localize(
|
|
685
|
-
|
|
685
|
+
1240,
|
|
686
686
|
"Please type a number between 1 and {0}",
|
|
687
687
|
controller.getState().matchesCount
|
|
688
688
|
));
|
|
@@ -700,7 +700,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
700
700
|
}
|
|
701
701
|
else {
|
|
702
702
|
inputBox.validationMessage = ( localize(
|
|
703
|
-
|
|
703
|
+
1240,
|
|
704
704
|
"Please type a number between 1 and {0}",
|
|
705
705
|
controller.getState().matchesCount
|
|
706
706
|
));
|
|
@@ -771,7 +771,7 @@ class NextSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
771
771
|
constructor() {
|
|
772
772
|
super({
|
|
773
773
|
id: FIND_IDS.NextSelectionMatchFindAction,
|
|
774
|
-
label: ( localize(
|
|
774
|
+
label: ( localize(1241, "Find Next Selection")),
|
|
775
775
|
alias: 'Find Next Selection',
|
|
776
776
|
precondition: undefined,
|
|
777
777
|
kbOpts: {
|
|
@@ -789,7 +789,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
789
789
|
constructor() {
|
|
790
790
|
super({
|
|
791
791
|
id: FIND_IDS.PreviousSelectionMatchFindAction,
|
|
792
|
-
label: ( localize(
|
|
792
|
+
label: ( localize(1242, "Find Previous Selection")),
|
|
793
793
|
alias: 'Find Previous Selection',
|
|
794
794
|
precondition: undefined,
|
|
795
795
|
kbOpts: {
|
|
@@ -805,7 +805,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
805
805
|
}
|
|
806
806
|
const StartFindReplaceAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
807
807
|
id: FIND_IDS.StartFindReplaceAction,
|
|
808
|
-
label: ( localize(
|
|
808
|
+
label: ( localize(1243, "Replace")),
|
|
809
809
|
alias: 'Replace',
|
|
810
810
|
precondition: ( (ContextKeyExpr.or(
|
|
811
811
|
EditorContextKeys.focus,
|
|
@@ -820,7 +820,7 @@ const StartFindReplaceAction = registerMultiEditorAction(( (new MultiEditorActio
|
|
|
820
820
|
menuOpts: {
|
|
821
821
|
menuId: MenuId.MenubarEditMenu,
|
|
822
822
|
group: '3_find',
|
|
823
|
-
title: ( localize(
|
|
823
|
+
title: ( localize(1244, "&&Replace")),
|
|
824
824
|
order: 2
|
|
825
825
|
}
|
|
826
826
|
}))));
|
|
@@ -5,7 +5,7 @@ class EditorFontZoomIn extends EditorAction {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
super({
|
|
7
7
|
id: 'editor.action.fontZoomIn',
|
|
8
|
-
label: ( localize(
|
|
8
|
+
label: ( localize(1227, "Increase Editor Font Size")),
|
|
9
9
|
alias: 'Increase Editor Font Size',
|
|
10
10
|
precondition: undefined
|
|
11
11
|
});
|
|
@@ -18,7 +18,7 @@ class EditorFontZoomOut extends EditorAction {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'editor.action.fontZoomOut',
|
|
21
|
-
label: ( localize(
|
|
21
|
+
label: ( localize(1228, "Decrease Editor Font Size")),
|
|
22
22
|
alias: 'Decrease Editor Font Size',
|
|
23
23
|
precondition: undefined
|
|
24
24
|
});
|
|
@@ -31,7 +31,7 @@ class EditorFontZoomReset extends EditorAction {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
super({
|
|
33
33
|
id: 'editor.action.fontZoomReset',
|
|
34
|
-
label: ( localize(
|
|
34
|
+
label: ( localize(1229, "Reset Editor Font Size")),
|
|
35
35
|
alias: 'Reset Editor Font Size',
|
|
36
36
|
precondition: undefined
|
|
37
37
|
});
|
|
@@ -245,7 +245,7 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
245
245
|
};
|
|
246
246
|
this._preview = this._instantiationService.createInstance(EmbeddedCodeEditorWidget, this._previewContainer, options, {}, this.editor);
|
|
247
247
|
hide(this._previewContainer);
|
|
248
|
-
this._previewNotAvailableMessage = ( (new TextModel(( localize(
|
|
248
|
+
this._previewNotAvailableMessage = ( (new TextModel(( localize(9794, "no preview available")), PLAINTEXT_LANGUAGE_ID, TextModel.DEFAULT_CREATION_OPTIONS, null, this._undoRedoService, this._languageService, this._languageConfigurationService)));
|
|
249
249
|
this._treeContainer = append(containerElement, $('div.ref-tree.inline'));
|
|
250
250
|
const treeOptions = {
|
|
251
251
|
keyboardSupport: this._defaultTreeKeyboardSupport,
|
|
@@ -351,7 +351,7 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
351
351
|
}
|
|
352
352
|
if (this._model.isEmpty) {
|
|
353
353
|
this.setTitle('');
|
|
354
|
-
this._messageContainer.innerText = ( localize(
|
|
354
|
+
this._messageContainer.innerText = ( localize(9795, "No results"));
|
|
355
355
|
show(this._messageContainer);
|
|
356
356
|
return Promise.resolve(undefined);
|
|
357
357
|
}
|
|
@@ -406,7 +406,7 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
406
406
|
this.setTitle(basenameOrAuthority(reference.uri), this._uriLabel.getUriLabel(dirname(reference.uri)));
|
|
407
407
|
}
|
|
408
408
|
else {
|
|
409
|
-
this.setTitle(( localize(
|
|
409
|
+
this.setTitle(( localize(9796, "References")));
|
|
410
410
|
}
|
|
411
411
|
const promise = this._textModelResolverService.createModelReference(reference.uri);
|
|
412
412
|
if (this._tree.getInput() === reference.parent) {
|
|
@@ -25,7 +25,7 @@ class ShowNextInlineEditAction extends EditorAction {
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super({
|
|
27
27
|
id: ShowNextInlineEditAction.ID,
|
|
28
|
-
...labelAndAlias(( localize2(
|
|
28
|
+
...labelAndAlias(( localize2(5174, "Show Next Inline Edit"))),
|
|
29
29
|
precondition: ( (ContextKeyExpr.and(EditorContextKeys.writable, inlineEditVisible))),
|
|
30
30
|
kbOpts: {
|
|
31
31
|
weight: 100,
|
|
@@ -43,7 +43,7 @@ class ShowPreviousInlineEditAction extends EditorAction {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: ShowPreviousInlineEditAction.ID,
|
|
46
|
-
...labelAndAlias(( localize2(
|
|
46
|
+
...labelAndAlias(( localize2(5175, "Show Previous Inline Edit"))),
|
|
47
47
|
precondition: ( (ContextKeyExpr.and(EditorContextKeys.writable, inlineEditVisible))),
|
|
48
48
|
kbOpts: {
|
|
49
49
|
weight: 100,
|
|
@@ -60,7 +60,7 @@ class TriggerInlineEditAction extends EditorAction {
|
|
|
60
60
|
constructor() {
|
|
61
61
|
super({
|
|
62
62
|
id: 'editor.action.inlineEdits.trigger',
|
|
63
|
-
...labelAndAlias(( localize2(
|
|
63
|
+
...labelAndAlias(( localize2(5176, "Trigger Inline Edit"))),
|
|
64
64
|
precondition: EditorContextKeys.writable
|
|
65
65
|
});
|
|
66
66
|
}
|
|
@@ -75,11 +75,11 @@ class AcceptInlineEdit extends EditorAction {
|
|
|
75
75
|
constructor() {
|
|
76
76
|
super({
|
|
77
77
|
id: inlineEditAcceptId,
|
|
78
|
-
...labelAndAlias(( localize2(
|
|
78
|
+
...labelAndAlias(( localize2(5177, "Accept Inline Edit"))),
|
|
79
79
|
precondition: inlineEditVisible,
|
|
80
80
|
menuOpts: {
|
|
81
81
|
menuId: MenuId.InlineEditsActions,
|
|
82
|
-
title: ( localize(
|
|
82
|
+
title: ( localize(5178, "Accept Inline Edit")),
|
|
83
83
|
group: 'primary',
|
|
84
84
|
order: 1,
|
|
85
85
|
icon: Codicon.check,
|
|
@@ -107,7 +107,7 @@ class HideInlineEdit extends EditorAction {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: HideInlineEdit.ID,
|
|
110
|
-
...labelAndAlias(( localize2(
|
|
110
|
+
...labelAndAlias(( localize2(5179, "Hide Inline Edit"))),
|
|
111
111
|
precondition: inlineEditVisible,
|
|
112
112
|
kbOpts: {
|
|
113
113
|
weight: 100,
|
|
@@ -28,7 +28,7 @@ function announceCursorChange(previousCursorState, cursorState) {
|
|
|
28
28
|
const cursorPositions = ( (cursorDiff.map(
|
|
29
29
|
cs => `line ${cs.viewState.position.lineNumber} column ${cs.viewState.position.column}`
|
|
30
30
|
))).join(', ');
|
|
31
|
-
const msg = cursorDiff.length === 1 ? ( localize(
|
|
31
|
+
const msg = cursorDiff.length === 1 ? ( localize(1357, "Cursor added: {0}", cursorPositions)) : ( localize(1358, "Cursors added: {0}", cursorPositions));
|
|
32
32
|
status(msg);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -36,7 +36,7 @@ class InsertCursorAbove extends EditorAction {
|
|
|
36
36
|
constructor() {
|
|
37
37
|
super({
|
|
38
38
|
id: 'editor.action.insertCursorAbove',
|
|
39
|
-
label: ( localize(
|
|
39
|
+
label: ( localize(1359, "Add Cursor Above")),
|
|
40
40
|
alias: 'Add Cursor Above',
|
|
41
41
|
precondition: undefined,
|
|
42
42
|
kbOpts: {
|
|
@@ -51,7 +51,7 @@ class InsertCursorAbove extends EditorAction {
|
|
|
51
51
|
menuOpts: {
|
|
52
52
|
menuId: MenuId.MenubarSelectionMenu,
|
|
53
53
|
group: '3_multi',
|
|
54
|
-
title: ( localize(
|
|
54
|
+
title: ( localize(1360, "&&Add Cursor Above")),
|
|
55
55
|
order: 2
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -79,7 +79,7 @@ class InsertCursorBelow extends EditorAction {
|
|
|
79
79
|
constructor() {
|
|
80
80
|
super({
|
|
81
81
|
id: 'editor.action.insertCursorBelow',
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(1361, "Add Cursor Below")),
|
|
83
83
|
alias: 'Add Cursor Below',
|
|
84
84
|
precondition: undefined,
|
|
85
85
|
kbOpts: {
|
|
@@ -94,7 +94,7 @@ class InsertCursorBelow extends EditorAction {
|
|
|
94
94
|
menuOpts: {
|
|
95
95
|
menuId: MenuId.MenubarSelectionMenu,
|
|
96
96
|
group: '3_multi',
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(1362, "A&&dd Cursor Below")),
|
|
98
98
|
order: 3
|
|
99
99
|
}
|
|
100
100
|
});
|
|
@@ -122,7 +122,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: 'editor.action.insertCursorAtEndOfEachLineSelected',
|
|
125
|
-
label: ( localize(
|
|
125
|
+
label: ( localize(1363, "Add Cursors to Line Ends")),
|
|
126
126
|
alias: 'Add Cursors to Line Ends',
|
|
127
127
|
precondition: undefined,
|
|
128
128
|
kbOpts: {
|
|
@@ -133,7 +133,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
133
133
|
menuOpts: {
|
|
134
134
|
menuId: MenuId.MenubarSelectionMenu,
|
|
135
135
|
group: '3_multi',
|
|
136
|
-
title: ( localize(
|
|
136
|
+
title: ( localize(1364, "Add C&&ursors to Line Ends")),
|
|
137
137
|
order: 4
|
|
138
138
|
}
|
|
139
139
|
});
|
|
@@ -175,7 +175,7 @@ class InsertCursorAtEndOfLineSelected extends EditorAction {
|
|
|
175
175
|
constructor() {
|
|
176
176
|
super({
|
|
177
177
|
id: 'editor.action.addCursorsToBottom',
|
|
178
|
-
label: ( localize(
|
|
178
|
+
label: ( localize(1365, "Add Cursors To Bottom")),
|
|
179
179
|
alias: 'Add Cursors To Bottom',
|
|
180
180
|
precondition: undefined
|
|
181
181
|
});
|
|
@@ -202,7 +202,7 @@ class InsertCursorAtTopOfLineSelected extends EditorAction {
|
|
|
202
202
|
constructor() {
|
|
203
203
|
super({
|
|
204
204
|
id: 'editor.action.addCursorsToTop',
|
|
205
|
-
label: ( localize(
|
|
205
|
+
label: ( localize(1366, "Add Cursors To Top")),
|
|
206
206
|
alias: 'Add Cursors To Top',
|
|
207
207
|
precondition: undefined
|
|
208
208
|
});
|
|
@@ -629,7 +629,7 @@ class AddSelectionToNextFindMatchAction extends MultiCursorSelectionControllerAc
|
|
|
629
629
|
constructor() {
|
|
630
630
|
super({
|
|
631
631
|
id: 'editor.action.addSelectionToNextFindMatch',
|
|
632
|
-
label: ( localize(
|
|
632
|
+
label: ( localize(1367, "Add Selection To Next Find Match")),
|
|
633
633
|
alias: 'Add Selection To Next Find Match',
|
|
634
634
|
precondition: undefined,
|
|
635
635
|
kbOpts: {
|
|
@@ -640,7 +640,7 @@ class AddSelectionToNextFindMatchAction extends MultiCursorSelectionControllerAc
|
|
|
640
640
|
menuOpts: {
|
|
641
641
|
menuId: MenuId.MenubarSelectionMenu,
|
|
642
642
|
group: '3_multi',
|
|
643
|
-
title: ( localize(
|
|
643
|
+
title: ( localize(1368, "Add &&Next Occurrence")),
|
|
644
644
|
order: 5
|
|
645
645
|
}
|
|
646
646
|
});
|
|
@@ -653,13 +653,13 @@ class AddSelectionToPreviousFindMatchAction extends MultiCursorSelectionControll
|
|
|
653
653
|
constructor() {
|
|
654
654
|
super({
|
|
655
655
|
id: 'editor.action.addSelectionToPreviousFindMatch',
|
|
656
|
-
label: ( localize(
|
|
656
|
+
label: ( localize(1369, "Add Selection To Previous Find Match")),
|
|
657
657
|
alias: 'Add Selection To Previous Find Match',
|
|
658
658
|
precondition: undefined,
|
|
659
659
|
menuOpts: {
|
|
660
660
|
menuId: MenuId.MenubarSelectionMenu,
|
|
661
661
|
group: '3_multi',
|
|
662
|
-
title: ( localize(
|
|
662
|
+
title: ( localize(1370, "Add P&&revious Occurrence")),
|
|
663
663
|
order: 6
|
|
664
664
|
}
|
|
665
665
|
});
|
|
@@ -672,7 +672,7 @@ class MoveSelectionToNextFindMatchAction extends MultiCursorSelectionControllerA
|
|
|
672
672
|
constructor() {
|
|
673
673
|
super({
|
|
674
674
|
id: 'editor.action.moveSelectionToNextFindMatch',
|
|
675
|
-
label: ( localize(
|
|
675
|
+
label: ( localize(1371, "Move Last Selection To Next Find Match")),
|
|
676
676
|
alias: 'Move Last Selection To Next Find Match',
|
|
677
677
|
precondition: undefined,
|
|
678
678
|
kbOpts: {
|
|
@@ -690,7 +690,7 @@ class MoveSelectionToPreviousFindMatchAction extends MultiCursorSelectionControl
|
|
|
690
690
|
constructor() {
|
|
691
691
|
super({
|
|
692
692
|
id: 'editor.action.moveSelectionToPreviousFindMatch',
|
|
693
|
-
label: ( localize(
|
|
693
|
+
label: ( localize(1372, "Move Last Selection To Previous Find Match")),
|
|
694
694
|
alias: 'Move Last Selection To Previous Find Match',
|
|
695
695
|
precondition: undefined
|
|
696
696
|
});
|
|
@@ -703,7 +703,7 @@ class SelectHighlightsAction extends MultiCursorSelectionControllerAction {
|
|
|
703
703
|
constructor() {
|
|
704
704
|
super({
|
|
705
705
|
id: 'editor.action.selectHighlights',
|
|
706
|
-
label: ( localize(
|
|
706
|
+
label: ( localize(1373, "Select All Occurrences of Find Match")),
|
|
707
707
|
alias: 'Select All Occurrences of Find Match',
|
|
708
708
|
precondition: undefined,
|
|
709
709
|
kbOpts: {
|
|
@@ -714,7 +714,7 @@ class SelectHighlightsAction extends MultiCursorSelectionControllerAction {
|
|
|
714
714
|
menuOpts: {
|
|
715
715
|
menuId: MenuId.MenubarSelectionMenu,
|
|
716
716
|
group: '3_multi',
|
|
717
|
-
title: ( localize(
|
|
717
|
+
title: ( localize(1374, "Select All &&Occurrences")),
|
|
718
718
|
order: 7
|
|
719
719
|
}
|
|
720
720
|
});
|
|
@@ -727,7 +727,7 @@ class CompatChangeAll extends MultiCursorSelectionControllerAction {
|
|
|
727
727
|
constructor() {
|
|
728
728
|
super({
|
|
729
729
|
id: 'editor.action.changeAll',
|
|
730
|
-
label: ( localize(
|
|
730
|
+
label: ( localize(1375, "Change All Occurrences")),
|
|
731
731
|
alias: 'Change All Occurrences',
|
|
732
732
|
precondition: ( (ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.editorTextFocus))),
|
|
733
733
|
kbOpts: {
|
|
@@ -971,9 +971,9 @@ class FocusNextCursor extends EditorAction {
|
|
|
971
971
|
constructor() {
|
|
972
972
|
super({
|
|
973
973
|
id: 'editor.action.focusNextCursor',
|
|
974
|
-
label: ( localize(
|
|
974
|
+
label: ( localize(1376, "Focus Next Cursor")),
|
|
975
975
|
metadata: {
|
|
976
|
-
description: ( localize(
|
|
976
|
+
description: ( localize(1377, "Focuses the next cursor")),
|
|
977
977
|
args: [],
|
|
978
978
|
},
|
|
979
979
|
alias: 'Focus Next Cursor',
|
|
@@ -1004,9 +1004,9 @@ class FocusPreviousCursor extends EditorAction {
|
|
|
1004
1004
|
constructor() {
|
|
1005
1005
|
super({
|
|
1006
1006
|
id: 'editor.action.focusPreviousCursor',
|
|
1007
|
-
label: ( localize(
|
|
1007
|
+
label: ( localize(1378, "Focus Previous Cursor")),
|
|
1008
1008
|
metadata: {
|
|
1009
|
-
description: ( localize(
|
|
1009
|
+
description: ( localize(1379, "Focuses the previous cursor")),
|
|
1010
1010
|
args: [],
|
|
1011
1011
|
},
|
|
1012
1012
|
alias: 'Focus Previous Cursor',
|
|
@@ -58,7 +58,7 @@ class TriggerParameterHintsAction extends EditorAction {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super({
|
|
60
60
|
id: 'editor.action.triggerParameterHints',
|
|
61
|
-
label: ( localize(
|
|
61
|
+
label: ( localize(1356, "Trigger Parameter Hints")),
|
|
62
62
|
alias: 'Trigger Parameter Hints',
|
|
63
63
|
precondition: EditorContextKeys.hasSignatureHelpProvider,
|
|
64
64
|
kbOpts: {
|
|
@@ -33,8 +33,8 @@ import { StopWatch } from '../../../../base/common/stopwatch.js';
|
|
|
33
33
|
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
34
34
|
var ParameterHintsWidget_1;
|
|
35
35
|
const $ = $$1;
|
|
36
|
-
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, ( localize(
|
|
37
|
-
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, ( localize(
|
|
36
|
+
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, ( localize(5170, 'Icon for show next parameter hint.')));
|
|
37
|
+
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, ( localize(5171, 'Icon for show previous parameter hint.')));
|
|
38
38
|
let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
39
39
|
static { ParameterHintsWidget_1 = this; }
|
|
40
40
|
static { this.ID = 'editor.widget.parameterHintsWidget'; }
|
|
@@ -205,7 +205,7 @@ let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
|
205
205
|
labelToAnnounce += typeof signature.documentation === 'string' ? `, ${signature.documentation}` : `, ${signature.documentation.value}`;
|
|
206
206
|
}
|
|
207
207
|
if (this.announcedLabel !== labelToAnnounce) {
|
|
208
|
-
alert(( localize(
|
|
208
|
+
alert(( localize(5172, "{0}, hint", labelToAnnounce)));
|
|
209
209
|
this.announcedLabel = labelToAnnounce;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -310,5 +310,5 @@ ParameterHintsWidget = ParameterHintsWidget_1 = ( (__decorate([
|
|
|
310
310
|
( (__param(4, ILanguageService))),
|
|
311
311
|
( (__param(5, ITelemetryService)))
|
|
312
312
|
], ParameterHintsWidget)));
|
|
313
|
-
registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, ( localize(
|
|
313
|
+
registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, ( localize(5173, 'Foreground color of the active item in the parameter hint.')));
|
|
314
314
|
export { ParameterHintsWidget };
|
|
@@ -36,7 +36,7 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
36
36
|
this._disposables.add(this._scrollbar);
|
|
37
37
|
this._header = append(this._body, $('.header'));
|
|
38
38
|
this._close = append(this._header, $('span' + ThemeIcon.asCSSSelector(Codicon.close)));
|
|
39
|
-
this._close.title = ( localize(
|
|
39
|
+
this._close.title = ( localize(9947, "Close"));
|
|
40
40
|
this._type = append(this._header, $('p.type'));
|
|
41
41
|
this._docs = append(this._body, $('p.docs'));
|
|
42
42
|
this._configureFont();
|
|
@@ -80,7 +80,7 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
renderLoading() {
|
|
83
|
-
this._type.textContent = ( localize(
|
|
83
|
+
this._type.textContent = ( localize(9948, "Loading..."));
|
|
84
84
|
this._docs.textContent = '';
|
|
85
85
|
this.domNode.classList.remove('no-docs', 'no-type');
|
|
86
86
|
this.layout(this.size.width, this.getLayoutInfo().lineHeight * 2);
|
|
@@ -20,7 +20,7 @@ import { canExpandCompletionItem } from './suggestWidgetDetails.js';
|
|
|
20
20
|
function getAriaId(index) {
|
|
21
21
|
return `suggest-aria-id:${index}`;
|
|
22
22
|
}
|
|
23
|
-
const suggestMoreInfoIcon = registerIcon('suggest-more-info', Codicon.chevronRight, ( localize(
|
|
23
|
+
const suggestMoreInfoIcon = registerIcon('suggest-more-info', Codicon.chevronRight, ( localize(9945, 'Icon for more information in the suggest widget.')));
|
|
24
24
|
const _completionItemColor = new (class ColorExtractor {
|
|
25
25
|
static { this._regexRelaxed = /(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/; }
|
|
26
26
|
static { this._regexStrict = ( (new RegExp(`^${ColorExtractor._regexRelaxed.source}$`, 'i'))); }
|
|
@@ -76,7 +76,7 @@ let ItemRenderer = class ItemRenderer {
|
|
|
76
76
|
const qualifierLabel = append(left, $('span.qualifier-label'));
|
|
77
77
|
const detailsLabel = append(right, $('span.details-label'));
|
|
78
78
|
const readMore = append(right, $('span.readMore' + ThemeIcon.asCSSSelector(suggestMoreInfoIcon)));
|
|
79
|
-
readMore.title = ( localize(
|
|
79
|
+
readMore.title = ( localize(9946, "Read More"));
|
|
80
80
|
const configureFont = () => {
|
|
81
81
|
const options = this._editor.getOptions();
|
|
82
82
|
const fontInfo = options.get(EditorOption.fontInfo);
|
|
@@ -16,36 +16,36 @@ import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
|
16
16
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
17
17
|
import { themeColorFromId, registerThemingParticipant } from '../../../../platform/theme/common/themeService.js';
|
|
18
18
|
const wordHighlightBackground = registerColor('editor.wordHighlightBackground', { dark: '#575757B8', light: '#57575740', hcDark: null, hcLight: null }, ( localize(
|
|
19
|
-
|
|
19
|
+
5180,
|
|
20
20
|
'Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations.'
|
|
21
21
|
)), true);
|
|
22
22
|
registerColor('editor.wordHighlightStrongBackground', { dark: '#004972B8', light: '#0e639c40', hcDark: null, hcLight: null }, ( localize(
|
|
23
|
-
|
|
23
|
+
5181,
|
|
24
24
|
'Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations.'
|
|
25
25
|
)), true);
|
|
26
26
|
registerColor('editor.wordHighlightTextBackground', wordHighlightBackground, ( localize(
|
|
27
|
-
|
|
27
|
+
5182,
|
|
28
28
|
'Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations.'
|
|
29
29
|
)), true);
|
|
30
30
|
const wordHighlightBorder = registerColor('editor.wordHighlightBorder', { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, ( localize(
|
|
31
|
-
|
|
31
|
+
5183,
|
|
32
32
|
'Border color of a symbol during read-access, like reading a variable.'
|
|
33
33
|
)));
|
|
34
34
|
registerColor('editor.wordHighlightStrongBorder', { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, ( localize(
|
|
35
|
-
|
|
35
|
+
5184,
|
|
36
36
|
'Border color of a symbol during write-access, like writing to a variable.'
|
|
37
37
|
)));
|
|
38
|
-
registerColor('editor.wordHighlightTextBorder', wordHighlightBorder, ( localize(
|
|
38
|
+
registerColor('editor.wordHighlightTextBorder', wordHighlightBorder, ( localize(5185, "Border color of a textual occurrence for a symbol.")));
|
|
39
39
|
const overviewRulerWordHighlightForeground = registerColor('editorOverviewRuler.wordHighlightForeground', '#A0A0A0CC', ( localize(
|
|
40
|
-
|
|
40
|
+
5186,
|
|
41
41
|
'Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations.'
|
|
42
42
|
)), true);
|
|
43
43
|
const overviewRulerWordHighlightStrongForeground = registerColor('editorOverviewRuler.wordHighlightStrongForeground', '#C0A0C0CC', ( localize(
|
|
44
|
-
|
|
44
|
+
5187,
|
|
45
45
|
'Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations.'
|
|
46
46
|
)), true);
|
|
47
47
|
const overviewRulerWordHighlightTextForeground = registerColor('editorOverviewRuler.wordHighlightTextForeground', overviewRulerSelectionHighlightForeground, ( localize(
|
|
48
|
-
|
|
48
|
+
5188,
|
|
49
49
|
'Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations.'
|
|
50
50
|
)), true);
|
|
51
51
|
const _WRITE_OPTIONS = ModelDecorationOptions.register({
|