@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
|
@@ -40,7 +40,7 @@ class AccessibleViewNextAction extends Action2 {
|
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
icon: Codicon.arrowDown,
|
|
43
|
-
title: ( localize(
|
|
43
|
+
title: ( localize(4133, "Show Next in Accessible View"))
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
run(accessor) {
|
|
@@ -63,7 +63,7 @@ class AccessibleViewNextCodeBlockAction extends Action2 {
|
|
|
63
63
|
...accessibleViewMenu,
|
|
64
64
|
when: ( ContextKeyExpr.and(accessibleViewIsShown, accessibleViewContainsCodeBlocks)),
|
|
65
65
|
},
|
|
66
|
-
title: ( localize(
|
|
66
|
+
title: ( localize(4134, "Accessible View: Next Code Block"))
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
run(accessor) {
|
|
@@ -86,7 +86,7 @@ class AccessibleViewPreviousCodeBlockAction extends Action2 {
|
|
|
86
86
|
...accessibleViewMenu,
|
|
87
87
|
when: ( ContextKeyExpr.and(accessibleViewIsShown, accessibleViewContainsCodeBlocks)),
|
|
88
88
|
},
|
|
89
|
-
title: ( localize(
|
|
89
|
+
title: ( localize(4135, "Accessible View: Previous Code Block"))
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
run(accessor) {
|
|
@@ -111,7 +111,7 @@ class AccessibleViewPreviousAction extends Action2 {
|
|
|
111
111
|
when: ( ContextKeyExpr.and(accessibleViewIsShown, accessibleViewSupportsNavigation)),
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
|
-
title: ( localize(
|
|
114
|
+
title: ( localize(4136, "Show Previous in Accessible View"))
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
run(accessor) {
|
|
@@ -137,7 +137,7 @@ class AccessibleViewGoToSymbolAction extends Action2 {
|
|
|
137
137
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(accessibleViewIsShown, accessibilityHelpIsShown)), accessibleViewGoToSymbolSupported)),
|
|
138
138
|
}
|
|
139
139
|
],
|
|
140
|
-
title: ( localize(
|
|
140
|
+
title: ( localize(4137, "Go To Symbol in Accessible View"))
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
run(accessor) {
|
|
@@ -164,7 +164,7 @@ const AccessibilityHelpAction = registerCommand(( new MultiCommand({
|
|
|
164
164
|
menuOpts: [{
|
|
165
165
|
menuId: MenuId.CommandPalette,
|
|
166
166
|
group: '',
|
|
167
|
-
title: ( localize(
|
|
167
|
+
title: ( localize(4138, "Open Accessibility Help")),
|
|
168
168
|
order: 1
|
|
169
169
|
}],
|
|
170
170
|
})));
|
|
@@ -182,7 +182,7 @@ const AccessibleViewAction = registerCommand(( new MultiCommand({
|
|
|
182
182
|
menuOpts: [{
|
|
183
183
|
menuId: MenuId.CommandPalette,
|
|
184
184
|
group: '',
|
|
185
|
-
title: ( localize(
|
|
185
|
+
title: ( localize(4139, "Open Accessible View")),
|
|
186
186
|
order: 1
|
|
187
187
|
}],
|
|
188
188
|
})));
|
|
@@ -204,7 +204,7 @@ class AccessibleViewDisableHintAction extends Action2 {
|
|
|
204
204
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(accessibleViewIsShown, accessibilityHelpIsShown)), accessibleViewVerbosityEnabled)),
|
|
205
205
|
}
|
|
206
206
|
],
|
|
207
|
-
title: ( localize(
|
|
207
|
+
title: ( localize(4140, "Disable Accessible View Hint"))
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
run(accessor) {
|
|
@@ -230,7 +230,7 @@ class AccessibilityHelpConfigureKeybindingsAction extends Action2 {
|
|
|
230
230
|
when: accessibleViewHasUnassignedKeybindings,
|
|
231
231
|
}
|
|
232
232
|
],
|
|
233
|
-
title: ( localize(
|
|
233
|
+
title: ( localize(4141, "Accessibility Help Configure Unassigned Keybindings"))
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
async run(accessor) {
|
|
@@ -256,7 +256,7 @@ class AccessibilityHelpConfigureAssignedKeybindingsAction extends Action2 {
|
|
|
256
256
|
when: accessibleViewHasAssignedKeybindings,
|
|
257
257
|
}
|
|
258
258
|
],
|
|
259
|
-
title: ( localize(
|
|
259
|
+
title: ( localize(4142, "Accessibility Help Configure Assigned Keybindings"))
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
async run(accessor) {
|
|
@@ -273,7 +273,7 @@ class AccessibilityHelpOpenHelpLinkAction extends Action2 {
|
|
|
273
273
|
primary: KeyMod$1.Alt | KeyCode.KeyH,
|
|
274
274
|
weight: KeybindingWeight.WorkbenchContrib
|
|
275
275
|
},
|
|
276
|
-
title: ( localize(
|
|
276
|
+
title: ( localize(4143, "Accessibility Help Open Help Link"))
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
run(accessor) {
|
|
@@ -307,7 +307,7 @@ class AccessibleViewAcceptInlineCompletionAction extends Action2 {
|
|
|
307
307
|
))))
|
|
308
308
|
}
|
|
309
309
|
],
|
|
310
|
-
title: ( localize(
|
|
310
|
+
title: ( localize(4144, "Accept Inline Completion"))
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
313
|
async run(accessor) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js
CHANGED
|
@@ -16,14 +16,14 @@ import { observableFromEvent, constObservable } from '../../../../../base/common
|
|
|
16
16
|
import { autorun } from '../../../../../base/common/observableInternal/autorun.js';
|
|
17
17
|
import { derived } from '../../../../../base/common/observableInternal/derived.js';
|
|
18
18
|
|
|
19
|
-
const ctxIsGlobalEditingSession = ( new RawContextKey('chatEdits.isGlobalEditingSession', undefined, ( localize(
|
|
20
|
-
const ctxHasEditorModification = ( new RawContextKey('chatEdits.hasEditorModifications', undefined, ( localize(
|
|
21
|
-
const ctxReviewModeEnabled = ( new RawContextKey('chatEdits.isReviewModeEnabled', true, ( localize(
|
|
19
|
+
const ctxIsGlobalEditingSession = ( new RawContextKey('chatEdits.isGlobalEditingSession', undefined, ( localize(4573, "The current editor is part of the global edit session"))));
|
|
20
|
+
const ctxHasEditorModification = ( new RawContextKey('chatEdits.hasEditorModifications', undefined, ( localize(4574, "The current editor contains chat modifications"))));
|
|
21
|
+
const ctxReviewModeEnabled = ( new RawContextKey('chatEdits.isReviewModeEnabled', true, ( localize(4575, "Review mode for chat changes is enabled"))));
|
|
22
22
|
const ctxHasRequestInProgress = ( new RawContextKey('chatEdits.isRequestInProgress', false, ( localize(
|
|
23
|
-
|
|
23
|
+
4576,
|
|
24
24
|
"The current editor shows a file from an edit session which is still in progress"
|
|
25
25
|
))));
|
|
26
|
-
const ctxRequestCount = ( new RawContextKey('chatEdits.requestCount', 0, ( localize(
|
|
26
|
+
const ctxRequestCount = ( new RawContextKey('chatEdits.requestCount', 0, ( localize(4577, "The number of turns the editing session in this editor has"))));
|
|
27
27
|
let ChatEditingEditorContextKeys = class ChatEditingEditorContextKeys {
|
|
28
28
|
static { this.ID = 'chat.edits.editorContextKeys'; }
|
|
29
29
|
constructor(instaService, editorGroupsService) {
|
|
@@ -10,79 +10,79 @@ var ChatContextKeys;
|
|
|
10
10
|
'chatSessionResponseVote',
|
|
11
11
|
'',
|
|
12
12
|
{ type: 'string', description: ( localize(
|
|
13
|
-
|
|
13
|
+
4817,
|
|
14
14
|
"When the response has been voted up, is set to 'up'. When voted down, is set to 'down'. Otherwise an empty string."
|
|
15
15
|
)) }
|
|
16
16
|
));
|
|
17
17
|
ChatContextKeys.responseDetectedAgentCommand = ( new RawContextKey(
|
|
18
18
|
'chatSessionResponseDetectedAgentOrCommand',
|
|
19
19
|
false,
|
|
20
|
-
{ type: 'boolean', description: ( localize(
|
|
20
|
+
{ type: 'boolean', description: ( localize(4818, "When the agent or command was automatically detected")) }
|
|
21
21
|
));
|
|
22
22
|
ChatContextKeys.responseSupportsIssueReporting = ( new RawContextKey(
|
|
23
23
|
'chatResponseSupportsIssueReporting',
|
|
24
24
|
false,
|
|
25
|
-
{ type: 'boolean', description: ( localize(
|
|
25
|
+
{ type: 'boolean', description: ( localize(4819, "True when the current chat response supports issue reporting.")) }
|
|
26
26
|
));
|
|
27
27
|
ChatContextKeys.responseIsFiltered = ( new RawContextKey(
|
|
28
28
|
'chatSessionResponseFiltered',
|
|
29
29
|
false,
|
|
30
|
-
{ type: 'boolean', description: ( localize(
|
|
30
|
+
{ type: 'boolean', description: ( localize(4820, "True when the chat response was filtered out by the server.")) }
|
|
31
31
|
));
|
|
32
32
|
ChatContextKeys.responseHasError = ( new RawContextKey(
|
|
33
33
|
'chatSessionResponseError',
|
|
34
34
|
false,
|
|
35
|
-
{ type: 'boolean', description: ( localize(
|
|
35
|
+
{ type: 'boolean', description: ( localize(4821, "True when the chat response resulted in an error.")) }
|
|
36
36
|
));
|
|
37
37
|
ChatContextKeys.requestInProgress = ( new RawContextKey(
|
|
38
38
|
'chatSessionRequestInProgress',
|
|
39
39
|
false,
|
|
40
|
-
{ type: 'boolean', description: ( localize(
|
|
40
|
+
{ type: 'boolean', description: ( localize(4822, "True when the current request is still in progress.")) }
|
|
41
41
|
));
|
|
42
42
|
ChatContextKeys.isRequestPaused = ( new RawContextKey(
|
|
43
43
|
'chatRequestIsPaused',
|
|
44
44
|
false,
|
|
45
|
-
{ type: 'boolean', description: ( localize(
|
|
45
|
+
{ type: 'boolean', description: ( localize(4823, "True when the current request is paused.")) }
|
|
46
46
|
));
|
|
47
47
|
ChatContextKeys.canRequestBePaused = ( new RawContextKey(
|
|
48
48
|
'chatCanRequestBePaused',
|
|
49
49
|
false,
|
|
50
|
-
{ type: 'boolean', description: ( localize(
|
|
51
|
-
));
|
|
52
|
-
ChatContextKeys.isResponse = ( new RawContextKey('chatResponse', false, { type: 'boolean', description: ( localize(
|
|
53
|
-
ChatContextKeys.isRequest = ( new RawContextKey('chatRequest', false, { type: 'boolean', description: ( localize(
|
|
54
|
-
ChatContextKeys.itemId = ( new RawContextKey('chatItemId', '', { type: 'string', description: ( localize(
|
|
55
|
-
ChatContextKeys.lastItemId = ( new RawContextKey('chatLastItemId', [], { type: 'string', description: ( localize(
|
|
56
|
-
ChatContextKeys.editApplied = ( new RawContextKey('chatEditApplied', false, { type: 'boolean', description: ( localize(
|
|
57
|
-
ChatContextKeys.inputHasText = ( new RawContextKey('chatInputHasText', false, { type: 'boolean', description: ( localize(
|
|
58
|
-
ChatContextKeys.inputHasFocus = ( new RawContextKey('chatInputHasFocus', false, { type: 'boolean', description: ( localize(
|
|
59
|
-
ChatContextKeys.inChatInput = ( new RawContextKey('inChatInput', false, { type: 'boolean', description: ( localize(
|
|
60
|
-
ChatContextKeys.inChatSession = ( new RawContextKey('inChat', false, { type: 'boolean', description: ( localize(
|
|
50
|
+
{ type: 'boolean', description: ( localize(4824, "True when the current request can be paused.")) }
|
|
51
|
+
));
|
|
52
|
+
ChatContextKeys.isResponse = ( new RawContextKey('chatResponse', false, { type: 'boolean', description: ( localize(4825, "The chat item is a response.")) }));
|
|
53
|
+
ChatContextKeys.isRequest = ( new RawContextKey('chatRequest', false, { type: 'boolean', description: ( localize(4826, "The chat item is a request")) }));
|
|
54
|
+
ChatContextKeys.itemId = ( new RawContextKey('chatItemId', '', { type: 'string', description: ( localize(4827, "The id of the chat item.")) }));
|
|
55
|
+
ChatContextKeys.lastItemId = ( new RawContextKey('chatLastItemId', [], { type: 'string', description: ( localize(4828, "The id of the last chat item.")) }));
|
|
56
|
+
ChatContextKeys.editApplied = ( new RawContextKey('chatEditApplied', false, { type: 'boolean', description: ( localize(4829, "True when the chat text edits have been applied.")) }));
|
|
57
|
+
ChatContextKeys.inputHasText = ( new RawContextKey('chatInputHasText', false, { type: 'boolean', description: ( localize(4830, "True when the chat input has text.")) }));
|
|
58
|
+
ChatContextKeys.inputHasFocus = ( new RawContextKey('chatInputHasFocus', false, { type: 'boolean', description: ( localize(4831, "True when the chat input has focus.")) }));
|
|
59
|
+
ChatContextKeys.inChatInput = ( new RawContextKey('inChatInput', false, { type: 'boolean', description: ( localize(4832, "True when focus is in the chat input, false otherwise.")) }));
|
|
60
|
+
ChatContextKeys.inChatSession = ( new RawContextKey('inChat', false, { type: 'boolean', description: ( localize(4833, "True when focus is in the chat widget, false otherwise.")) }));
|
|
61
61
|
ChatContextKeys.instructionsAttached = ( new RawContextKey(
|
|
62
62
|
'chatInstructionsAttached',
|
|
63
63
|
false,
|
|
64
|
-
{ type: 'boolean', description: ( localize(
|
|
64
|
+
{ type: 'boolean', description: ( localize(4834, "True when the chat has a prompt instructions attached.")) }
|
|
65
65
|
));
|
|
66
66
|
ChatContextKeys.supported = ( ContextKeyExpr.or(( IsWebContext.toNegated()), ( RemoteNameContext.notEqualsTo(''))));
|
|
67
67
|
ChatContextKeys.enabled = ( new RawContextKey('chatIsEnabled', false, { type: 'boolean', description: ( localize(
|
|
68
|
-
|
|
68
|
+
4835,
|
|
69
69
|
"True when chat is enabled because a default chat participant is activated with an implementation."
|
|
70
70
|
)) }));
|
|
71
71
|
ChatContextKeys.panelParticipantRegistered = ( new RawContextKey(
|
|
72
72
|
'chatPanelParticipantRegistered',
|
|
73
73
|
false,
|
|
74
|
-
{ type: 'boolean', description: ( localize(
|
|
74
|
+
{ type: 'boolean', description: ( localize(4836, "True when a default chat participant is registered for the panel.")) }
|
|
75
75
|
));
|
|
76
76
|
ChatContextKeys.editingParticipantRegistered = ( new RawContextKey(
|
|
77
77
|
'chatEditingParticipantRegistered',
|
|
78
78
|
false,
|
|
79
|
-
{ type: 'boolean', description: ( localize(
|
|
79
|
+
{ type: 'boolean', description: ( localize(4837, "True when a default chat participant is registered for editing.")) }
|
|
80
80
|
));
|
|
81
81
|
ChatContextKeys.chatEditingCanUndo = ( new RawContextKey(
|
|
82
82
|
'chatEditingCanUndo',
|
|
83
83
|
false,
|
|
84
84
|
{ type: 'boolean', description: ( localize(
|
|
85
|
-
|
|
85
|
+
4838,
|
|
86
86
|
"True when it is possible to undo an interaction in the editing panel."
|
|
87
87
|
)) }
|
|
88
88
|
));
|
|
@@ -90,7 +90,7 @@ var ChatContextKeys;
|
|
|
90
90
|
'chatEditingCanRedo',
|
|
91
91
|
false,
|
|
92
92
|
{ type: 'boolean', description: ( localize(
|
|
93
|
-
|
|
93
|
+
4839,
|
|
94
94
|
"True when it is possible to redo an interaction in the editing panel."
|
|
95
95
|
)) }
|
|
96
96
|
));
|
|
@@ -98,23 +98,23 @@ var ChatContextKeys;
|
|
|
98
98
|
'chatExtensionInvalid',
|
|
99
99
|
false,
|
|
100
100
|
{ type: 'boolean', description: ( localize(
|
|
101
|
-
|
|
101
|
+
4840,
|
|
102
102
|
"True when the installed chat extension is invalid and needs to be updated."
|
|
103
103
|
)) }
|
|
104
104
|
));
|
|
105
105
|
ChatContextKeys.inputCursorAtTop = ( new RawContextKey('chatCursorAtTop', false));
|
|
106
106
|
ChatContextKeys.inputHasAgent = ( new RawContextKey('chatInputHasAgent', false));
|
|
107
107
|
ChatContextKeys.location = ( new RawContextKey('chatLocation', undefined));
|
|
108
|
-
ChatContextKeys.inQuickChat = ( new RawContextKey('quickChatHasFocus', false, { type: 'boolean', description: ( localize(
|
|
108
|
+
ChatContextKeys.inQuickChat = ( new RawContextKey('quickChatHasFocus', false, { type: 'boolean', description: ( localize(4841, "True when the quick chat UI has focus, false otherwise.")) }));
|
|
109
109
|
ChatContextKeys.hasFileAttachments = ( new RawContextKey(
|
|
110
110
|
'chatHasFileAttachments',
|
|
111
111
|
false,
|
|
112
|
-
{ type: 'boolean', description: ( localize(
|
|
112
|
+
{ type: 'boolean', description: ( localize(4842, "True when the chat has file attachments.")) }
|
|
113
113
|
));
|
|
114
114
|
ChatContextKeys.languageModelsAreUserSelectable = ( new RawContextKey(
|
|
115
115
|
'chatModelsAreUserSelectable',
|
|
116
116
|
false,
|
|
117
|
-
{ type: 'boolean', description: ( localize(
|
|
117
|
+
{ type: 'boolean', description: ( localize(4843, "True when the chat model can be selected manually by the user.")) }
|
|
118
118
|
));
|
|
119
119
|
ChatContextKeys.Setup = {
|
|
120
120
|
signedOut: ( new RawContextKey('chatSetupSignedOut', false, true)),
|
|
@@ -131,17 +131,17 @@ var ChatContextKeys;
|
|
|
131
131
|
ChatContextKeys.chatQuotaExceeded = ( new RawContextKey('chatQuotaExceeded', false, true));
|
|
132
132
|
ChatContextKeys.completionsQuotaExceeded = ( new RawContextKey('completionsQuotaExceeded', false, true));
|
|
133
133
|
ChatContextKeys.Editing = {
|
|
134
|
-
hasToolsAgent: ( new RawContextKey('chatHasToolsAgent', false, { type: 'boolean', description: ( localize(
|
|
135
|
-
agentMode: ( new RawContextKey('chatAgentMode', false, { type: 'boolean', description: ( localize(
|
|
134
|
+
hasToolsAgent: ( new RawContextKey('chatHasToolsAgent', false, { type: 'boolean', description: ( localize(4844, "True when a tools agent is registered.")) })),
|
|
135
|
+
agentMode: ( new RawContextKey('chatAgentMode', false, { type: 'boolean', description: ( localize(4845, "True when edits is in agent mode.")) })),
|
|
136
136
|
agentModeDisallowed: ( new RawContextKey(
|
|
137
137
|
'chatAgentModeDisallowed',
|
|
138
138
|
undefined,
|
|
139
|
-
{ type: 'boolean', description: ( localize(
|
|
139
|
+
{ type: 'boolean', description: ( localize(4846, "True when agent mode is not allowed.")) }
|
|
140
140
|
)),
|
|
141
141
|
hasToolConfirmation: ( new RawContextKey(
|
|
142
142
|
'chatHasToolConfirmation',
|
|
143
143
|
false,
|
|
144
|
-
{ type: 'boolean', description: ( localize(
|
|
144
|
+
{ type: 'boolean', description: ( localize(4847, "True when a tool confirmation is present.")) }
|
|
145
145
|
)),
|
|
146
146
|
};
|
|
147
147
|
})(ChatContextKeys || (ChatContextKeys = {}));
|
|
@@ -32,13 +32,13 @@ var ChatEditingSessionState;
|
|
|
32
32
|
ChatEditingSessionState[ChatEditingSessionState["Disposed"] = 3] = "Disposed";
|
|
33
33
|
})(ChatEditingSessionState || (ChatEditingSessionState = {}));
|
|
34
34
|
const CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME = 'chat-editing-multi-diff-source';
|
|
35
|
-
const chatEditingWidgetFileStateContextKey = ( new RawContextKey('chatEditingWidgetFileState', undefined, ( localize(
|
|
35
|
+
const chatEditingWidgetFileStateContextKey = ( new RawContextKey('chatEditingWidgetFileState', undefined, ( localize(4848, "The current state of the file in the chat editing widget"))));
|
|
36
36
|
const chatEditingWidgetFileReadonlyContextKey = ( new RawContextKey('chatEditingWidgetFileReadonly', undefined, ( localize(
|
|
37
|
-
|
|
37
|
+
4849,
|
|
38
38
|
"Whether the file has been marked as read-only in the chat editing widget"
|
|
39
39
|
))));
|
|
40
40
|
const chatEditingAgentSupportsReadonlyReferencesContextKey = ( new RawContextKey('chatEditingAgentSupportsReadonlyReferences', undefined, ( localize(
|
|
41
|
-
|
|
41
|
+
4850,
|
|
42
42
|
"Whether the chat editing agent supports readonly references (temporary)"
|
|
43
43
|
))));
|
|
44
44
|
const decidedChatEditingResourceContextKey = ( new RawContextKey('decidedChatEditingResource', []));
|
|
@@ -24,14 +24,14 @@ const languageModelType = {
|
|
|
24
24
|
properties: {
|
|
25
25
|
vendor: {
|
|
26
26
|
type: 'string',
|
|
27
|
-
description: ( localize(
|
|
27
|
+
description: ( localize(4862, "A globally unique vendor of language models."))
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
const languageModelExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
32
32
|
extensionPoint: 'languageModels',
|
|
33
33
|
jsonSchema: {
|
|
34
|
-
description: ( localize(
|
|
34
|
+
description: ( localize(4863, "Contribute language models of a specific vendor.")),
|
|
35
35
|
oneOf: [
|
|
36
36
|
languageModelType,
|
|
37
37
|
{
|
|
@@ -61,24 +61,24 @@ let LanguageModelsService = class LanguageModelsService {
|
|
|
61
61
|
this._vendors.clear();
|
|
62
62
|
for (const extension of extensions) {
|
|
63
63
|
if (!isProposedApiEnabled(extension.description, 'chatProvider')) {
|
|
64
|
-
extension.collector.error(( localize(
|
|
64
|
+
extension.collector.error(( localize(4864, "This contribution point requires the 'chatProvider' proposal.")));
|
|
65
65
|
continue;
|
|
66
66
|
}
|
|
67
67
|
for (const item of Iterable.wrap(extension.value)) {
|
|
68
68
|
if (( this._vendors.has(item.vendor))) {
|
|
69
69
|
extension.collector.error(( localize(
|
|
70
|
-
|
|
70
|
+
4865,
|
|
71
71
|
"The vendor '{0}' is already registered and cannot be registered twice",
|
|
72
72
|
item.vendor
|
|
73
73
|
)));
|
|
74
74
|
continue;
|
|
75
75
|
}
|
|
76
76
|
if (isFalsyOrWhitespace(item.vendor)) {
|
|
77
|
-
extension.collector.error(( localize(
|
|
77
|
+
extension.collector.error(( localize(4866, "The vendor field cannot be empty.")));
|
|
78
78
|
continue;
|
|
79
79
|
}
|
|
80
80
|
if (item.vendor.trim() !== item.vendor) {
|
|
81
|
-
extension.collector.error(( localize(
|
|
81
|
+
extension.collector.error(( localize(4867, "The vendor field cannot start or end with whitespace.")));
|
|
82
82
|
continue;
|
|
83
83
|
}
|
|
84
84
|
this._vendors.add(item.vendor);
|
|
@@ -37,7 +37,7 @@ const ExtensionEditToolId = 'vscode_editFile';
|
|
|
37
37
|
const InternalEditToolId = 'vscode_editFile_internal';
|
|
38
38
|
const EditToolData = {
|
|
39
39
|
id: InternalEditToolId,
|
|
40
|
-
displayName: ( localize(
|
|
40
|
+
displayName: ( localize(4872, "Edit File")),
|
|
41
41
|
modelDescription: `Edit a file in the workspace. Use this tool once per file that needs to be modified, even if there are multiple changes for a file. Generate the "explanation" property first. ${codeInstructions}`,
|
|
42
42
|
inputSchema: {
|
|
43
43
|
type: 'object',
|
|
@@ -18,17 +18,17 @@ const createCodeActionsAutoSave = (description) => {
|
|
|
18
18
|
enum: ['always', 'explicit', 'never', true, false],
|
|
19
19
|
enumDescriptions: [
|
|
20
20
|
( localize(
|
|
21
|
-
|
|
21
|
+
4891,
|
|
22
22
|
'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'
|
|
23
23
|
)),
|
|
24
|
-
( localize(
|
|
25
|
-
( localize(
|
|
24
|
+
( localize(4892, 'Triggers Code Actions only when explicitly saved')),
|
|
25
|
+
( localize(4893, 'Never triggers Code Actions on save')),
|
|
26
26
|
( localize(
|
|
27
|
-
|
|
27
|
+
4894,
|
|
28
28
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
|
|
29
29
|
)),
|
|
30
30
|
( localize(
|
|
31
|
-
|
|
31
|
+
4895,
|
|
32
32
|
'Never triggers Code Actions on save. This value will be deprecated in favor of "never".'
|
|
33
33
|
))
|
|
34
34
|
],
|
|
@@ -41,14 +41,14 @@ const createNotebookCodeActionsAutoSave = (description) => {
|
|
|
41
41
|
type: ['string', 'boolean'],
|
|
42
42
|
enum: ['explicit', 'never', true, false],
|
|
43
43
|
enumDescriptions: [
|
|
44
|
-
( localize(
|
|
45
|
-
( localize(
|
|
44
|
+
( localize(4896, 'Triggers Code Actions only when explicitly saved.')),
|
|
45
|
+
( localize(4897, 'Never triggers Code Actions on save.')),
|
|
46
46
|
( localize(
|
|
47
|
-
|
|
47
|
+
4898,
|
|
48
48
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
|
|
49
49
|
)),
|
|
50
50
|
( localize(
|
|
51
|
-
|
|
51
|
+
4899,
|
|
52
52
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "never".'
|
|
53
53
|
))
|
|
54
54
|
],
|
|
@@ -70,7 +70,7 @@ const codeActionsOnSaveSchema = {
|
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
markdownDescription: ( localize(
|
|
73
|
-
|
|
73
|
+
4900,
|
|
74
74
|
'Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. When {0} is set to `afterDelay`, Code Actions will only be run when the file is saved explicitly. Example: `"source.organizeImports": "explicit" `',
|
|
75
75
|
'`#files.autoSave#`'
|
|
76
76
|
)),
|
|
@@ -102,7 +102,7 @@ const notebookCodeActionsOnSaveSchema = {
|
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
markdownDescription: ( localize(
|
|
105
|
-
|
|
105
|
+
4901,
|
|
106
106
|
'Run a series of Code Actions for a notebook on save. Code Actions must be specified and the editor must not be shutting down. When {0} is set to `afterDelay`, Code Actions will only be run when the file is saved explicitly. Example: `"notebook.source.organizeImports": "explicit"`',
|
|
107
107
|
'`#files.autoSave#`'
|
|
108
108
|
)),
|
|
@@ -150,12 +150,12 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
|
|
|
150
150
|
for (const codeActionKind of allProvidedKinds) {
|
|
151
151
|
if (CodeActionKind.Source.contains(codeActionKind) && !properties[codeActionKind.value]) {
|
|
152
152
|
properties[codeActionKind.value] = createCodeActionsAutoSave(( localize(
|
|
153
|
-
|
|
153
|
+
4902,
|
|
154
154
|
"Controls whether '{0}' actions should be run on file save.",
|
|
155
155
|
codeActionKind.value
|
|
156
156
|
)));
|
|
157
157
|
notebookProperties[codeActionKind.value] = createNotebookCodeActionsAutoSave(( localize(
|
|
158
|
-
|
|
158
|
+
4902,
|
|
159
159
|
"Controls whether '{0}' actions should be run on file save.",
|
|
160
160
|
codeActionKind.value
|
|
161
161
|
)));
|
|
@@ -29,12 +29,12 @@ import { isWindows } from '../../../../../base/common/platform.js';
|
|
|
29
29
|
|
|
30
30
|
var EditorDictation_1;
|
|
31
31
|
const EDITOR_DICTATION_IN_PROGRESS = ( new RawContextKey('editorDictation.inProgress', false));
|
|
32
|
-
const VOICE_CATEGORY = ( localize2(
|
|
32
|
+
const VOICE_CATEGORY = ( localize2(4905, "Voice"));
|
|
33
33
|
class EditorDictationStartAction extends EditorAction2 {
|
|
34
34
|
constructor() {
|
|
35
35
|
super({
|
|
36
36
|
id: 'workbench.action.editorDictation.start',
|
|
37
|
-
title: ( localize2(
|
|
37
|
+
title: ( localize2(4906, "Start Dictation in Editor")),
|
|
38
38
|
category: VOICE_CATEGORY,
|
|
39
39
|
precondition: ( ContextKeyExpr.and(HasSpeechProvider, ( SpeechToTextInProgress.toNegated()), (
|
|
40
40
|
EditorContextKeys.readOnly.toNegated()))),
|
|
@@ -71,7 +71,7 @@ class EditorDictationStopAction extends EditorAction2 {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
super({
|
|
73
73
|
id: EditorDictationStopAction.ID,
|
|
74
|
-
title: ( localize2(
|
|
74
|
+
title: ( localize2(4907, "Stop Dictation in Editor")),
|
|
75
75
|
category: VOICE_CATEGORY,
|
|
76
76
|
precondition: EDITOR_DICTATION_IN_PROGRESS,
|
|
77
77
|
f1: true,
|
|
@@ -96,7 +96,7 @@ class DictationWidget extends Disposable {
|
|
|
96
96
|
const stopActionKeybinding = keybindingService.lookupKeybinding(EditorDictationStopAction.ID)?.getLabel();
|
|
97
97
|
actionBar.push(toAction({
|
|
98
98
|
id: EditorDictationStopAction.ID,
|
|
99
|
-
label: stopActionKeybinding ? ( localize(
|
|
99
|
+
label: stopActionKeybinding ? ( localize(4908, "Stop Dictation ({0})", stopActionKeybinding)) : ( localize(4909, "Stop Dictation")),
|
|
100
100
|
class: ThemeIcon.asClassName(Codicon.micFilled),
|
|
101
101
|
run: () => EditorDictation.get(editor)?.stop()
|
|
102
102
|
}), { icon: true, label: false, keybinding: stopActionKeybinding });
|
|
@@ -31,19 +31,19 @@ class DiffEditorAccessibilityHelp {
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
const switchSides = ( localize(
|
|
34
|
-
|
|
34
|
+
4910,
|
|
35
35
|
"Run the command Diff Editor: Switch Side{0} to toggle between the original and modified editors.",
|
|
36
36
|
'<keybinding:diffEditor.switchSide>'
|
|
37
37
|
));
|
|
38
38
|
const diffEditorActiveAnnouncement = ( localize(
|
|
39
|
-
|
|
39
|
+
4911,
|
|
40
40
|
"The setting, accessibility.verbosity.diffEditorActive, controls if a diff editor announcement is made when it becomes the active editor."
|
|
41
41
|
));
|
|
42
42
|
const keys = ['accessibility.signals.diffLineDeleted', 'accessibility.signals.diffLineInserted', 'accessibility.signals.diffLineModified'];
|
|
43
43
|
const content = [
|
|
44
|
-
( localize(
|
|
44
|
+
( localize(4912, "You are in a diff editor.")),
|
|
45
45
|
( localize(
|
|
46
|
-
|
|
46
|
+
4913,
|
|
47
47
|
"View the next{0} or previous{1} diff in diff review mode, which is optimized for screen readers.",
|
|
48
48
|
'<keybinding:' + AccessibleDiffViewerNext.id + '>',
|
|
49
49
|
'<keybinding:' + AccessibleDiffViewerPrev.id + '>'
|
|
@@ -51,7 +51,7 @@ class DiffEditorAccessibilityHelp {
|
|
|
51
51
|
switchSides,
|
|
52
52
|
diffEditorActiveAnnouncement,
|
|
53
53
|
( localize(
|
|
54
|
-
|
|
54
|
+
4914,
|
|
55
55
|
"To control which accessibility signals should be played, the following settings can be configured: {0}.",
|
|
56
56
|
keys.join(', ')
|
|
57
57
|
)),
|
|
@@ -32,7 +32,7 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
32
32
|
const onlyWhiteSpaceChange = ( computationResult.map(r => r && !r.identical && r.changes2.length === 0));
|
|
33
33
|
this._register(autorunWithStore((reader, store) => {
|
|
34
34
|
if (onlyWhiteSpaceChange.read(reader)) {
|
|
35
|
-
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(
|
|
35
|
+
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(4915, "Show Whitespace Differences")), null));
|
|
36
36
|
store.add(helperWidget.onClick(() => {
|
|
37
37
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.ignoreTrimWhitespace', false);
|
|
38
38
|
}));
|
|
@@ -43,11 +43,11 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
43
43
|
const diffComputationResult = this._diffEditor.getDiffComputationResult();
|
|
44
44
|
if (diffComputationResult && diffComputationResult.quitEarly) {
|
|
45
45
|
this._notificationService.prompt(Severity$1.Warning, ( localize(
|
|
46
|
-
|
|
46
|
+
4916,
|
|
47
47
|
"The diff algorithm was stopped early (after {0} ms.)",
|
|
48
48
|
this._diffEditor.maxComputationTime
|
|
49
49
|
)), [{
|
|
50
|
-
label: ( localize(
|
|
50
|
+
label: ( localize(4917, "Remove Limit")),
|
|
51
51
|
run: () => {
|
|
52
52
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.maxComputationTime', 0);
|
|
53
53
|
}
|
|
@@ -26,16 +26,16 @@ let LargeFileOptimizationsWarner = class LargeFileOptimizationsWarner extends Di
|
|
|
26
26
|
}
|
|
27
27
|
if (model.isTooLargeForTokenization()) {
|
|
28
28
|
const message = ( localize(
|
|
29
|
-
|
|
29
|
+
4937,
|
|
30
30
|
"{0}: tokenization, wrapping, folding, codelens, word highlighting and sticky scroll have been turned off for this large file in order to reduce memory usage and avoid freezing or crashing.",
|
|
31
31
|
basename(model.uri.path)
|
|
32
32
|
));
|
|
33
33
|
this._notificationService.prompt(Severity$1.Info, message, [
|
|
34
34
|
{
|
|
35
|
-
label: ( localize(
|
|
35
|
+
label: ( localize(4938, "Forcefully Enable Features")),
|
|
36
36
|
run: () => {
|
|
37
37
|
this._configurationService.updateValue(`editor.largeFileOptimizations`, false).then(() => {
|
|
38
|
-
this._notificationService.info(( localize(
|
|
38
|
+
this._notificationService.info(( localize(4939, "Please reopen file in order for this setting to take effect.")));
|
|
39
39
|
}, (err) => {
|
|
40
40
|
this._notificationService.error(err);
|
|
41
41
|
});
|
|
@@ -192,7 +192,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
192
192
|
const nestedProgress = ( new Progress(provider => {
|
|
193
193
|
progress.report({
|
|
194
194
|
message: ( localize(
|
|
195
|
-
|
|
195
|
+
4954,
|
|
196
196
|
"Running '{0}' Formatter ([configure]({1})).",
|
|
197
197
|
provider.displayName || provider.extensionId && provider.extensionId.value || '???',
|
|
198
198
|
'command:workbench.action.openSettings?%5B%22editor.formatOnSave%22%5D'
|
|
@@ -301,7 +301,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
301
301
|
: ( ( Object.keys(setting))
|
|
302
302
|
.filter(x => setting[x] === 'never' || false)
|
|
303
303
|
.map(x => ( new HierarchicalKind(x))));
|
|
304
|
-
progress.report({ message: ( localize(
|
|
304
|
+
progress.report({ message: ( localize(4955, "Quick Fixes")) });
|
|
305
305
|
const filteredSaveList = Array.isArray(setting) ? codeActionsOnSave : codeActionsOnSave.filter(x => setting[x.value] === 'always' || ((setting[x.value] === 'explicit' || setting[x.value] === true) && context.reason === SaveReason.EXPLICIT));
|
|
306
306
|
await this.applyOnSaveActions(textEditorModel, filteredSaveList, excludedActions, progress, token);
|
|
307
307
|
}
|
|
@@ -319,7 +319,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
319
319
|
_report() {
|
|
320
320
|
progress.report({
|
|
321
321
|
message: ( localize(
|
|
322
|
-
|
|
322
|
+
4956,
|
|
323
323
|
"Getting code actions from {0} ([configure]({1})).",
|
|
324
324
|
( [...this._names].map(name => `'${name}'`)).join(', '),
|
|
325
325
|
'command:workbench.action.openSettings?%5B%22editor.codeActionsOnSave%22%5D'
|
|
@@ -341,7 +341,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
341
341
|
}
|
|
342
342
|
try {
|
|
343
343
|
for (const action of actionsToRun.validActions) {
|
|
344
|
-
progress.report({ message: ( localize(
|
|
344
|
+
progress.report({ message: ( localize(4957, "Applying code action '{0}'.", action.action.title)) });
|
|
345
345
|
await this.instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
346
346
|
if (token.isCancellationRequested) {
|
|
347
347
|
return;
|
|
@@ -11,8 +11,8 @@ class ToggleMinimapAction extends Action2 {
|
|
|
11
11
|
super({
|
|
12
12
|
id: ToggleMinimapAction.ID,
|
|
13
13
|
title: {
|
|
14
|
-
...( localize2(
|
|
15
|
-
mnemonicTitle: ( localize(
|
|
14
|
+
...( localize2(4958, "Toggle Minimap")),
|
|
15
|
+
mnemonicTitle: ( localize(4959, "&&Minimap")),
|
|
16
16
|
},
|
|
17
17
|
category: Categories.View,
|
|
18
18
|
f1: true,
|
|
@@ -17,7 +17,7 @@ class ToggleMultiCursorModifierAction extends Action2 {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: ToggleMultiCursorModifierAction.ID,
|
|
20
|
-
title: ( localize2(
|
|
20
|
+
title: ( localize2(4960, 'Toggle Multi-Cursor Modifier')),
|
|
21
21
|
f1: true
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -57,7 +57,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSelectionMenu, {
|
|
|
57
57
|
group: '4_config',
|
|
58
58
|
command: {
|
|
59
59
|
id: ToggleMultiCursorModifierAction.ID,
|
|
60
|
-
title: ( localize(
|
|
60
|
+
title: ( localize(4961, "Switch to Alt+Click for Multi-Cursor"))
|
|
61
61
|
},
|
|
62
62
|
when: ( multiCursorModifier.isEqualTo('ctrlCmd')),
|
|
63
63
|
order: 1
|
|
@@ -67,8 +67,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSelectionMenu, {
|
|
|
67
67
|
command: {
|
|
68
68
|
id: ToggleMultiCursorModifierAction.ID,
|
|
69
69
|
title: (isMacintosh
|
|
70
|
-
? ( localize(
|
|
71
|
-
: ( localize(
|
|
70
|
+
? ( localize(4962, "Switch to Cmd+Click for Multi-Cursor"))
|
|
71
|
+
: ( localize(4963, "Switch to Ctrl+Click for Multi-Cursor")))
|
|
72
72
|
},
|
|
73
73
|
when: ( multiCursorModifier.isEqualTo('altKey')),
|
|
74
74
|
order: 1
|