@codingame/monaco-vscode-api 15.0.0 → 15.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +53 -4
- package/package.json +8 -8
- package/services.js +5 -5
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +2 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +125 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -3
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.d.ts +15 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +93 -0
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +215 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +178 -0
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- 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/inlayHintsController.js +1 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.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/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/indicatorView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +18 -18
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- 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.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -22
- 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/suggestMemory.d.ts +67 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +232 -0
- 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/suggest/browser/wordContextKey.js +1 -1
- 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/editor/standalone/browser/standaloneServices.js +12 -8
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +54 -54
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +255 -13
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +26 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +230 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- 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/configuration/common/configurationRegistry.js +10 -10
- 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/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- 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/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- 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/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +22 -23
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/editorOptions.d.ts +3 -0
- package/vscode/src/vs/workbench/common/editor/editorOptions.js +52 -0
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +141 -141
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/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/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.d.ts +13 -0
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +87 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- 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 +12 -12
|
@@ -41,7 +41,7 @@ class InspectContextKeysAction extends Action2 {
|
|
|
41
41
|
constructor() {
|
|
42
42
|
super({
|
|
43
43
|
id: 'workbench.action.inspectContextKeys',
|
|
44
|
-
title: ( localize2(
|
|
44
|
+
title: ( localize2(2528, 'Inspect Context Keys')),
|
|
45
45
|
category: Categories.Developer,
|
|
46
46
|
f1: true
|
|
47
47
|
});
|
|
@@ -84,7 +84,7 @@ class ToggleScreencastModeAction extends Action2 {
|
|
|
84
84
|
constructor() {
|
|
85
85
|
super({
|
|
86
86
|
id: 'workbench.action.toggleScreencastMode',
|
|
87
|
-
title: ( localize2(
|
|
87
|
+
title: ( localize2(2529, 'Toggle Screencast Mode')),
|
|
88
88
|
category: Categories.Developer,
|
|
89
89
|
f1: true
|
|
90
90
|
});
|
|
@@ -306,7 +306,7 @@ class LogStorageAction extends Action2 {
|
|
|
306
306
|
constructor() {
|
|
307
307
|
super({
|
|
308
308
|
id: 'workbench.action.logStorage',
|
|
309
|
-
title: ( localize2(
|
|
309
|
+
title: ( localize2(2530, "Log Storage Database Contents")),
|
|
310
310
|
category: Categories.Developer,
|
|
311
311
|
f1: true
|
|
312
312
|
});
|
|
@@ -316,16 +316,16 @@ class LogStorageAction extends Action2 {
|
|
|
316
316
|
const dialogService = accessor.get(IDialogService);
|
|
317
317
|
storageService.log();
|
|
318
318
|
dialogService.info(( localize(
|
|
319
|
-
|
|
319
|
+
2531,
|
|
320
320
|
"The storage database contents have been logged to the developer tools."
|
|
321
|
-
)), ( localize(
|
|
321
|
+
)), ( localize(2532, "Open developer tools from the menu and select the Console tab.")));
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
class LogWorkingCopiesAction extends Action2 {
|
|
325
325
|
constructor() {
|
|
326
326
|
super({
|
|
327
327
|
id: 'workbench.action.logWorkingCopies',
|
|
328
|
-
title: ( localize2(
|
|
328
|
+
title: ( localize2(2533, "Log Working Copies")),
|
|
329
329
|
category: Categories.Developer,
|
|
330
330
|
f1: true
|
|
331
331
|
});
|
|
@@ -353,7 +353,7 @@ class RemoveLargeStorageEntriesAction extends Action2 {
|
|
|
353
353
|
constructor() {
|
|
354
354
|
super({
|
|
355
355
|
id: 'workbench.action.removeLargeStorageDatabaseEntries',
|
|
356
|
-
title: ( localize2(
|
|
356
|
+
title: ( localize2(2534, 'Remove Large Storage Database Entries...')),
|
|
357
357
|
category: Categories.Developer,
|
|
358
358
|
f1: true
|
|
359
359
|
});
|
|
@@ -381,10 +381,10 @@ class RemoveLargeStorageEntriesAction extends Action2 {
|
|
|
381
381
|
label: key,
|
|
382
382
|
description: ByteSize.formatSize(value.length),
|
|
383
383
|
detail: ( localize(
|
|
384
|
-
|
|
384
|
+
2535,
|
|
385
385
|
"Scope: {0}, Target: {1}",
|
|
386
|
-
scope === StorageScope.APPLICATION ? ( localize(
|
|
387
|
-
target === StorageTarget.MACHINE ? ( localize(
|
|
386
|
+
scope === StorageScope.APPLICATION ? ( localize(2536, "Global")) : scope === StorageScope.PROFILE ? ( localize(2537, "Profile")) : ( localize(2538, "Workspace")),
|
|
387
|
+
target === StorageTarget.MACHINE ? ( localize(2539, "Machine")) : ( localize(2540, "User"))
|
|
388
388
|
)),
|
|
389
389
|
});
|
|
390
390
|
}
|
|
@@ -400,10 +400,10 @@ class RemoveLargeStorageEntriesAction extends Action2 {
|
|
|
400
400
|
picker.ok = false;
|
|
401
401
|
picker.customButton = true;
|
|
402
402
|
picker.hideCheckAll = true;
|
|
403
|
-
picker.customLabel = ( localize(
|
|
404
|
-
picker.placeholder = ( localize(
|
|
403
|
+
picker.customLabel = ( localize(2541, "Remove"));
|
|
404
|
+
picker.placeholder = ( localize(2542, "Select large entries to remove from storage"));
|
|
405
405
|
if (items.length === 0) {
|
|
406
|
-
picker.description = ( localize(
|
|
406
|
+
picker.description = ( localize(2543, "There are no large storage entries to remove."));
|
|
407
407
|
}
|
|
408
408
|
picker.show();
|
|
409
409
|
disposables.add(picker.onDidCustom(() => {
|
|
@@ -418,15 +418,15 @@ class RemoveLargeStorageEntriesAction extends Action2 {
|
|
|
418
418
|
const { confirmed } = await dialogService.confirm({
|
|
419
419
|
type: 'warning',
|
|
420
420
|
message: ( localize(
|
|
421
|
-
|
|
421
|
+
2544,
|
|
422
422
|
"Do you want to remove the selected storage entries from the database?"
|
|
423
423
|
)),
|
|
424
424
|
detail: ( localize(
|
|
425
|
-
|
|
425
|
+
2545,
|
|
426
426
|
"{0}\n\nThis action is irreversible and may result in data loss!",
|
|
427
427
|
( selectedItems.map(item => item.label)).join('\n')
|
|
428
428
|
)),
|
|
429
|
-
primaryButton: ( localize(
|
|
429
|
+
primaryButton: ( localize(2546, "&&Remove"))
|
|
430
430
|
});
|
|
431
431
|
if (!confirmed) {
|
|
432
432
|
return;
|
|
@@ -448,7 +448,7 @@ class StartTrackDisposables extends Action2 {
|
|
|
448
448
|
constructor() {
|
|
449
449
|
super({
|
|
450
450
|
id: 'workbench.action.startTrackDisposables',
|
|
451
|
-
title: ( localize2(
|
|
451
|
+
title: ( localize2(2547, 'Start Tracking Disposables')),
|
|
452
452
|
category: Categories.Developer,
|
|
453
453
|
f1: true,
|
|
454
454
|
precondition: ( ContextKeyExpr.and(( ( DisposablesSnapshotStateContext.isEqualTo('pending')).negate()), ( ( DisposablesSnapshotStateContext.isEqualTo('started')).negate())))
|
|
@@ -466,7 +466,7 @@ class SnapshotTrackedDisposables extends Action2 {
|
|
|
466
466
|
constructor() {
|
|
467
467
|
super({
|
|
468
468
|
id: 'workbench.action.snapshotTrackedDisposables',
|
|
469
|
-
title: ( localize2(
|
|
469
|
+
title: ( localize2(2548, 'Snapshot Tracked Disposables')),
|
|
470
470
|
category: Categories.Developer,
|
|
471
471
|
f1: true,
|
|
472
472
|
precondition: ( DisposablesSnapshotStateContext.isEqualTo('started'))
|
|
@@ -484,7 +484,7 @@ class StopTrackDisposables extends Action2 {
|
|
|
484
484
|
constructor() {
|
|
485
485
|
super({
|
|
486
486
|
id: 'workbench.action.stopTrackDisposables',
|
|
487
|
-
title: ( localize2(
|
|
487
|
+
title: ( localize2(2549, 'Stop Tracking Disposables')),
|
|
488
488
|
category: Categories.Developer,
|
|
489
489
|
f1: true,
|
|
490
490
|
precondition: ( DisposablesSnapshotStateContext.isEqualTo('pending'))
|
|
@@ -525,7 +525,7 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
525
525
|
configurationRegistry.registerConfiguration({
|
|
526
526
|
id: 'screencastMode',
|
|
527
527
|
order: 9,
|
|
528
|
-
title: ( localize(
|
|
528
|
+
title: ( localize(2550, "Screencast Mode")),
|
|
529
529
|
type: 'object',
|
|
530
530
|
properties: {
|
|
531
531
|
'screencastMode.verticalOffset': {
|
|
@@ -534,7 +534,7 @@ configurationRegistry.registerConfiguration({
|
|
|
534
534
|
minimum: 0,
|
|
535
535
|
maximum: 90,
|
|
536
536
|
description: ( localize(
|
|
537
|
-
|
|
537
|
+
2551,
|
|
538
538
|
"Controls the vertical offset of the screencast mode overlay from the bottom as a percentage of the workbench height."
|
|
539
539
|
))
|
|
540
540
|
},
|
|
@@ -544,38 +544,38 @@ configurationRegistry.registerConfiguration({
|
|
|
544
544
|
minimum: 20,
|
|
545
545
|
maximum: 100,
|
|
546
546
|
description: ( localize(
|
|
547
|
-
|
|
547
|
+
2552,
|
|
548
548
|
"Controls the font size (in pixels) of the screencast mode keyboard."
|
|
549
549
|
))
|
|
550
550
|
},
|
|
551
551
|
'screencastMode.keyboardOptions': {
|
|
552
552
|
type: 'object',
|
|
553
|
-
description: ( localize(
|
|
553
|
+
description: ( localize(2553, "Options for customizing the keyboard overlay in screencast mode.")),
|
|
554
554
|
properties: {
|
|
555
555
|
'showKeys': {
|
|
556
556
|
type: 'boolean',
|
|
557
557
|
default: true,
|
|
558
|
-
description: ( localize(
|
|
558
|
+
description: ( localize(2554, "Show raw keys."))
|
|
559
559
|
},
|
|
560
560
|
'showKeybindings': {
|
|
561
561
|
type: 'boolean',
|
|
562
562
|
default: true,
|
|
563
|
-
description: ( localize(
|
|
563
|
+
description: ( localize(2555, "Show keyboard shortcuts."))
|
|
564
564
|
},
|
|
565
565
|
'showCommands': {
|
|
566
566
|
type: 'boolean',
|
|
567
567
|
default: true,
|
|
568
|
-
description: ( localize(
|
|
568
|
+
description: ( localize(2556, "Show command names."))
|
|
569
569
|
},
|
|
570
570
|
'showCommandGroups': {
|
|
571
571
|
type: 'boolean',
|
|
572
572
|
default: false,
|
|
573
|
-
description: ( localize(
|
|
573
|
+
description: ( localize(2557, "Show command group names, when commands are also shown."))
|
|
574
574
|
},
|
|
575
575
|
'showSingleEditorCursorMoves': {
|
|
576
576
|
type: 'boolean',
|
|
577
577
|
default: true,
|
|
578
|
-
description: ( localize(
|
|
578
|
+
description: ( localize(2558, "Show single editor cursor move commands."))
|
|
579
579
|
}
|
|
580
580
|
},
|
|
581
581
|
default: {
|
|
@@ -593,7 +593,7 @@ configurationRegistry.registerConfiguration({
|
|
|
593
593
|
minimum: 500,
|
|
594
594
|
maximum: 5000,
|
|
595
595
|
description: ( localize(
|
|
596
|
-
|
|
596
|
+
2559,
|
|
597
597
|
"Controls how long (in milliseconds) the keyboard overlay is shown in screencast mode."
|
|
598
598
|
))
|
|
599
599
|
},
|
|
@@ -602,7 +602,7 @@ configurationRegistry.registerConfiguration({
|
|
|
602
602
|
format: 'color-hex',
|
|
603
603
|
default: '#FF0000',
|
|
604
604
|
description: ( localize(
|
|
605
|
-
|
|
605
|
+
2560,
|
|
606
606
|
"Controls the color in hex (#RGB, #RGBA, #RRGGBB or #RRGGBBAA) of the mouse indicator in screencast mode."
|
|
607
607
|
))
|
|
608
608
|
},
|
|
@@ -612,7 +612,7 @@ configurationRegistry.registerConfiguration({
|
|
|
612
612
|
minimum: 20,
|
|
613
613
|
maximum: 100,
|
|
614
614
|
description: ( localize(
|
|
615
|
-
|
|
615
|
+
2561,
|
|
616
616
|
"Controls the size (in pixels) of the mouse indicator in screencast mode."
|
|
617
617
|
))
|
|
618
618
|
},
|
|
@@ -14,14 +14,14 @@ import { Lazy } from '../../../base/common/lazy.js';
|
|
|
14
14
|
|
|
15
15
|
function createTextInputActions(clipboardService) {
|
|
16
16
|
return [
|
|
17
|
-
toAction({ id: 'undo', label: ( localize(
|
|
18
|
-
toAction({ id: 'redo', label: ( localize(
|
|
17
|
+
toAction({ id: 'undo', label: ( localize(2704, "Undo")), run: () => getActiveDocument().execCommand('undo') }),
|
|
18
|
+
toAction({ id: 'redo', label: ( localize(2705, "Redo")), run: () => getActiveDocument().execCommand('redo') }),
|
|
19
19
|
( new Separator()),
|
|
20
|
-
toAction({ id: 'editor.action.clipboardCutAction', label: ( localize(
|
|
21
|
-
toAction({ id: 'editor.action.clipboardCopyAction', label: ( localize(
|
|
20
|
+
toAction({ id: 'editor.action.clipboardCutAction', label: ( localize(2706, "Cut")), run: () => getActiveDocument().execCommand('cut') }),
|
|
21
|
+
toAction({ id: 'editor.action.clipboardCopyAction', label: ( localize(2707, "Copy")), run: () => getActiveDocument().execCommand('copy') }),
|
|
22
22
|
toAction({
|
|
23
23
|
id: 'editor.action.clipboardPasteAction',
|
|
24
|
-
label: ( localize(
|
|
24
|
+
label: ( localize(2708, "Paste")),
|
|
25
25
|
run: async (element) => {
|
|
26
26
|
const clipboardText = await clipboardService.readText();
|
|
27
27
|
if (isHTMLTextAreaElement(element) || isHTMLInputElement(element)) {
|
|
@@ -35,7 +35,7 @@ function createTextInputActions(clipboardService) {
|
|
|
35
35
|
}
|
|
36
36
|
}),
|
|
37
37
|
( new Separator()),
|
|
38
|
-
toAction({ id: 'editor.action.selectAll', label: ( localize(
|
|
38
|
+
toAction({ id: 'editor.action.selectAll', label: ( localize(2709, "Select All")), run: () => getActiveDocument().execCommand('selectAll') })
|
|
39
39
|
];
|
|
40
40
|
}
|
|
41
41
|
let TextInputActionsProvider = class TextInputActionsProvider extends Disposable {
|
|
@@ -18,32 +18,32 @@ import { IUserDataProfilesService } from '../../platform/userDataProfile/common/
|
|
|
18
18
|
const applicationConfigurationNodeBase = ( Object.freeze({
|
|
19
19
|
'id': 'application',
|
|
20
20
|
'order': 100,
|
|
21
|
-
'title': ( localize(
|
|
21
|
+
'title': ( localize(3706, "Application")),
|
|
22
22
|
'type': 'object'
|
|
23
23
|
}));
|
|
24
24
|
const workbenchConfigurationNodeBase = ( Object.freeze({
|
|
25
25
|
'id': 'workbench',
|
|
26
26
|
'order': 7,
|
|
27
|
-
'title': ( localize(
|
|
27
|
+
'title': ( localize(3707, "Workbench")),
|
|
28
28
|
'type': 'object',
|
|
29
29
|
}));
|
|
30
30
|
const securityConfigurationNodeBase = ( Object.freeze({
|
|
31
31
|
'id': 'security',
|
|
32
32
|
'scope': ConfigurationScope.APPLICATION,
|
|
33
|
-
'title': ( localize(
|
|
33
|
+
'title': ( localize(3708, "Security")),
|
|
34
34
|
'type': 'object',
|
|
35
35
|
'order': 7
|
|
36
36
|
}));
|
|
37
37
|
const problemsConfigurationNodeBase = ( Object.freeze({
|
|
38
38
|
'id': 'problems',
|
|
39
|
-
'title': ( localize(
|
|
39
|
+
'title': ( localize(3709, "Problems")),
|
|
40
40
|
'type': 'object',
|
|
41
41
|
'order': 101
|
|
42
42
|
}));
|
|
43
43
|
const windowConfigurationNodeBase = ( Object.freeze({
|
|
44
44
|
'id': 'window',
|
|
45
45
|
'order': 8,
|
|
46
|
-
'title': ( localize(
|
|
46
|
+
'title': ( localize(3710, "Window")),
|
|
47
47
|
'type': 'object',
|
|
48
48
|
}));
|
|
49
49
|
const Extensions = {
|
|
@@ -180,11 +180,11 @@ let DynamicWorkbenchSecurityConfiguration = class DynamicWorkbenchSecurityConfig
|
|
|
180
180
|
'items': {
|
|
181
181
|
'type': 'string',
|
|
182
182
|
'pattern': '^[^\\\\]+$',
|
|
183
|
-
'patternErrorMessage': ( localize(
|
|
183
|
+
'patternErrorMessage': ( localize(3711, 'UNC host names must not contain backslashes.'))
|
|
184
184
|
},
|
|
185
185
|
'default': [],
|
|
186
186
|
'markdownDescription': ( localize(
|
|
187
|
-
|
|
187
|
+
3712,
|
|
188
188
|
'A set of UNC host names (without leading or trailing backslash, for example `192.168.0.1` or `my-server`) to allow without user confirmation. If a UNC host is being accessed that is not allowed via this setting or has not been acknowledged via user confirmation, an error will occur and the operation stopped. A restart is required when changing this setting. Find out more about this setting at https://aka.ms/vscode-windows-unc.'
|
|
189
189
|
)),
|
|
190
190
|
'scope': ConfigurationScope.APPLICATION_MACHINE
|
|
@@ -193,7 +193,7 @@ let DynamicWorkbenchSecurityConfiguration = class DynamicWorkbenchSecurityConfig
|
|
|
193
193
|
'type': 'boolean',
|
|
194
194
|
'default': true,
|
|
195
195
|
'markdownDescription': ( localize(
|
|
196
|
-
|
|
196
|
+
3713,
|
|
197
197
|
'If enabled, only allows access to UNC host names that are allowed by the `#security.allowedUNCHosts#` setting or after user confirmation. Find out more about this setting at https://aka.ms/vscode-windows-unc.'
|
|
198
198
|
)),
|
|
199
199
|
'scope': ConfigurationScope.APPLICATION_MACHINE
|
|
@@ -232,9 +232,9 @@ let DynamicWindowConfiguration = class DynamicWindowConfiguration extends Dispos
|
|
|
232
232
|
'type': ['string', 'null'],
|
|
233
233
|
'default': null,
|
|
234
234
|
'enum': [...( this.userDataProfilesService.profiles.map(profile => profile.name)), null],
|
|
235
|
-
'enumItemLabels': [...( this.userDataProfilesService.profiles.map(p => '')), ( localize(
|
|
235
|
+
'enumItemLabels': [...( this.userDataProfilesService.profiles.map(p => '')), ( localize(3714, "Active Window"))],
|
|
236
236
|
'description': ( localize(
|
|
237
|
-
|
|
237
|
+
3715,
|
|
238
238
|
"Specifies the profile to use when opening a new window. If a profile name is provided, the new window will use that profile. If no profile name is provided, the new window will use the profile of the active window or the Default profile if no active window exists."
|
|
239
239
|
)),
|
|
240
240
|
'scope': ConfigurationScope.APPLICATION,
|
|
@@ -13,129 +13,129 @@ import { DEFAULT_EDITOR_ASSOCIATION } from './editor.js';
|
|
|
13
13
|
|
|
14
14
|
var ResourceContextKey_1;
|
|
15
15
|
const WorkbenchStateContext = ( new RawContextKey('workbenchState', undefined, { type: 'string', description: ( localize(
|
|
16
|
-
|
|
16
|
+
3716,
|
|
17
17
|
"The kind of workspace opened in the window, either 'empty' (no workspace), 'folder' (single folder) or 'workspace' (multi-root workspace)"
|
|
18
18
|
)) }));
|
|
19
|
-
const WorkspaceFolderCountContext = ( new RawContextKey('workspaceFolderCount', 0, ( localize(
|
|
19
|
+
const WorkspaceFolderCountContext = ( new RawContextKey('workspaceFolderCount', 0, ( localize(3717, "The number of root folders in the workspace"))));
|
|
20
20
|
const OpenFolderWorkspaceSupportContext = ( new RawContextKey('openFolderWorkspaceSupport', true, true));
|
|
21
21
|
const EnterMultiRootWorkspaceSupportContext = ( new RawContextKey('enterMultiRootWorkspaceSupport', true, true));
|
|
22
22
|
const EmptyWorkspaceSupportContext = ( new RawContextKey('emptyWorkspaceSupport', true, true));
|
|
23
|
-
const DirtyWorkingCopiesContext = ( new RawContextKey('dirtyWorkingCopies', false, ( localize(
|
|
23
|
+
const DirtyWorkingCopiesContext = ( new RawContextKey('dirtyWorkingCopies', false, ( localize(3718, "Whether there are any working copies with unsaved changes"))));
|
|
24
24
|
const RemoteNameContext = ( new RawContextKey('remoteName', '', ( localize(
|
|
25
|
-
|
|
25
|
+
3719,
|
|
26
26
|
"The name of the remote the window is connected to or an empty string if not connected to any remote"
|
|
27
27
|
))));
|
|
28
28
|
const VirtualWorkspaceContext = ( new RawContextKey('virtualWorkspace', '', ( localize(
|
|
29
|
-
|
|
29
|
+
3720,
|
|
30
30
|
"The scheme of the current workspace is from a virtual file system or an empty string."
|
|
31
31
|
))));
|
|
32
32
|
const TemporaryWorkspaceContext = ( new RawContextKey('temporaryWorkspace', false, ( localize(
|
|
33
|
-
|
|
33
|
+
3721,
|
|
34
34
|
"The scheme of the current workspace is from a temporary file system."
|
|
35
35
|
))));
|
|
36
|
-
const IsMainWindowFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize(
|
|
37
|
-
const IsAuxiliaryWindowFocusedContext = ( new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(
|
|
36
|
+
const IsMainWindowFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize(3722, "Whether the main window is in fullscreen mode"))));
|
|
37
|
+
const IsAuxiliaryWindowFocusedContext = ( new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(3723, "Whether an auxiliary window is focused"))));
|
|
38
38
|
const HasWebFileSystemAccess = ( new RawContextKey('hasWebFileSystemAccess', false, true));
|
|
39
39
|
const EmbedderIdentifierContext = ( new RawContextKey('embedderIdentifier', undefined, ( localize(
|
|
40
|
-
|
|
40
|
+
3724,
|
|
41
41
|
'The identifier of the embedder according to the product service, if one is defined'
|
|
42
42
|
))));
|
|
43
|
-
const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize(
|
|
44
|
-
const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(
|
|
45
|
-
const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(
|
|
46
|
-
const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localize(
|
|
47
|
-
const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize(
|
|
48
|
-
const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localize(
|
|
49
|
-
const ActiveCompareEditorCanSwapContext = ( new RawContextKey('activeCompareEditorCanSwap', false, ( localize(
|
|
43
|
+
const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize(3725, "Whether the active editor has unsaved changes"))));
|
|
44
|
+
const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(3726, "Whether the active editor is not in preview mode"))));
|
|
45
|
+
const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(3727, "Whether the active editor is the first one in its group"))));
|
|
46
|
+
const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localize(3728, "Whether the active editor is the last one in its group"))));
|
|
47
|
+
const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize(3729, "Whether the active editor is pinned"))));
|
|
48
|
+
const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localize(3730, "Whether the active editor is read-only"))));
|
|
49
|
+
const ActiveCompareEditorCanSwapContext = ( new RawContextKey('activeCompareEditorCanSwap', false, ( localize(3731, "Whether the active compare editor can swap sides"))));
|
|
50
50
|
const ActiveEditorCanToggleReadonlyContext = ( new RawContextKey('activeEditorCanToggleReadonly', true, ( localize(
|
|
51
|
-
|
|
51
|
+
3732,
|
|
52
52
|
"Whether the active editor can toggle between being read-only or writeable"
|
|
53
53
|
))));
|
|
54
|
-
const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localize(
|
|
54
|
+
const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localize(3733, "Whether the active editor can revert"))));
|
|
55
55
|
const ActiveEditorCanSplitInGroupContext = ( new RawContextKey('activeEditorCanSplitInGroup', true));
|
|
56
|
-
const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(
|
|
56
|
+
const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(3734, "The identifier of the active editor")) }));
|
|
57
57
|
const ActiveEditorAvailableEditorIdsContext = ( new RawContextKey('activeEditorAvailableEditorIds', '', ( localize(
|
|
58
|
-
|
|
58
|
+
3735,
|
|
59
59
|
"The available editor identifiers that are usable for the active editor"
|
|
60
60
|
))));
|
|
61
|
-
const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localize(
|
|
62
|
-
const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorActive', false, ( localize(
|
|
63
|
-
const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize(
|
|
64
|
-
const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize(
|
|
65
|
-
const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize(
|
|
66
|
-
const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localize(
|
|
67
|
-
const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localize(
|
|
68
|
-
const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize(
|
|
69
|
-
const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize(
|
|
70
|
-
const MultipleEditorsSelectedInGroupContext = ( new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(
|
|
71
|
-
const TwoEditorsSelectedInGroupContext = ( new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(
|
|
61
|
+
const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localize(3736, "Whether a text compare editor is visible"))));
|
|
62
|
+
const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorActive', false, ( localize(3737, "Whether a text compare editor is active"))));
|
|
63
|
+
const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize(3738, "Whether a side by side editor is active"))));
|
|
64
|
+
const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize(3739, "The number of opened editor groups"))));
|
|
65
|
+
const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize(3740, "Whether the active editor group is empty"))));
|
|
66
|
+
const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localize(3741, "The index of the active editor group"))));
|
|
67
|
+
const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localize(3742, "Whether the active editor group is the last group"))));
|
|
68
|
+
const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize(3743, "Whether the active editor group is locked"))));
|
|
69
|
+
const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize(3744, "Whether there are multiple editor groups opened"))));
|
|
70
|
+
const MultipleEditorsSelectedInGroupContext = ( new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(3745, "Whether multiple editors have been selected in an editor group"))));
|
|
71
|
+
const TwoEditorsSelectedInGroupContext = ( new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(3746, "Whether exactly two editors have been selected in an editor group"))));
|
|
72
72
|
const SelectedEditorsInGroupFileOrUntitledResourceContextKey = ( new RawContextKey(
|
|
73
73
|
'SelectedEditorsInGroupFileOrUntitledResourceContextKey',
|
|
74
74
|
true,
|
|
75
75
|
( localize(
|
|
76
|
-
|
|
76
|
+
3747,
|
|
77
77
|
"Whether all selected editors in a group have a file or untitled resource associated"
|
|
78
78
|
))
|
|
79
79
|
));
|
|
80
|
-
const EditorPartMultipleEditorGroupsContext = ( new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(
|
|
81
|
-
const EditorPartMaximizedEditorGroupContext = ( new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(
|
|
82
|
-
const IsAuxiliaryEditorPartContext = ( new RawContextKey('isAuxiliaryEditorPart', false, ( localize(
|
|
83
|
-
const EditorsVisibleContext = ( new RawContextKey('editorIsOpen', false, ( localize(
|
|
84
|
-
const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize(
|
|
85
|
-
const IsMainEditorCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize(
|
|
86
|
-
const SplitEditorsVertically = ( new RawContextKey('splitEditorsVertically', false, ( localize(
|
|
87
|
-
const MainEditorAreaVisibleContext = ( new RawContextKey('mainEditorAreaVisible', true, ( localize(
|
|
88
|
-
const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize(
|
|
89
|
-
const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize(
|
|
90
|
-
const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localize(
|
|
91
|
-
const ActiveViewletContext = ( new RawContextKey('activeViewlet', '', ( localize(
|
|
92
|
-
const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( localize(
|
|
93
|
-
const TitleBarStyleContext = ( new RawContextKey('titleBarStyle', 'custom', ( localize(
|
|
94
|
-
const TitleBarVisibleContext = ( new RawContextKey('titleBarVisible', false, ( localize(
|
|
95
|
-
const BannerFocused = ( new RawContextKey('bannerFocused', false, ( localize(
|
|
96
|
-
const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize(
|
|
97
|
-
const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize(
|
|
98
|
-
const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize(
|
|
99
|
-
const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localize(
|
|
100
|
-
const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localize(
|
|
101
|
-
const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize(
|
|
102
|
-
const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localize(
|
|
103
|
-
const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize(
|
|
104
|
-
const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localize(
|
|
80
|
+
const EditorPartMultipleEditorGroupsContext = ( new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(3748, "Whether there are multiple editor groups opened in an editor part"))));
|
|
81
|
+
const EditorPartMaximizedEditorGroupContext = ( new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(3749, "Editor Part has a maximized group"))));
|
|
82
|
+
const IsAuxiliaryEditorPartContext = ( new RawContextKey('isAuxiliaryEditorPart', false, ( localize(3750, "Editor Part is in an auxiliary window"))));
|
|
83
|
+
const EditorsVisibleContext = ( new RawContextKey('editorIsOpen', false, ( localize(3751, "Whether an editor is open"))));
|
|
84
|
+
const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize(3752, "Whether Zen mode is enabled"))));
|
|
85
|
+
const IsMainEditorCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize(3753, "Whether centered layout is enabled for the main editor"))));
|
|
86
|
+
const SplitEditorsVertically = ( new RawContextKey('splitEditorsVertically', false, ( localize(3754, "Whether editors split vertically"))));
|
|
87
|
+
const MainEditorAreaVisibleContext = ( new RawContextKey('mainEditorAreaVisible', true, ( localize(3755, "Whether the editor area in the main window is visible"))));
|
|
88
|
+
const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize(3756, "Whether editor tabs are visible"))));
|
|
89
|
+
const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize(3757, "Whether the sidebar is visible"))));
|
|
90
|
+
const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localize(3758, "Whether the sidebar has keyboard focus"))));
|
|
91
|
+
const ActiveViewletContext = ( new RawContextKey('activeViewlet', '', ( localize(3759, "The identifier of the active viewlet"))));
|
|
92
|
+
const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( localize(3760, "Whether the status bar has keyboard focus"))));
|
|
93
|
+
const TitleBarStyleContext = ( new RawContextKey('titleBarStyle', 'custom', ( localize(3761, "Style of the window title bar"))));
|
|
94
|
+
const TitleBarVisibleContext = ( new RawContextKey('titleBarVisible', false, ( localize(3762, "Whether the title bar is visible"))));
|
|
95
|
+
const BannerFocused = ( new RawContextKey('bannerFocused', false, ( localize(3763, "Whether the banner has keyboard focus"))));
|
|
96
|
+
const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize(3764, "Whether a notification has keyboard focus"))));
|
|
97
|
+
const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize(3765, "Whether the notifications center is visible"))));
|
|
98
|
+
const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize(3766, "Whether a notification toast is visible"))));
|
|
99
|
+
const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localize(3767, "The identifier of the active auxiliary panel"))));
|
|
100
|
+
const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localize(3768, "Whether the auxiliary bar has keyboard focus"))));
|
|
101
|
+
const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize(3769, "Whether the auxiliary bar is visible"))));
|
|
102
|
+
const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localize(3770, "The identifier of the active panel"))));
|
|
103
|
+
const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize(3771, "Whether the panel has keyboard focus"))));
|
|
104
|
+
const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localize(3772, "The position of the panel, always 'bottom'"))));
|
|
105
105
|
const PanelAlignmentContext = ( new RawContextKey('panelAlignment', 'center', ( localize(
|
|
106
|
-
|
|
106
|
+
3773,
|
|
107
107
|
"The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
|
|
108
108
|
))));
|
|
109
|
-
const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize(
|
|
110
|
-
const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize(
|
|
111
|
-
const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize(
|
|
109
|
+
const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize(3774, "Whether the panel is visible"))));
|
|
110
|
+
const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize(3775, "Whether the panel is maximized"))));
|
|
111
|
+
const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize(3776, "The identifier of the view that has keyboard focus"))));
|
|
112
112
|
function getVisbileViewContextKey(viewId) { return `view.${viewId}.visible`; }
|
|
113
113
|
let ResourceContextKey = class ResourceContextKey {
|
|
114
114
|
static { ResourceContextKey_1 = this; }
|
|
115
|
-
static { this.Scheme = ( new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(
|
|
115
|
+
static { this.Scheme = ( new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(3777, "The scheme of the resource")) })); }
|
|
116
116
|
static { this.Filename = ( new RawContextKey(
|
|
117
117
|
'resourceFilename',
|
|
118
118
|
undefined,
|
|
119
|
-
{ type: 'string', description: ( localize(
|
|
119
|
+
{ type: 'string', description: ( localize(3778, "The file name of the resource")) }
|
|
120
120
|
)); }
|
|
121
121
|
static { this.Dirname = ( new RawContextKey(
|
|
122
122
|
'resourceDirname',
|
|
123
123
|
undefined,
|
|
124
|
-
{ type: 'string', description: ( localize(
|
|
124
|
+
{ type: 'string', description: ( localize(3779, "The folder name the resource is contained in")) }
|
|
125
125
|
)); }
|
|
126
|
-
static { this.Path = ( new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(
|
|
127
|
-
static { this.LangId = ( new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(
|
|
128
|
-
static { this.Resource = ( new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(
|
|
126
|
+
static { this.Path = ( new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(3780, "The full path of the resource")) })); }
|
|
127
|
+
static { this.LangId = ( new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(3781, "The language identifier of the resource")) })); }
|
|
128
|
+
static { this.Resource = ( new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(3782, "The full value of the resource including scheme and path")) })); }
|
|
129
129
|
static { this.Extension = ( new RawContextKey(
|
|
130
130
|
'resourceExtname',
|
|
131
131
|
undefined,
|
|
132
|
-
{ type: 'string', description: ( localize(
|
|
132
|
+
{ type: 'string', description: ( localize(3783, "The extension name of the resource")) }
|
|
133
133
|
)); }
|
|
134
|
-
static { this.HasResource = ( new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(
|
|
134
|
+
static { this.HasResource = ( new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(3784, "Whether a resource is present or not")) })); }
|
|
135
135
|
static { this.IsFileSystemResource = ( new RawContextKey(
|
|
136
136
|
'isFileSystemResource',
|
|
137
137
|
undefined,
|
|
138
|
-
{ type: 'boolean', description: ( localize(
|
|
138
|
+
{ type: 'boolean', description: ( localize(3785, "Whether the resource is backed by a file system provider")) }
|
|
139
139
|
)); }
|
|
140
140
|
constructor(_contextKeyService, _fileService, _languageService, _modelService) {
|
|
141
141
|
this._contextKeyService = _contextKeyService;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IEditor, ScrollType } from "../../../editor/common/editorCommon.js";
|
|
2
|
+
import { ITextEditorOptions } from "../../../platform/editor/common/editor.js";
|
|
3
|
+
export declare function applyTextEditorOptions(options: ITextEditorOptions, editor: IEditor, scrollType: ScrollType): boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
import { TextEditorSelectionSource, TextEditorSelectionRevealType } from '../../../platform/editor/common/editor.js';
|
|
3
|
+
import { isTextEditorViewState } from '../editor.js';
|
|
4
|
+
|
|
5
|
+
function applyTextEditorOptions(options, editor, scrollType) {
|
|
6
|
+
let applied = false;
|
|
7
|
+
const viewState = massageEditorViewState(options);
|
|
8
|
+
if (isTextEditorViewState(viewState)) {
|
|
9
|
+
editor.restoreViewState(viewState);
|
|
10
|
+
applied = true;
|
|
11
|
+
}
|
|
12
|
+
if (options.selection) {
|
|
13
|
+
const range = {
|
|
14
|
+
startLineNumber: options.selection.startLineNumber,
|
|
15
|
+
startColumn: options.selection.startColumn,
|
|
16
|
+
endLineNumber: options.selection.endLineNumber ?? options.selection.startLineNumber,
|
|
17
|
+
endColumn: options.selection.endColumn ?? options.selection.startColumn
|
|
18
|
+
};
|
|
19
|
+
editor.setSelection(range, options.selectionSource ?? TextEditorSelectionSource.NAVIGATION);
|
|
20
|
+
if (options.selectionRevealType === TextEditorSelectionRevealType.NearTop) {
|
|
21
|
+
editor.revealRangeNearTop(range, scrollType);
|
|
22
|
+
}
|
|
23
|
+
else if (options.selectionRevealType === TextEditorSelectionRevealType.NearTopIfOutsideViewport) {
|
|
24
|
+
editor.revealRangeNearTopIfOutsideViewport(range, scrollType);
|
|
25
|
+
}
|
|
26
|
+
else if (options.selectionRevealType === TextEditorSelectionRevealType.CenterIfOutsideViewport) {
|
|
27
|
+
editor.revealRangeInCenterIfOutsideViewport(range, scrollType);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
editor.revealRangeInCenter(range, scrollType);
|
|
31
|
+
}
|
|
32
|
+
applied = true;
|
|
33
|
+
}
|
|
34
|
+
return applied;
|
|
35
|
+
}
|
|
36
|
+
function massageEditorViewState(options) {
|
|
37
|
+
if (!options.selection || !options.viewState) {
|
|
38
|
+
return options.viewState;
|
|
39
|
+
}
|
|
40
|
+
const candidateDiffViewState = options.viewState;
|
|
41
|
+
if (candidateDiffViewState.modified) {
|
|
42
|
+
candidateDiffViewState.modified.cursorState = [];
|
|
43
|
+
return candidateDiffViewState;
|
|
44
|
+
}
|
|
45
|
+
const candidateEditorViewState = options.viewState;
|
|
46
|
+
if (candidateEditorViewState.cursorState) {
|
|
47
|
+
candidateEditorViewState.cursorState = [];
|
|
48
|
+
}
|
|
49
|
+
return candidateEditorViewState;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { applyTextEditorOptions };
|
|
@@ -17,8 +17,8 @@ const EditorExtensions = {
|
|
|
17
17
|
};
|
|
18
18
|
const DEFAULT_EDITOR_ASSOCIATION = {
|
|
19
19
|
id: 'default',
|
|
20
|
-
displayName: ( localize(
|
|
21
|
-
providerDisplayName: ( localize(
|
|
20
|
+
displayName: ( localize(3786, "Text Editor")),
|
|
21
|
+
providerDisplayName: ( localize(3787, "Built-in"))
|
|
22
22
|
};
|
|
23
23
|
const SIDE_BY_SIDE_EDITOR_ID = 'workbench.editor.sidebysideEditor';
|
|
24
24
|
const TEXT_DIFF_EDITOR_ID = 'workbench.editors.textDiffEditor';
|
|
@@ -166,7 +166,7 @@ function isDiffEditorInput(editor) {
|
|
|
166
166
|
function createTooLargeFileError(group, input, options, message, preferencesService) {
|
|
167
167
|
return createEditorOpenError(message, [
|
|
168
168
|
toAction({
|
|
169
|
-
id: 'workbench.action.openLargeFile', label: ( localize(
|
|
169
|
+
id: 'workbench.action.openLargeFile', label: ( localize(3788, "Open Anyway")), run: () => {
|
|
170
170
|
const fileEditorOptions = {
|
|
171
171
|
...options,
|
|
172
172
|
limits: {
|
|
@@ -177,7 +177,7 @@ function createTooLargeFileError(group, input, options, message, preferencesServ
|
|
|
177
177
|
}
|
|
178
178
|
}),
|
|
179
179
|
toAction({
|
|
180
|
-
id: 'workbench.action.configureEditorLargeFileConfirmation', label: ( localize(
|
|
180
|
+
id: 'workbench.action.configureEditorLargeFileConfirmation', label: ( localize(3789, "Configure Limit")), run: () => {
|
|
181
181
|
return preferencesService.openUserSettings({ query: 'workbench.editorLargeFileConfirmation' });
|
|
182
182
|
}
|
|
183
183
|
}),
|