monaco-editor-core 0.55.0-dev-20251020 → 0.55.0-dev-20251022
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +17 -5
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/browser/ui/iconLabel/iconlabel.css +2 -3
- package/esm/vs/base/common/actions.js +5 -0
- package/esm/vs/base/common/actions.js.map +1 -1
- package/esm/vs/base/common/async.js +5 -5
- package/esm/vs/base/common/async.js.map +1 -1
- package/esm/vs/base/common/codiconsLibrary.js +1 -0
- package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
- package/esm/vs/base/common/policy.js +40 -1
- package/esm/vs/base/common/policy.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +20 -12
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
- package/esm/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/esm/vs/editor/browser/coreCommands.js +3 -3
- package/esm/vs/editor/browser/editorExtensions.js +9 -9
- package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/esm/vs/editor/browser/services/hoverService/hoverWidget.js +1 -3
- package/esm/vs/editor/browser/services/hoverService/hoverWidget.js.map +1 -1
- package/esm/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/esm/vs/editor/browser/services/inlineCompletionsService.js +4 -4
- package/esm/vs/editor/browser/services/inlineCompletionsService.js.map +1 -1
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
- package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/copySelection.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +6 -0
- package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/esm/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/esm/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +1 -0
- package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/esm/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/esm/vs/editor/common/config/editorOptions.js +406 -406
- package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
- package/esm/vs/editor/common/editorContextKeys.js +46 -46
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +10 -10
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
- package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/folding.js.map +1 -1
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js +22 -2
- package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +18 -51
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +2 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +0 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/telemetry.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +10 -10
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +35 -28
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js.map +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +8 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js.map +1 -1
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/package.json +2 -2
- package/version.txt +1 -1
|
@@ -30,10 +30,10 @@ export class IndentationToSpacesAction extends EditorAction {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super({
|
|
32
32
|
id: IndentationToSpacesAction.ID,
|
|
33
|
-
label: nls.localize2(
|
|
33
|
+
label: nls.localize2(1147, "Convert Indentation to Spaces"),
|
|
34
34
|
precondition: EditorContextKeys.writable,
|
|
35
35
|
metadata: {
|
|
36
|
-
description: nls.localize2(
|
|
36
|
+
description: nls.localize2(1148, "Convert the tab indentation to spaces."),
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -61,10 +61,10 @@ export class IndentationToTabsAction extends EditorAction {
|
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: IndentationToTabsAction.ID,
|
|
64
|
-
label: nls.localize2(
|
|
64
|
+
label: nls.localize2(1149, "Convert Indentation to Tabs"),
|
|
65
65
|
precondition: EditorContextKeys.writable,
|
|
66
66
|
metadata: {
|
|
67
|
-
description: nls.localize2(
|
|
67
|
+
description: nls.localize2(1150, "Convert the spaces indentation to tabs."),
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
}
|
|
@@ -107,17 +107,17 @@ export class ChangeIndentationSizeAction extends EditorAction {
|
|
|
107
107
|
label: n.toString(),
|
|
108
108
|
// add description for tabSize value set in the configuration
|
|
109
109
|
description: (n === creationOpts.tabSize && n === modelOpts.tabSize
|
|
110
|
-
? nls.localize(
|
|
110
|
+
? nls.localize(1143, "Configured Tab Size")
|
|
111
111
|
: n === creationOpts.tabSize
|
|
112
|
-
? nls.localize(
|
|
112
|
+
? nls.localize(1144, "Default Tab Size")
|
|
113
113
|
: n === modelOpts.tabSize
|
|
114
|
-
? nls.localize(
|
|
114
|
+
? nls.localize(1145, "Current Tab Size")
|
|
115
115
|
: undefined)
|
|
116
116
|
}));
|
|
117
117
|
// auto focus the tabSize set for the current editor
|
|
118
118
|
const autoFocusIndex = Math.min(model.getOptions().tabSize - 1, 7);
|
|
119
119
|
setTimeout(() => {
|
|
120
|
-
quickInputService.pick(picks, { placeHolder: nls.localize(
|
|
120
|
+
quickInputService.pick(picks, { placeHolder: nls.localize(1146, "Select Tab Size for Current File"), activeItem: picks[autoFocusIndex] }).then(pick => {
|
|
121
121
|
if (pick) {
|
|
122
122
|
if (model && !model.isDisposed()) {
|
|
123
123
|
const pickedVal = parseInt(pick.label, 10);
|
|
@@ -144,10 +144,10 @@ export class IndentUsingTabs extends ChangeIndentationSizeAction {
|
|
|
144
144
|
constructor() {
|
|
145
145
|
super(false, false, {
|
|
146
146
|
id: IndentUsingTabs.ID,
|
|
147
|
-
label: nls.localize2(
|
|
147
|
+
label: nls.localize2(1151, "Indent Using Tabs"),
|
|
148
148
|
precondition: undefined,
|
|
149
149
|
metadata: {
|
|
150
|
-
description: nls.localize2(
|
|
150
|
+
description: nls.localize2(1152, "Use indentation with tabs."),
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
}
|
|
@@ -157,10 +157,10 @@ export class IndentUsingSpaces extends ChangeIndentationSizeAction {
|
|
|
157
157
|
constructor() {
|
|
158
158
|
super(true, false, {
|
|
159
159
|
id: IndentUsingSpaces.ID,
|
|
160
|
-
label: nls.localize2(
|
|
160
|
+
label: nls.localize2(1153, "Indent Using Spaces"),
|
|
161
161
|
precondition: undefined,
|
|
162
162
|
metadata: {
|
|
163
|
-
description: nls.localize2(
|
|
163
|
+
description: nls.localize2(1154, "Use indentation with spaces."),
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -170,10 +170,10 @@ export class ChangeTabDisplaySize extends ChangeIndentationSizeAction {
|
|
|
170
170
|
constructor() {
|
|
171
171
|
super(true, true, {
|
|
172
172
|
id: ChangeTabDisplaySize.ID,
|
|
173
|
-
label: nls.localize2(
|
|
173
|
+
label: nls.localize2(1155, "Change Tab Display Size"),
|
|
174
174
|
precondition: undefined,
|
|
175
175
|
metadata: {
|
|
176
|
-
description: nls.localize2(
|
|
176
|
+
description: nls.localize2(1156, "Change the space size equivalent of the tab."),
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
}
|
|
@@ -183,10 +183,10 @@ export class DetectIndentation extends EditorAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: DetectIndentation.ID,
|
|
186
|
-
label: nls.localize2(
|
|
186
|
+
label: nls.localize2(1157, "Detect Indentation from Content"),
|
|
187
187
|
precondition: undefined,
|
|
188
188
|
metadata: {
|
|
189
|
-
description: nls.localize2(
|
|
189
|
+
description: nls.localize2(1158, "Detect the indentation from content."),
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
}
|
|
@@ -204,10 +204,10 @@ export class ReindentLinesAction extends EditorAction {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: 'editor.action.reindentlines',
|
|
207
|
-
label: nls.localize2(
|
|
207
|
+
label: nls.localize2(1159, "Reindent Lines"),
|
|
208
208
|
precondition: EditorContextKeys.writable,
|
|
209
209
|
metadata: {
|
|
210
|
-
description: nls.localize2(
|
|
210
|
+
description: nls.localize2(1160, "Reindent the lines of the editor."),
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
}
|
|
@@ -229,10 +229,10 @@ export class ReindentSelectedLinesAction extends EditorAction {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: 'editor.action.reindentselectedlines',
|
|
232
|
-
label: nls.localize2(
|
|
232
|
+
label: nls.localize2(1161, "Reindent Selected Lines"),
|
|
233
233
|
precondition: EditorContextKeys.writable,
|
|
234
234
|
metadata: {
|
|
235
|
-
description: nls.localize2(
|
|
235
|
+
description: nls.localize2(1162, "Reindent the selected lines of the editor."),
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
}
|
|
@@ -82,7 +82,7 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
82
82
|
}
|
|
83
83
|
// (1.2) Inlay dbl-click gesture
|
|
84
84
|
if (isNonEmptyArray(part.item.hint.textEdits)) {
|
|
85
|
-
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize(
|
|
85
|
+
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize(1163, "Double-click to insert"))], false, 10001));
|
|
86
86
|
}
|
|
87
87
|
// (2) Inlay Label Part Tooltip
|
|
88
88
|
let partTooltip;
|
|
@@ -101,19 +101,19 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
101
101
|
const useMetaKey = this._editor.getOption(86 /* EditorOption.multiCursorModifier */) === 'altKey';
|
|
102
102
|
const kb = useMetaKey
|
|
103
103
|
? platform.isMacintosh
|
|
104
|
-
? localize(
|
|
105
|
-
: localize(
|
|
104
|
+
? localize(1164, "cmd + click")
|
|
105
|
+
: localize(1165, "ctrl + click")
|
|
106
106
|
: platform.isMacintosh
|
|
107
|
-
? localize(
|
|
108
|
-
: localize(
|
|
107
|
+
? localize(1166, "option + click")
|
|
108
|
+
: localize(1167, "alt + click");
|
|
109
109
|
if (part.part.location && part.part.command) {
|
|
110
|
-
linkHint = new MarkdownString().appendText(localize(
|
|
110
|
+
linkHint = new MarkdownString().appendText(localize(1168, 'Go to Definition ({0}), right click for more', kb));
|
|
111
111
|
}
|
|
112
112
|
else if (part.part.location) {
|
|
113
|
-
linkHint = new MarkdownString().appendText(localize(
|
|
113
|
+
linkHint = new MarkdownString().appendText(localize(1169, 'Go to Definition ({0})', kb));
|
|
114
114
|
}
|
|
115
115
|
else if (part.part.command) {
|
|
116
|
-
linkHint = new MarkdownString(`[${localize(
|
|
116
|
+
linkHint = new MarkdownString(`[${localize(1170, "Execute Command")}](${asCommandLink(part.part.command)} "${part.part.command.title}") (${kb})`, { isTrusted: true });
|
|
117
117
|
}
|
|
118
118
|
if (linkHint) {
|
|
119
119
|
executor.emitOne(new MarkdownHover(this, anchor.range, [linkHint], false, 10000));
|
|
@@ -11,8 +11,7 @@ import { IClipboardService } from '../../../../../platform/clipboard/common/clip
|
|
|
11
11
|
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.js';
|
|
12
12
|
import { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js';
|
|
13
13
|
import { KeybindingsRegistry } from '../../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
14
|
-
import {
|
|
15
|
-
import { EditorAction, EditorCommand } from '../../../../browser/editorExtensions.js';
|
|
14
|
+
import { EditorAction } from '../../../../browser/editorExtensions.js';
|
|
16
15
|
import { EditorContextKeys } from '../../../../common/editorContextKeys.js';
|
|
17
16
|
import { Context as SuggestContext } from '../../../suggest/browser/suggest.js';
|
|
18
17
|
import { hideInlineCompletionId, inlineSuggestCommitId, jumpToNextInlineEditId, showNextInlineSuggestionActionId, showPreviousInlineSuggestionActionId, toggleShowCollapsedId } from './commandIds.js';
|
|
@@ -23,7 +22,7 @@ export class ShowNextInlineSuggestionAction extends EditorAction {
|
|
|
23
22
|
constructor() {
|
|
24
23
|
super({
|
|
25
24
|
id: ShowNextInlineSuggestionAction.ID,
|
|
26
|
-
label: nls.localize2(
|
|
25
|
+
label: nls.localize2(1179, "Show Next Inline Suggestion"),
|
|
27
26
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
28
27
|
kbOpts: {
|
|
29
28
|
weight: 100,
|
|
@@ -41,7 +40,7 @@ export class ShowPreviousInlineSuggestionAction extends EditorAction {
|
|
|
41
40
|
constructor() {
|
|
42
41
|
super({
|
|
43
42
|
id: ShowPreviousInlineSuggestionAction.ID,
|
|
44
|
-
label: nls.localize2(
|
|
43
|
+
label: nls.localize2(1180, "Show Previous Inline Suggestion"),
|
|
45
44
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
46
45
|
kbOpts: {
|
|
47
46
|
weight: 100,
|
|
@@ -58,7 +57,7 @@ export class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
58
57
|
constructor() {
|
|
59
58
|
super({
|
|
60
59
|
id: 'editor.action.inlineSuggest.trigger',
|
|
61
|
-
label: nls.localize2(
|
|
60
|
+
label: nls.localize2(1181, "Trigger Inline Suggestion"),
|
|
62
61
|
precondition: EditorContextKeys.writable
|
|
63
62
|
});
|
|
64
63
|
}
|
|
@@ -71,43 +70,11 @@ export class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
71
70
|
});
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
export class ExplicitTriggerInlineEditAction extends EditorAction {
|
|
75
|
-
constructor() {
|
|
76
|
-
super({
|
|
77
|
-
id: 'editor.action.inlineSuggest.triggerInlineEditExplicit',
|
|
78
|
-
label: nls.localize2(1178, "Trigger Next Edit Suggestion"),
|
|
79
|
-
precondition: EditorContextKeys.writable,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
async run(accessor, editor) {
|
|
83
|
-
const notificationService = accessor.get(INotificationService);
|
|
84
|
-
const controller = InlineCompletionsController.get(editor);
|
|
85
|
-
await controller?.model.get()?.triggerExplicitly(undefined, true);
|
|
86
|
-
if (!controller?.model.get()?.inlineEditAvailable.get()) {
|
|
87
|
-
notificationService.notify({
|
|
88
|
-
severity: Severity.Info,
|
|
89
|
-
message: nls.localize(1166, "No inline edit is available.")
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
export class TriggerInlineEditAction extends EditorCommand {
|
|
95
|
-
constructor() {
|
|
96
|
-
super({
|
|
97
|
-
id: 'editor.action.inlineSuggest.triggerInlineEdit',
|
|
98
|
-
precondition: EditorContextKeys.writable,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
async runEditorCommand(accessor, editor, args) {
|
|
102
|
-
const controller = InlineCompletionsController.get(editor);
|
|
103
|
-
await controller?.model.get()?.trigger(undefined, { onlyFetchInlineEdits: true });
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
73
|
export class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
107
74
|
constructor() {
|
|
108
75
|
super({
|
|
109
76
|
id: 'editor.action.inlineSuggest.acceptNextWord',
|
|
110
|
-
label: nls.localize2(
|
|
77
|
+
label: nls.localize2(1182, "Accept Next Word Of Inline Suggestion"),
|
|
111
78
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
112
79
|
kbOpts: {
|
|
113
80
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
@@ -116,7 +83,7 @@ export class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
116
83
|
},
|
|
117
84
|
menuOpts: [{
|
|
118
85
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
119
|
-
title: nls.localize(
|
|
86
|
+
title: nls.localize(1171, 'Accept Word'),
|
|
120
87
|
group: 'primary',
|
|
121
88
|
order: 2,
|
|
122
89
|
}],
|
|
@@ -131,14 +98,14 @@ export class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
131
98
|
constructor() {
|
|
132
99
|
super({
|
|
133
100
|
id: 'editor.action.inlineSuggest.acceptNextLine',
|
|
134
|
-
label: nls.localize2(
|
|
101
|
+
label: nls.localize2(1183, "Accept Next Line Of Inline Suggestion"),
|
|
135
102
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
136
103
|
kbOpts: {
|
|
137
104
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
138
105
|
},
|
|
139
106
|
menuOpts: [{
|
|
140
107
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
141
|
-
title: nls.localize(
|
|
108
|
+
title: nls.localize(1172, 'Accept Line'),
|
|
142
109
|
group: 'secondary',
|
|
143
110
|
order: 2,
|
|
144
111
|
}],
|
|
@@ -153,16 +120,16 @@ export class AcceptInlineCompletion extends EditorAction {
|
|
|
153
120
|
constructor() {
|
|
154
121
|
super({
|
|
155
122
|
id: inlineSuggestCommitId,
|
|
156
|
-
label: nls.localize2(
|
|
123
|
+
label: nls.localize2(1184, "Accept Inline Suggestion"),
|
|
157
124
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
158
125
|
menuOpts: [{
|
|
159
126
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
160
|
-
title: nls.localize(
|
|
127
|
+
title: nls.localize(1173, "Accept"),
|
|
161
128
|
group: 'primary',
|
|
162
129
|
order: 2,
|
|
163
130
|
}, {
|
|
164
131
|
menuId: MenuId.InlineEditsActions,
|
|
165
|
-
title: nls.localize(
|
|
132
|
+
title: nls.localize(1174, "Accept"),
|
|
166
133
|
group: 'primary',
|
|
167
134
|
order: 2,
|
|
168
135
|
}],
|
|
@@ -193,11 +160,11 @@ export class JumpToNextInlineEdit extends EditorAction {
|
|
|
193
160
|
constructor() {
|
|
194
161
|
super({
|
|
195
162
|
id: jumpToNextInlineEditId,
|
|
196
|
-
label: nls.localize2(
|
|
163
|
+
label: nls.localize2(1185, "Jump to next inline edit"),
|
|
197
164
|
precondition: InlineCompletionContextKeys.inlineEditVisible,
|
|
198
165
|
menuOpts: [{
|
|
199
166
|
menuId: MenuId.InlineEditsActions,
|
|
200
|
-
title: nls.localize(
|
|
167
|
+
title: nls.localize(1175, "Jump"),
|
|
201
168
|
group: 'primary',
|
|
202
169
|
order: 1,
|
|
203
170
|
when: InlineCompletionContextKeys.cursorAtInlineEdit.toNegated(),
|
|
@@ -221,7 +188,7 @@ export class HideInlineCompletion extends EditorAction {
|
|
|
221
188
|
constructor() {
|
|
222
189
|
super({
|
|
223
190
|
id: HideInlineCompletion.ID,
|
|
224
|
-
label: nls.localize2(
|
|
191
|
+
label: nls.localize2(1186, "Hide Inline Suggestion"),
|
|
225
192
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
226
193
|
kbOpts: {
|
|
227
194
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 90, // same as hiding the suggest widget
|
|
@@ -229,7 +196,7 @@ export class HideInlineCompletion extends EditorAction {
|
|
|
229
196
|
},
|
|
230
197
|
menuOpts: [{
|
|
231
198
|
menuId: MenuId.InlineEditsActions,
|
|
232
|
-
title: nls.localize(
|
|
199
|
+
title: nls.localize(1176, "Reject"),
|
|
233
200
|
group: 'primary',
|
|
234
201
|
order: 3,
|
|
235
202
|
}]
|
|
@@ -248,7 +215,7 @@ export class ToggleInlineCompletionShowCollapsed extends EditorAction {
|
|
|
248
215
|
constructor() {
|
|
249
216
|
super({
|
|
250
217
|
id: ToggleInlineCompletionShowCollapsed.ID,
|
|
251
|
-
label: nls.localize2(
|
|
218
|
+
label: nls.localize2(1187, "Toggle Inline Suggestions Show Collapsed"),
|
|
252
219
|
precondition: ContextKeyExpr.true(),
|
|
253
220
|
});
|
|
254
221
|
}
|
|
@@ -270,7 +237,7 @@ export class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {
|
|
|
270
237
|
constructor() {
|
|
271
238
|
super({
|
|
272
239
|
id: ToggleAlwaysShowInlineSuggestionToolbar.ID,
|
|
273
|
-
title: nls.localize(
|
|
240
|
+
title: nls.localize(1177, "Always Show Toolbar"),
|
|
274
241
|
f1: false,
|
|
275
242
|
precondition: undefined,
|
|
276
243
|
menu: [{
|
|
@@ -292,7 +259,7 @@ export class DevExtractReproSample extends EditorAction {
|
|
|
292
259
|
constructor() {
|
|
293
260
|
super({
|
|
294
261
|
id: 'editor.action.inlineSuggest.dev.extractRepro',
|
|
295
|
-
label: nls.localize(
|
|
262
|
+
label: nls.localize(1178, "Developer: Extract Inline Suggest State"),
|
|
296
263
|
alias: 'Developer: Inline Suggest Extract Repro',
|
|
297
264
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineEditVisible, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
298
265
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["vs/editor/contrib/inlineCompletions/browser/controller/commands.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAGhG,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+DAA+D,CAAC;AACnH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,mBA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BAAiB,CAAC,CAAC;QAEzD,MAAM,UAAU,GAAG,2BAA2B,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3D,MAAM,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC;QAClC,IAAI,CAAC,CAAC,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QACnB,MAAM,KAAK,GAAG,CAAC,CAAC,kBAAkB,EAAE,CAAC;QAErC,MAAM,qBAAqB,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAEhH,MAAM,IAAI,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElE,MAAM,QAAQ,GAAG,GAAG,KAAK,CAAC,aAAa,kBAAkB,IAAI,gBAAgB,CAAC;QAE9E,MAAM,gBAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAE3C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;IAChC,CAAC;CACD","file":"commands.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { KeyCode, KeyMod } from '../../../../../base/common/keyCodes.js';\nimport { asyncTransaction, transaction } from '../../../../../base/common/observable.js';\nimport { splitLines } from '../../../../../base/common/strings.js';\nimport * as nls from '../../../../../nls.js';\nimport { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from '../../../../../platform/accessibility/common/accessibility.js';\nimport { Action2, MenuId } from '../../../../../platform/actions/common/actions.js';\nimport { IClipboardService } from '../../../../../platform/clipboard/common/clipboardService.js';\nimport { IConfigurationService } from '../../../../../platform/configuration/common/configuration.js';\nimport { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js';\nimport { KeybindingsRegistry, KeybindingWeight } from '../../../../../platform/keybinding/common/keybindingsRegistry.js';\nimport { INotificationService, Severity } from '../../../../../platform/notification/common/notification.js';\nimport { ICodeEditor } from '../../../../browser/editorBrowser.js';\nimport { EditorAction, EditorCommand, ServicesAccessor } from '../../../../browser/editorExtensions.js';\nimport { EditorContextKeys } from '../../../../common/editorContextKeys.js';\nimport { Context as SuggestContext } from '../../../suggest/browser/suggest.js';\nimport { hideInlineCompletionId, inlineSuggestCommitId, jumpToNextInlineEditId, showNextInlineSuggestionActionId, showPreviousInlineSuggestionActionId, toggleShowCollapsedId } from './commandIds.js';\nimport { InlineCompletionContextKeys } from './inlineCompletionContextKeys.js';\nimport { InlineCompletionsController } from './inlineCompletionsController.js';\n\nexport class ShowNextInlineSuggestionAction extends EditorAction {\n\tpublic static ID = showNextInlineSuggestionActionId;\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: ShowNextInlineSuggestionAction.ID,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.showNext', \"Show Next Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: 100,\n\t\t\t\tprimary: KeyMod.Alt | KeyCode.BracketRight,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tcontroller?.model.get()?.next();\n\t}\n}\n\nexport class ShowPreviousInlineSuggestionAction extends EditorAction {\n\tpublic static ID = showPreviousInlineSuggestionActionId;\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: ShowPreviousInlineSuggestionAction.ID,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.showPrevious', \"Show Previous Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: 100,\n\t\t\t\tprimary: KeyMod.Alt | KeyCode.BracketLeft,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tcontroller?.model.get()?.previous();\n\t}\n}\n\nexport class TriggerInlineSuggestionAction extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.trigger',\n\t\t\tlabel: nls.localize2('action.inlineSuggest.trigger', \"Trigger Inline Suggestion\"),\n\t\t\tprecondition: EditorContextKeys.writable\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tawait asyncTransaction(async tx => {\n\t\t\t/** @description triggerExplicitly from command */\n\t\t\tawait controller?.model.get()?.triggerExplicitly(tx);\n\t\t\tcontroller?.playAccessibilitySignal(tx);\n\t\t});\n\t}\n}\n\nexport class ExplicitTriggerInlineEditAction extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.triggerInlineEditExplicit',\n\t\t\tlabel: nls.localize2('action.inlineSuggest.trigger.explicitInlineEdit', \"Trigger Next Edit Suggestion\"),\n\t\t\tprecondition: EditorContextKeys.writable,\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst notificationService = accessor.get(INotificationService);\n\t\tconst controller = InlineCompletionsController.get(editor);\n\n\t\tawait controller?.model.get()?.triggerExplicitly(undefined, true);\n\t\tif (!controller?.model.get()?.inlineEditAvailable.get()) {\n\t\t\tnotificationService.notify({\n\t\t\t\tseverity: Severity.Info,\n\t\t\t\tmessage: nls.localize('noInlineEditAvailable', \"No inline edit is available.\")\n\t\t\t});\n\t\t}\n\t}\n}\n\nexport class TriggerInlineEditAction extends EditorCommand {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.triggerInlineEdit',\n\t\t\tprecondition: EditorContextKeys.writable,\n\t\t});\n\t}\n\n\tpublic override async runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, args: { triggerKind?: 'automatic' | 'explicit' }): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tawait controller?.model.get()?.trigger(undefined, { onlyFetchInlineEdits: true });\n\t}\n}\n\nexport class AcceptNextWordOfInlineCompletion extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.acceptNextWord',\n\t\t\tlabel: nls.localize2('action.inlineSuggest.acceptNextWord', \"Accept Next Word Of Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: KeybindingWeight.EditorContrib + 1,\n\t\t\t\tprimary: KeyMod.CtrlCmd | KeyCode.RightArrow,\n\t\t\t\tkbExpr: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.cursorBeforeGhostText, CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()),\n\t\t\t},\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineSuggestionToolbar,\n\t\t\t\ttitle: nls.localize('acceptWord', 'Accept Word'),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 2,\n\t\t\t}],\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tawait controller?.model.get()?.acceptNextWord();\n\t}\n}\n\nexport class AcceptNextLineOfInlineCompletion extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.acceptNextLine',\n\t\t\tlabel: nls.localize2('action.inlineSuggest.acceptNextLine', \"Accept Next Line Of Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: KeybindingWeight.EditorContrib + 1,\n\t\t\t},\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineSuggestionToolbar,\n\t\t\t\ttitle: nls.localize('acceptLine', 'Accept Line'),\n\t\t\t\tgroup: 'secondary',\n\t\t\t\torder: 2,\n\t\t\t}],\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tawait controller?.model.get()?.acceptNextLine();\n\t}\n}\n\nexport class AcceptInlineCompletion extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: inlineSuggestCommitId,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.accept', \"Accept Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineSuggestionToolbar,\n\t\t\t\ttitle: nls.localize('accept', \"Accept\"),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 2,\n\t\t\t}, {\n\t\t\t\tmenuId: MenuId.InlineEditsActions,\n\t\t\t\ttitle: nls.localize('accept', \"Accept\"),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 2,\n\t\t\t}],\n\t\t\tkbOpts: [\n\t\t\t\t{\n\t\t\t\t\tprimary: KeyCode.Tab,\n\t\t\t\t\tweight: 200,\n\t\t\t\t\tkbExpr: ContextKeyExpr.or(\n\t\t\t\t\t\tContextKeyExpr.and(\n\t\t\t\t\t\t\tInlineCompletionContextKeys.inlineSuggestionVisible,\n\t\t\t\t\t\t\tEditorContextKeys.tabMovesFocus.toNegated(),\n\t\t\t\t\t\t\tSuggestContext.Visible.toNegated(),\n\t\t\t\t\t\t\tEditorContextKeys.hoverFocused.toNegated(),\n\t\t\t\t\t\t\tInlineCompletionContextKeys.hasSelection.toNegated(),\n\n\t\t\t\t\t\t\tInlineCompletionContextKeys.inlineSuggestionHasIndentationLessThanTabSize,\n\t\t\t\t\t\t),\n\t\t\t\t\t\tContextKeyExpr.and(\n\t\t\t\t\t\t\tInlineCompletionContextKeys.inlineEditVisible,\n\t\t\t\t\t\t\tEditorContextKeys.tabMovesFocus.toNegated(),\n\t\t\t\t\t\t\tSuggestContext.Visible.toNegated(),\n\t\t\t\t\t\t\tEditorContextKeys.hoverFocused.toNegated(),\n\n\t\t\t\t\t\t\tInlineCompletionContextKeys.tabShouldAcceptInlineEdit,\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t}\n\t\t\t],\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.getInFocusedEditorOrParent(accessor);\n\t\tif (controller) {\n\t\t\tcontroller.model.get()?.accept(controller.editor);\n\t\t\tcontroller.editor.focus();\n\t\t}\n\t}\n}\nKeybindingsRegistry.registerKeybindingRule({\n\tid: inlineSuggestCommitId,\n\tweight: 202, // greater than jump\n\tprimary: KeyCode.Tab,\n\twhen: ContextKeyExpr.and(InlineCompletionContextKeys.inInlineEditsPreviewEditor)\n});\n\nexport class JumpToNextInlineEdit extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: jumpToNextInlineEditId,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.jump', \"Jump to next inline edit\"),\n\t\t\tprecondition: InlineCompletionContextKeys.inlineEditVisible,\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineEditsActions,\n\t\t\t\ttitle: nls.localize('jump', \"Jump\"),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 1,\n\t\t\t\twhen: InlineCompletionContextKeys.cursorAtInlineEdit.toNegated(),\n\t\t\t}],\n\t\t\tkbOpts: {\n\t\t\t\tprimary: KeyCode.Tab,\n\t\t\t\tweight: 201,\n\t\t\t\tkbExpr: ContextKeyExpr.and(\n\t\t\t\t\tInlineCompletionContextKeys.inlineEditVisible,\n\t\t\t\t\tEditorContextKeys.tabMovesFocus.toNegated(),\n\t\t\t\t\tSuggestContext.Visible.toNegated(),\n\t\t\t\t\tEditorContextKeys.hoverFocused.toNegated(),\n\t\t\t\t\tInlineCompletionContextKeys.tabShouldJumpToInlineEdit,\n\t\t\t\t),\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tif (controller) {\n\t\t\tcontroller.jump();\n\t\t}\n\t}\n}\n\nexport class HideInlineCompletion extends EditorAction {\n\tpublic static ID = hideInlineCompletionId;\n\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: HideInlineCompletion.ID,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.hide', \"Hide Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: KeybindingWeight.EditorContrib + 90, // same as hiding the suggest widget\n\t\t\t\tprimary: KeyCode.Escape,\n\t\t\t},\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineEditsActions,\n\t\t\t\ttitle: nls.localize('reject', \"Reject\"),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 3,\n\t\t\t}]\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.getInFocusedEditorOrParent(accessor);\n\t\ttransaction(tx => {\n\t\t\tcontroller?.model.get()?.stop('explicitCancel', tx);\n\t\t});\n\t\tcontroller?.editor.focus();\n\t}\n}\n\nexport class ToggleInlineCompletionShowCollapsed extends EditorAction {\n\tpublic static ID = toggleShowCollapsedId;\n\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: ToggleInlineCompletionShowCollapsed.ID,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.toggleShowCollapsed', \"Toggle Inline Suggestions Show Collapsed\"),\n\t\t\tprecondition: ContextKeyExpr.true(),\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst configurationService = accessor.get(IConfigurationService);\n\t\tconst showCollapsed = configurationService.getValue<boolean>('editor.inlineSuggest.edits.showCollapsed');\n\t\tconfigurationService.updateValue('editor.inlineSuggest.edits.showCollapsed', !showCollapsed);\n\t}\n}\n\nKeybindingsRegistry.registerKeybindingRule({\n\tid: HideInlineCompletion.ID,\n\tweight: -1, // very weak\n\tprimary: KeyCode.Escape,\n\tsecondary: [KeyMod.Shift | KeyCode.Escape],\n\twhen: ContextKeyExpr.and(InlineCompletionContextKeys.inInlineEditsPreviewEditor)\n});\n\nexport class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {\n\tpublic static ID = 'editor.action.inlineSuggest.toggleAlwaysShowToolbar';\n\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: ToggleAlwaysShowInlineSuggestionToolbar.ID,\n\t\t\ttitle: nls.localize('action.inlineSuggest.alwaysShowToolbar', \"Always Show Toolbar\"),\n\t\t\tf1: false,\n\t\t\tprecondition: undefined,\n\t\t\tmenu: [{\n\t\t\t\tid: MenuId.InlineSuggestionToolbar,\n\t\t\t\tgroup: 'secondary',\n\t\t\t\torder: 10,\n\t\t\t}],\n\t\t\ttoggled: ContextKeyExpr.equals('config.editor.inlineSuggest.showToolbar', 'always')\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor): Promise<void> {\n\t\tconst configService = accessor.get(IConfigurationService);\n\t\tconst currentValue = configService.getValue<'always' | 'onHover'>('editor.inlineSuggest.showToolbar');\n\t\tconst newValue = currentValue === 'always' ? 'onHover' : 'always';\n\t\tconfigService.updateValue('editor.inlineSuggest.showToolbar', newValue);\n\t}\n}\n\nexport class DevExtractReproSample extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.dev.extractRepro',\n\t\t\tlabel: nls.localize('action.inlineSuggest.dev.extractRepro', \"Developer: Extract Inline Suggest State\"),\n\t\t\talias: 'Developer: Inline Suggest Extract Repro',\n\t\t\tprecondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineEditVisible, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t});\n\t}\n\n\tpublic override async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<any> {\n\t\tconst clipboardService = accessor.get(IClipboardService);\n\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tconst m = controller?.model.get();\n\t\tif (!m) { return; }\n\t\tconst repro = m.extractReproSample();\n\n\t\tconst inlineCompletionLines = splitLines(JSON.stringify({ inlineCompletion: repro.inlineCompletion }, null, 4));\n\n\t\tconst json = inlineCompletionLines.map(l => '// ' + l).join('\\n');\n\n\t\tconst reproStr = `${repro.documentValue}\\n\\n// <json>\\n${json}\\n// </json>\\n`;\n\n\t\tawait clipboardService.writeText(reproStr);\n\n\t\treturn { reproCase: reproStr };\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["vs/editor/contrib/inlineCompletions/browser/controller/commands.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAGhG,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+DAA+D,CAAC;AACnH,OA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B,CAAC;SACnI,CAAC,CAAC;IACJ,CAAC;IAEe,KAAK,CAAC,GAAG,CAAC,QAA0B,EAAE,MAAmB;QACxE,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAEzD,MAAM,UAAU,GAAG,2BAA2B,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3D,MAAM,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC;QAClC,IAAI,CAAC,CAAC,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QACnB,MAAM,KAAK,GAAG,CAAC,CAAC,kBAAkB,EAAE,CAAC;QAErC,MAAM,qBAAqB,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAEhH,MAAM,IAAI,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElE,MAAM,QAAQ,GAAG,GAAG,KAAK,CAAC,aAAa,kBAAkB,IAAI,gBAAgB,CAAC;QAE9E,MAAM,gBAAgB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAE3C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;IAChC,CAAC;CACD","file":"commands.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { KeyCode, KeyMod } from '../../../../../base/common/keyCodes.js';\nimport { asyncTransaction, transaction } from '../../../../../base/common/observable.js';\nimport { splitLines } from '../../../../../base/common/strings.js';\nimport * as nls from '../../../../../nls.js';\nimport { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from '../../../../../platform/accessibility/common/accessibility.js';\nimport { Action2, MenuId } from '../../../../../platform/actions/common/actions.js';\nimport { IClipboardService } from '../../../../../platform/clipboard/common/clipboardService.js';\nimport { IConfigurationService } from '../../../../../platform/configuration/common/configuration.js';\nimport { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js';\nimport { KeybindingsRegistry, KeybindingWeight } from '../../../../../platform/keybinding/common/keybindingsRegistry.js';\nimport { ICodeEditor } from '../../../../browser/editorBrowser.js';\nimport { EditorAction, ServicesAccessor } from '../../../../browser/editorExtensions.js';\nimport { EditorContextKeys } from '../../../../common/editorContextKeys.js';\nimport { Context as SuggestContext } from '../../../suggest/browser/suggest.js';\nimport { hideInlineCompletionId, inlineSuggestCommitId, jumpToNextInlineEditId, showNextInlineSuggestionActionId, showPreviousInlineSuggestionActionId, toggleShowCollapsedId } from './commandIds.js';\nimport { InlineCompletionContextKeys } from './inlineCompletionContextKeys.js';\nimport { InlineCompletionsController } from './inlineCompletionsController.js';\n\nexport class ShowNextInlineSuggestionAction extends EditorAction {\n\tpublic static ID = showNextInlineSuggestionActionId;\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: ShowNextInlineSuggestionAction.ID,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.showNext', \"Show Next Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: 100,\n\t\t\t\tprimary: KeyMod.Alt | KeyCode.BracketRight,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tcontroller?.model.get()?.next();\n\t}\n}\n\nexport class ShowPreviousInlineSuggestionAction extends EditorAction {\n\tpublic static ID = showPreviousInlineSuggestionActionId;\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: ShowPreviousInlineSuggestionAction.ID,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.showPrevious', \"Show Previous Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: 100,\n\t\t\t\tprimary: KeyMod.Alt | KeyCode.BracketLeft,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tcontroller?.model.get()?.previous();\n\t}\n}\n\nexport class TriggerInlineSuggestionAction extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.trigger',\n\t\t\tlabel: nls.localize2('action.inlineSuggest.trigger', \"Trigger Inline Suggestion\"),\n\t\t\tprecondition: EditorContextKeys.writable\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tawait asyncTransaction(async tx => {\n\t\t\t/** @description triggerExplicitly from command */\n\t\t\tawait controller?.model.get()?.triggerExplicitly(tx);\n\t\t\tcontroller?.playAccessibilitySignal(tx);\n\t\t});\n\t}\n}\n\nexport class AcceptNextWordOfInlineCompletion extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.acceptNextWord',\n\t\t\tlabel: nls.localize2('action.inlineSuggest.acceptNextWord', \"Accept Next Word Of Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: KeybindingWeight.EditorContrib + 1,\n\t\t\t\tprimary: KeyMod.CtrlCmd | KeyCode.RightArrow,\n\t\t\t\tkbExpr: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.cursorBeforeGhostText, CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()),\n\t\t\t},\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineSuggestionToolbar,\n\t\t\t\ttitle: nls.localize('acceptWord', 'Accept Word'),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 2,\n\t\t\t}],\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tawait controller?.model.get()?.acceptNextWord();\n\t}\n}\n\nexport class AcceptNextLineOfInlineCompletion extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.acceptNextLine',\n\t\t\tlabel: nls.localize2('action.inlineSuggest.acceptNextLine', \"Accept Next Line Of Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: KeybindingWeight.EditorContrib + 1,\n\t\t\t},\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineSuggestionToolbar,\n\t\t\t\ttitle: nls.localize('acceptLine', 'Accept Line'),\n\t\t\t\tgroup: 'secondary',\n\t\t\t\torder: 2,\n\t\t\t}],\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tawait controller?.model.get()?.acceptNextLine();\n\t}\n}\n\nexport class AcceptInlineCompletion extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: inlineSuggestCommitId,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.accept', \"Accept Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineSuggestionToolbar,\n\t\t\t\ttitle: nls.localize('accept', \"Accept\"),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 2,\n\t\t\t}, {\n\t\t\t\tmenuId: MenuId.InlineEditsActions,\n\t\t\t\ttitle: nls.localize('accept', \"Accept\"),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 2,\n\t\t\t}],\n\t\t\tkbOpts: [\n\t\t\t\t{\n\t\t\t\t\tprimary: KeyCode.Tab,\n\t\t\t\t\tweight: 200,\n\t\t\t\t\tkbExpr: ContextKeyExpr.or(\n\t\t\t\t\t\tContextKeyExpr.and(\n\t\t\t\t\t\t\tInlineCompletionContextKeys.inlineSuggestionVisible,\n\t\t\t\t\t\t\tEditorContextKeys.tabMovesFocus.toNegated(),\n\t\t\t\t\t\t\tSuggestContext.Visible.toNegated(),\n\t\t\t\t\t\t\tEditorContextKeys.hoverFocused.toNegated(),\n\t\t\t\t\t\t\tInlineCompletionContextKeys.hasSelection.toNegated(),\n\n\t\t\t\t\t\t\tInlineCompletionContextKeys.inlineSuggestionHasIndentationLessThanTabSize,\n\t\t\t\t\t\t),\n\t\t\t\t\t\tContextKeyExpr.and(\n\t\t\t\t\t\t\tInlineCompletionContextKeys.inlineEditVisible,\n\t\t\t\t\t\t\tEditorContextKeys.tabMovesFocus.toNegated(),\n\t\t\t\t\t\t\tSuggestContext.Visible.toNegated(),\n\t\t\t\t\t\t\tEditorContextKeys.hoverFocused.toNegated(),\n\n\t\t\t\t\t\t\tInlineCompletionContextKeys.tabShouldAcceptInlineEdit,\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t}\n\t\t\t],\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.getInFocusedEditorOrParent(accessor);\n\t\tif (controller) {\n\t\t\tcontroller.model.get()?.accept(controller.editor);\n\t\t\tcontroller.editor.focus();\n\t\t}\n\t}\n}\nKeybindingsRegistry.registerKeybindingRule({\n\tid: inlineSuggestCommitId,\n\tweight: 202, // greater than jump\n\tprimary: KeyCode.Tab,\n\twhen: ContextKeyExpr.and(InlineCompletionContextKeys.inInlineEditsPreviewEditor)\n});\n\nexport class JumpToNextInlineEdit extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: jumpToNextInlineEditId,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.jump', \"Jump to next inline edit\"),\n\t\t\tprecondition: InlineCompletionContextKeys.inlineEditVisible,\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineEditsActions,\n\t\t\t\ttitle: nls.localize('jump', \"Jump\"),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 1,\n\t\t\t\twhen: InlineCompletionContextKeys.cursorAtInlineEdit.toNegated(),\n\t\t\t}],\n\t\t\tkbOpts: {\n\t\t\t\tprimary: KeyCode.Tab,\n\t\t\t\tweight: 201,\n\t\t\t\tkbExpr: ContextKeyExpr.and(\n\t\t\t\t\tInlineCompletionContextKeys.inlineEditVisible,\n\t\t\t\t\tEditorContextKeys.tabMovesFocus.toNegated(),\n\t\t\t\t\tSuggestContext.Visible.toNegated(),\n\t\t\t\t\tEditorContextKeys.hoverFocused.toNegated(),\n\t\t\t\t\tInlineCompletionContextKeys.tabShouldJumpToInlineEdit,\n\t\t\t\t),\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tif (controller) {\n\t\t\tcontroller.jump();\n\t\t}\n\t}\n}\n\nexport class HideInlineCompletion extends EditorAction {\n\tpublic static ID = hideInlineCompletionId;\n\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: HideInlineCompletion.ID,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.hide', \"Hide Inline Suggestion\"),\n\t\t\tprecondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),\n\t\t\tkbOpts: {\n\t\t\t\tweight: KeybindingWeight.EditorContrib + 90, // same as hiding the suggest widget\n\t\t\t\tprimary: KeyCode.Escape,\n\t\t\t},\n\t\t\tmenuOpts: [{\n\t\t\t\tmenuId: MenuId.InlineEditsActions,\n\t\t\t\ttitle: nls.localize('reject', \"Reject\"),\n\t\t\t\tgroup: 'primary',\n\t\t\t\torder: 3,\n\t\t\t}]\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst controller = InlineCompletionsController.getInFocusedEditorOrParent(accessor);\n\t\ttransaction(tx => {\n\t\t\tcontroller?.model.get()?.stop('explicitCancel', tx);\n\t\t});\n\t\tcontroller?.editor.focus();\n\t}\n}\n\nexport class ToggleInlineCompletionShowCollapsed extends EditorAction {\n\tpublic static ID = toggleShowCollapsedId;\n\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: ToggleInlineCompletionShowCollapsed.ID,\n\t\t\tlabel: nls.localize2('action.inlineSuggest.toggleShowCollapsed', \"Toggle Inline Suggestions Show Collapsed\"),\n\t\t\tprecondition: ContextKeyExpr.true(),\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<void> {\n\t\tconst configurationService = accessor.get(IConfigurationService);\n\t\tconst showCollapsed = configurationService.getValue<boolean>('editor.inlineSuggest.edits.showCollapsed');\n\t\tconfigurationService.updateValue('editor.inlineSuggest.edits.showCollapsed', !showCollapsed);\n\t}\n}\n\nKeybindingsRegistry.registerKeybindingRule({\n\tid: HideInlineCompletion.ID,\n\tweight: -1, // very weak\n\tprimary: KeyCode.Escape,\n\tsecondary: [KeyMod.Shift | KeyCode.Escape],\n\twhen: ContextKeyExpr.and(InlineCompletionContextKeys.inInlineEditsPreviewEditor)\n});\n\nexport class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {\n\tpublic static ID = 'editor.action.inlineSuggest.toggleAlwaysShowToolbar';\n\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: ToggleAlwaysShowInlineSuggestionToolbar.ID,\n\t\t\ttitle: nls.localize('action.inlineSuggest.alwaysShowToolbar', \"Always Show Toolbar\"),\n\t\t\tf1: false,\n\t\t\tprecondition: undefined,\n\t\t\tmenu: [{\n\t\t\t\tid: MenuId.InlineSuggestionToolbar,\n\t\t\t\tgroup: 'secondary',\n\t\t\t\torder: 10,\n\t\t\t}],\n\t\t\ttoggled: ContextKeyExpr.equals('config.editor.inlineSuggest.showToolbar', 'always')\n\t\t});\n\t}\n\n\tpublic async run(accessor: ServicesAccessor): Promise<void> {\n\t\tconst configService = accessor.get(IConfigurationService);\n\t\tconst currentValue = configService.getValue<'always' | 'onHover'>('editor.inlineSuggest.showToolbar');\n\t\tconst newValue = currentValue === 'always' ? 'onHover' : 'always';\n\t\tconfigService.updateValue('editor.inlineSuggest.showToolbar', newValue);\n\t}\n}\n\nexport class DevExtractReproSample extends EditorAction {\n\tconstructor() {\n\t\tsuper({\n\t\t\tid: 'editor.action.inlineSuggest.dev.extractRepro',\n\t\t\tlabel: nls.localize('action.inlineSuggest.dev.extractRepro', \"Developer: Extract Inline Suggest State\"),\n\t\t\talias: 'Developer: Inline Suggest Extract Repro',\n\t\t\tprecondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineEditVisible, InlineCompletionContextKeys.inlineSuggestionVisible),\n\t\t});\n\t}\n\n\tpublic override async run(accessor: ServicesAccessor, editor: ICodeEditor): Promise<any> {\n\t\tconst clipboardService = accessor.get(IClipboardService);\n\n\t\tconst controller = InlineCompletionsController.get(editor);\n\t\tconst m = controller?.model.get();\n\t\tif (!m) { return; }\n\t\tconst repro = m.extractReproSample();\n\n\t\tconst inlineCompletionLines = splitLines(JSON.stringify({ inlineCompletion: repro.inlineCompletion }, null, 4));\n\n\t\tconst json = inlineCompletionLines.map(l => '// ' + l).join('\\n');\n\n\t\tconst reproStr = `${repro.documentValue}\\n\\n// <json>\\n${json}\\n// </json>\\n`;\n\n\t\tawait clipboardService.writeText(reproStr);\n\n\t\treturn { reproCase: reproStr };\n\t}\n}\n"]}
|
package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js
CHANGED
|
@@ -6,17 +6,17 @@ import { RawContextKey } from '../../../../../platform/contextkey/common/context
|
|
|
6
6
|
import { localize } from '../../../../../nls.js';
|
|
7
7
|
import * as nls from '../../../../../nls.js';
|
|
8
8
|
export class InlineCompletionContextKeys {
|
|
9
|
-
static { this.inlineSuggestionVisible = new RawContextKey('inlineSuggestionVisible', false, localize(
|
|
10
|
-
static { this.inlineSuggestionHasIndentation = new RawContextKey('inlineSuggestionHasIndentation', false, localize(
|
|
11
|
-
static { this.inlineSuggestionHasIndentationLessThanTabSize = new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, localize(
|
|
12
|
-
static { this.suppressSuggestions = new RawContextKey('inlineSuggestionSuppressSuggestions', undefined, localize(
|
|
13
|
-
static { this.cursorBeforeGhostText = new RawContextKey('cursorBeforeGhostText', false, localize(
|
|
14
|
-
static { this.cursorInIndentation = new RawContextKey('cursorInIndentation', false, localize(
|
|
15
|
-
static { this.hasSelection = new RawContextKey('editor.hasSelection', false, localize(
|
|
16
|
-
static { this.cursorAtInlineEdit = new RawContextKey('cursorAtInlineEdit', false, localize(
|
|
17
|
-
static { this.inlineEditVisible = new RawContextKey('inlineEditIsVisible', false, localize(
|
|
18
|
-
static { this.tabShouldJumpToInlineEdit = new RawContextKey('tabShouldJumpToInlineEdit', false, localize(
|
|
19
|
-
static { this.tabShouldAcceptInlineEdit = new RawContextKey('tabShouldAcceptInlineEdit', false, localize(
|
|
20
|
-
static { this.inInlineEditsPreviewEditor = new RawContextKey('inInlineEditsPreviewEditor', true, nls.localize(
|
|
9
|
+
static { this.inlineSuggestionVisible = new RawContextKey('inlineSuggestionVisible', false, localize(1188, "Whether an inline suggestion is visible")); }
|
|
10
|
+
static { this.inlineSuggestionHasIndentation = new RawContextKey('inlineSuggestionHasIndentation', false, localize(1189, "Whether the inline suggestion starts with whitespace")); }
|
|
11
|
+
static { this.inlineSuggestionHasIndentationLessThanTabSize = new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, localize(1190, "Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")); }
|
|
12
|
+
static { this.suppressSuggestions = new RawContextKey('inlineSuggestionSuppressSuggestions', undefined, localize(1191, "Whether suggestions should be suppressed for the current suggestion")); }
|
|
13
|
+
static { this.cursorBeforeGhostText = new RawContextKey('cursorBeforeGhostText', false, localize(1192, "Whether the cursor is at ghost text")); }
|
|
14
|
+
static { this.cursorInIndentation = new RawContextKey('cursorInIndentation', false, localize(1193, "Whether the cursor is in indentation")); }
|
|
15
|
+
static { this.hasSelection = new RawContextKey('editor.hasSelection', false, localize(1194, "Whether the editor has a selection")); }
|
|
16
|
+
static { this.cursorAtInlineEdit = new RawContextKey('cursorAtInlineEdit', false, localize(1195, "Whether the cursor is at an inline edit")); }
|
|
17
|
+
static { this.inlineEditVisible = new RawContextKey('inlineEditIsVisible', false, localize(1196, "Whether an inline edit is visible")); }
|
|
18
|
+
static { this.tabShouldJumpToInlineEdit = new RawContextKey('tabShouldJumpToInlineEdit', false, localize(1197, "Whether tab should jump to an inline edit.")); }
|
|
19
|
+
static { this.tabShouldAcceptInlineEdit = new RawContextKey('tabShouldAcceptInlineEdit', false, localize(1198, "Whether tab should accept the inline edit.")); }
|
|
20
|
+
static { this.inInlineEditsPreviewEditor = new RawContextKey('inInlineEditsPreviewEditor', true, nls.localize(1199, "Whether the current code editor is showing an inline edits preview")); }
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=inlineCompletionContextKeys.js.map
|
package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js
CHANGED
|
@@ -363,7 +363,7 @@ let InlineCompletionsController = class InlineCompletionsController extends Disp
|
|
|
363
363
|
const accessibleViewKeybinding = this._keybindingService.lookupKeybinding('editor.action.accessibleView');
|
|
364
364
|
let hint;
|
|
365
365
|
if (!accessibleViewShowing && accessibleViewKeybinding && this.editor.getOption(169 /* EditorOption.inlineCompletionsAccessibilityVerbose */)) {
|
|
366
|
-
hint = localize(
|
|
366
|
+
hint = localize(1200, "Inspect this in the accessible view ({0})", accessibleViewKeybinding.getAriaLabel());
|
|
367
367
|
}
|
|
368
368
|
alert(hint ? content + ', ' + hint : content);
|
|
369
369
|
}
|
|
@@ -120,7 +120,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
120
120
|
const markdownHoverElement = $('div.hover-row.markdown-hover');
|
|
121
121
|
const hoverContentsElement = dom.append(markdownHoverElement, $('div.hover-contents', { ['aria-live']: 'assertive' }));
|
|
122
122
|
const render = (code) => {
|
|
123
|
-
const inlineSuggestionAvailable = nls.localize(
|
|
123
|
+
const inlineSuggestionAvailable = nls.localize(1201, "Suggestion:");
|
|
124
124
|
const renderedContents = disposables.add(this._markdownRendererService.render(new MarkdownString().appendText(inlineSuggestionAvailable).appendCodeblock('text', code), {
|
|
125
125
|
context: this._editor,
|
|
126
126
|
asyncRenderCallback: () => {
|
package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js
CHANGED
|
@@ -97,8 +97,8 @@ InlineCompletionsHintsWidget = __decorate([
|
|
|
97
97
|
__param(2, IInstantiationService)
|
|
98
98
|
], InlineCompletionsHintsWidget);
|
|
99
99
|
export { InlineCompletionsHintsWidget };
|
|
100
|
-
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, localize(
|
|
101
|
-
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, localize(
|
|
100
|
+
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, localize(1202, 'Icon for show next parameter hint.'));
|
|
101
|
+
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, localize(1203, 'Icon for show previous parameter hint.'));
|
|
102
102
|
let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidget extends Disposable {
|
|
103
103
|
static { InlineSuggestionHintsContentWidget_1 = this; }
|
|
104
104
|
static { this.hot = createHotClass(this); }
|
|
@@ -110,7 +110,7 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
110
110
|
const kb = this.keybindingService.lookupKeybinding(commandId, this._contextKeyService);
|
|
111
111
|
let tooltip = label;
|
|
112
112
|
if (kb) {
|
|
113
|
-
tooltip = localize(
|
|
113
|
+
tooltip = localize(1204, '{0} ({1})', label, kb.getLabel());
|
|
114
114
|
}
|
|
115
115
|
action.tooltip = tooltip;
|
|
116
116
|
return action;
|
|
@@ -158,9 +158,9 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
158
158
|
this._warningMessageNode.element,
|
|
159
159
|
h('div@toolBar'),
|
|
160
160
|
]);
|
|
161
|
-
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize(
|
|
161
|
+
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize(1205, 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
|
|
162
162
|
this.availableSuggestionCountAction = this._register(new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false));
|
|
163
|
-
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize(
|
|
163
|
+
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize(1206, 'Next'), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));
|
|
164
164
|
this.inlineCompletionsActionsMenus = this._register(this._menuService.createMenu(MenuId.InlineCompletionsActions, this._contextKeyService));
|
|
165
165
|
this.clearAvailableSuggestionCountLabelDebounced = this._register(new RunOnceScheduler(() => {
|
|
166
166
|
this.availableSuggestionCountAction.label = '';
|
|
@@ -5,17 +5,15 @@
|
|
|
5
5
|
import { AccessibleViewRegistry } from '../../../../platform/accessibility/browser/accessibleViewRegistry.js';
|
|
6
6
|
import { registerAction2 } from '../../../../platform/actions/common/actions.js';
|
|
7
7
|
import { wrapInHotClass1 } from '../../../../platform/observable/common/wrapInHotClass.js';
|
|
8
|
-
import { registerEditorAction,
|
|
8
|
+
import { registerEditorAction, registerEditorContribution } from '../../../browser/editorExtensions.js';
|
|
9
9
|
import { HoverParticipantRegistry } from '../../hover/browser/hoverTypes.js';
|
|
10
|
-
import { AcceptInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptNextWordOfInlineCompletion, DevExtractReproSample, HideInlineCompletion, JumpToNextInlineEdit, ShowNextInlineSuggestionAction, ShowPreviousInlineSuggestionAction, ToggleAlwaysShowInlineSuggestionToolbar,
|
|
10
|
+
import { AcceptInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptNextWordOfInlineCompletion, DevExtractReproSample, HideInlineCompletion, JumpToNextInlineEdit, ShowNextInlineSuggestionAction, ShowPreviousInlineSuggestionAction, ToggleAlwaysShowInlineSuggestionToolbar, TriggerInlineSuggestionAction, ToggleInlineCompletionShowCollapsed } from './controller/commands.js';
|
|
11
11
|
import { InlineCompletionsController } from './controller/inlineCompletionsController.js';
|
|
12
12
|
import { InlineCompletionsHoverParticipant } from './hintsWidget/hoverParticipant.js';
|
|
13
13
|
import { InlineCompletionsAccessibleView } from './inlineCompletionsAccessibleView.js';
|
|
14
14
|
import { CancelSnoozeInlineCompletion, SnoozeInlineCompletion } from '../../../browser/services/inlineCompletionsService.js';
|
|
15
15
|
registerEditorContribution(InlineCompletionsController.ID, wrapInHotClass1(InlineCompletionsController.hot), 3 /* EditorContributionInstantiation.Eventually */);
|
|
16
16
|
registerEditorAction(TriggerInlineSuggestionAction);
|
|
17
|
-
registerEditorAction(ExplicitTriggerInlineEditAction);
|
|
18
|
-
registerEditorCommand(new TriggerInlineEditAction());
|
|
19
17
|
registerEditorAction(ShowNextInlineSuggestionAction);
|
|
20
18
|
registerEditorAction(ShowPreviousInlineSuggestionAction);
|
|
21
19
|
registerEditorAction(AcceptNextWordOfInlineCompletion);
|
package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.ts","vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAC9G,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,EAAmC,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"sources":["file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.ts","vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAC9G,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,EAAmC,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACzI,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,uCAAuC,EAAE,6BAA6B,EAAE,mCAAmC,EAAE,MAAM,0BAA0B,CAAC;AAC1X,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAE7H,0BAA0B,CAAC,2BAA2B,CAAC,EAAE,EAAE,eAAe,CAAC,2BAA2B,CAAC,GAAG,CAAC,qDAA6C,CAAC;AAEzJ,oBAAoB,CAAC,6BAA6B,CAAC,CAAC;AACpD,oBAAoB,CAAC,8BAA8B,CAAC,CAAC;AACrD,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;AACzD,oBAAoB,CAAC,gCAAgC,CAAC,CAAC;AACvD,oBAAoB,CAAC,gCAAgC,CAAC,CAAC;AACvD,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;AAC7C,oBAAoB,CAAC,mCAAmC,CAAC,CAAC;AAC1D,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAC3C,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAC3C,eAAe,CAAC,uCAAuC,CAAC,CAAC;AACzD,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;AAC5C,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACxC,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAE9C,wBAAwB,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC;AACrE,sBAAsB,CAAC,QAAQ,CAAC,IAAI,+BAA+B,EAAE,CAAC,CAAC","file":"inlineCompletions.contribution.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { AccessibleViewRegistry } from '../../../../platform/accessibility/browser/accessibleViewRegistry.js';\nimport { registerAction2 } from '../../../../platform/actions/common/actions.js';\nimport { wrapInHotClass1 } from '../../../../platform/observable/common/wrapInHotClass.js';\nimport { EditorContributionInstantiation, registerEditorAction, registerEditorContribution } from '../../../browser/editorExtensions.js';\nimport { HoverParticipantRegistry } from '../../hover/browser/hoverTypes.js';\nimport { AcceptInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptNextWordOfInlineCompletion, DevExtractReproSample, HideInlineCompletion, JumpToNextInlineEdit, ShowNextInlineSuggestionAction, ShowPreviousInlineSuggestionAction, ToggleAlwaysShowInlineSuggestionToolbar, TriggerInlineSuggestionAction, ToggleInlineCompletionShowCollapsed } from './controller/commands.js';\nimport { InlineCompletionsController } from './controller/inlineCompletionsController.js';\nimport { InlineCompletionsHoverParticipant } from './hintsWidget/hoverParticipant.js';\nimport { InlineCompletionsAccessibleView } from './inlineCompletionsAccessibleView.js';\nimport { CancelSnoozeInlineCompletion, SnoozeInlineCompletion } from '../../../browser/services/inlineCompletionsService.js';\n\nregisterEditorContribution(InlineCompletionsController.ID, wrapInHotClass1(InlineCompletionsController.hot), EditorContributionInstantiation.Eventually);\n\nregisterEditorAction(TriggerInlineSuggestionAction);\nregisterEditorAction(ShowNextInlineSuggestionAction);\nregisterEditorAction(ShowPreviousInlineSuggestionAction);\nregisterEditorAction(AcceptNextWordOfInlineCompletion);\nregisterEditorAction(AcceptNextLineOfInlineCompletion);\nregisterEditorAction(AcceptInlineCompletion);\nregisterEditorAction(ToggleInlineCompletionShowCollapsed);\nregisterEditorAction(HideInlineCompletion);\nregisterEditorAction(JumpToNextInlineEdit);\nregisterAction2(ToggleAlwaysShowInlineSuggestionToolbar);\nregisterEditorAction(DevExtractReproSample);\nregisterAction2(SnoozeInlineCompletion);\nregisterAction2(CancelSnoozeInlineCompletion);\n\nHoverParticipantRegistry.register(InlineCompletionsHoverParticipant);\nAccessibleViewRegistry.register(new InlineCompletionsAccessibleView());\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { AccessibleViewRegistry } from '../../../../platform/accessibility/browser/accessibleViewRegistry.js';\nimport { registerAction2 } from '../../../../platform/actions/common/actions.js';\nimport { wrapInHotClass1 } from '../../../../platform/observable/common/wrapInHotClass.js';\nimport { EditorContributionInstantiation, registerEditorAction, registerEditorContribution } from '../../../browser/editorExtensions.js';\nimport { HoverParticipantRegistry } from '../../hover/browser/hoverTypes.js';\nimport { AcceptInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptNextWordOfInlineCompletion, DevExtractReproSample, HideInlineCompletion, JumpToNextInlineEdit, ShowNextInlineSuggestionAction, ShowPreviousInlineSuggestionAction, ToggleAlwaysShowInlineSuggestionToolbar, TriggerInlineSuggestionAction, ToggleInlineCompletionShowCollapsed } from './controller/commands.js';\nimport { InlineCompletionsController } from './controller/inlineCompletionsController.js';\nimport { InlineCompletionsHoverParticipant } from './hintsWidget/hoverParticipant.js';\nimport { InlineCompletionsAccessibleView } from './inlineCompletionsAccessibleView.js';\nimport { CancelSnoozeInlineCompletion, SnoozeInlineCompletion } from '../../../browser/services/inlineCompletionsService.js';\n\nregisterEditorContribution(InlineCompletionsController.ID, wrapInHotClass1(InlineCompletionsController.hot), EditorContributionInstantiation.Eventually);\n\nregisterEditorAction(TriggerInlineSuggestionAction);\nregisterEditorAction(ShowNextInlineSuggestionAction);\nregisterEditorAction(ShowPreviousInlineSuggestionAction);\nregisterEditorAction(AcceptNextWordOfInlineCompletion);\nregisterEditorAction(AcceptNextLineOfInlineCompletion);\nregisterEditorAction(AcceptInlineCompletion);\nregisterEditorAction(ToggleInlineCompletionShowCollapsed);\nregisterEditorAction(HideInlineCompletion);\nregisterEditorAction(JumpToNextInlineEdit);\nregisterAction2(ToggleAlwaysShowInlineSuggestionToolbar);\nregisterEditorAction(DevExtractReproSample);\nregisterAction2(SnoozeInlineCompletion);\nregisterAction2(CancelSnoozeInlineCompletion);\n\nHoverParticipantRegistry.register(InlineCompletionsHoverParticipant);\nAccessibleViewRegistry.register(new InlineCompletionsAccessibleView());\n"]}
|