@codingame/monaco-vscode-api 18.4.0 → 19.0.1
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 +1217 -2932
- package/monaco.js +0 -3
- package/package.json +8 -8
- package/services.d.ts +12 -8
- package/services.js +12 -7
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.d.ts +83 -2
- package/vscode/src/vs/base/browser/dom.js +280 -3
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +2 -0
- package/vscode/src/vs/base/browser/domStylesheets.js +11 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +1 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +34 -18
- package/vscode/src/vs/base/browser/ui/button/button.js +4 -1
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -5
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +3 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +21 -4
- package/vscode/src/vs/base/common/arrays.d.ts +0 -1
- package/vscode/src/vs/base/common/arrays.js +1 -6
- package/vscode/src/vs/base/common/async.d.ts +1 -0
- package/vscode/src/vs/base/common/async.js +2 -1
- package/vscode/src/vs/base/common/buffer.d.ts +1 -0
- package/vscode/src/vs/base/common/buffer.js +3 -0
- package/vscode/src/vs/base/common/codicons.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +7 -0
- package/vscode/src/vs/base/common/collections.d.ts +1 -0
- package/vscode/src/vs/base/common/collections.js +14 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/dataTransfer.d.ts +1 -1
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/event.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.js +2 -2
- package/vscode/src/vs/base/common/hotReloadHelpers.js +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +1 -1
- package/vscode/src/vs/base/common/network.d.ts +1 -0
- package/vscode/src/vs/base/common/network.js +1 -0
- package/vscode/src/vs/base/common/oauth.d.ts +34 -4
- package/vscode/src/vs/base/common/oauth.js +77 -6
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/set.js +0 -1
- package/vscode/src/vs/base/common/performance.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +2 -1
- package/vscode/src/vs/base/common/types.d.ts +4 -8
- package/vscode/src/vs/base/common/types.js +3 -3
- package/vscode/src/vs/base/common/worker/webWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +8 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +18 -14
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +5 -4
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +2 -3
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +6 -0
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +38 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +9 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +4 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +18 -2
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +32 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +141 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +11 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.js +6 -0
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -2
- package/vscode/src/vs/editor/browser/view/viewController.js +5 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +3 -7
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +12 -2
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +8 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +39 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css +52 -49
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +15 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +7 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +173 -160
- package/vscode/src/vs/editor/common/config/editorOptions.js +645 -570
- package/vscode/src/vs/editor/common/config/fontInfo.js +1 -1
- package/vscode/src/vs/editor/common/core/2d/point.d.ts +5 -0
- package/vscode/src/vs/editor/common/core/2d/point.js +23 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/edits/edit.js +41 -0
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +17 -11
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +36 -9
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +63 -16
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +205 -48
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +5 -1
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +18 -2
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +3 -1
- package/vscode/src/vs/editor/common/core/text/abstractText.js +10 -1
- package/vscode/src/vs/editor/common/core/text/getPositionOffsetTransformerFromTextModel.js +2 -1
- package/vscode/src/vs/editor/common/core/text/positionToOffset.d.ts +2 -28
- package/vscode/src/vs/editor/common/core/text/positionToOffset.js +11 -92
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +37 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +104 -0
- package/vscode/src/vs/editor/common/cursor/cursor.d.ts +3 -2
- package/vscode/src/vs/editor/common/cursor/cursor.js +24 -16
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +3 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +11 -1
- package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +7 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +31 -27
- package/vscode/src/vs/editor/common/languages.js +57 -62
- package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -1
- package/vscode/src/vs/editor/common/model/editStack.js +4 -3
- package/vscode/src/vs/editor/common/model/intervalTree.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/intervalTree.js +24 -7
- package/vscode/src/vs/editor/common/model/textModel.d.ts +24 -10
- package/vscode/src/vs/editor/common/model/textModel.js +114 -53
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.d.ts +0 -3
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.js +1 -13
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +2 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.js +13 -2
- package/vscode/src/vs/editor/common/model.d.ts +8 -2
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +14 -0
- package/vscode/src/vs/editor/common/services/editorWorker.service.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +7 -0
- package/vscode/src/vs/editor/common/services/languageFeatures.service.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
- package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.js +3 -2
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +159 -157
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +160 -159
- package/vscode/src/vs/editor/common/standaloneStrings.js +50 -49
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +94 -12
- package/vscode/src/vs/editor/common/textModelEditReason.js +86 -20
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +24 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +33 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +22 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +79 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +5 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +10 -4
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +39 -12
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +6 -6
- package/vscode/src/vs/editor/common/viewModel.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel.js +2 -1
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css +2 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -5
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +10 -5
- 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 +10 -6
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -47
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- 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.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +11 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +35 -30
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.js +66 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +12 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +144 -100
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +100 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +37 -29
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +39 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +150 -162
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +9 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +13 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +103 -62
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +25 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +13 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +4 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +7 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +16 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +34 -34
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +13 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +6 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +20 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +4 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +10 -7
- 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/middleScroll/browser/middleScroll.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.contribution.js +5 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.css +20 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +132 -0
- 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 +9 -9
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css +0 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +14 -12
- 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.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +3 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +24 -24
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -13
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +18 -10
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +4 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +34 -39
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +5 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +65 -70
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +1 -1
- 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/bannerController.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.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +5 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +79 -69
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- 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/actions.d.ts +0 -1
- package/vscode/src/vs/platform/actions/common/actions.js +0 -1
- 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/configuration.js +4 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +11 -11
- 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/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +11 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +1 -1
- 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/extensions/common/extensionsApiProposals.d.ts +9 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -3
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.d.ts +6 -1
- package/vscode/src/vs/platform/files/common/files.js +11 -7
- package/vscode/src/vs/platform/files/common/files.service.d.ts +1 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +2 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -7
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +4 -0
- package/vscode/src/vs/platform/log/common/log.js +15 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +4 -3
- package/vscode/src/vs/platform/markers/common/markers.d.ts +2 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +9 -4
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.js +6 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +1 -0
- package/vscode/src/vs/platform/notification/common/notification.js +12 -2
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- 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 +7 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +7 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +2 -2
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/commonProperties.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +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.d.ts +1 -0
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
- 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/theme/common/themeService.d.ts +1 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +3 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +2 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +7 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +1 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +5 -7
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +10 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +109 -77
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocuments.d.ts +4 -2
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +35 -5
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +34 -182
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +71 -20
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +7 -5
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +3 -0
- 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/extHostTypeConverters.d.ts +16 -7
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +20 -8
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +16 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +11 -12
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- 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/browser/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/contextkeys.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -72
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor.js +6 -6
- 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 +157 -160
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +62 -41
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +24 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +29 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +152 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -24
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +2 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.d.ts → promptsService.d.ts} +14 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.d.ts → promptsService.service.d.ts} +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +6 -6
- 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/commentService.service.d.ts +1 -1
- 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.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +73 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +7 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- 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/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
- 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/mcp/common/mcpTypes.d.ts +55 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +29 -13
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +119 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.js +6 -0
- 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/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +10 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +13 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +1 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +6 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +132 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -17
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +5 -1
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +6 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +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 +3 -3
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +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 +13 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode-dts/vscode.proposed.authProviderSpecific.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +139 -10
- package/vscode-dts/vscode.proposed.d.ts +3 -1
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +5 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +21 -4
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +1 -0
- package/vscode-dts/vscode.proposed.remoteCodingAgents.d.ts +8 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
- package/workbench.d.ts +1 -1
- package/vscode/src/vs/base/browser/domImpl/domObservable.d.ts +0 -3
- package/vscode/src/vs/base/browser/domImpl/domObservable.js +0 -16
- package/vscode/src/vs/base/browser/domImpl/n.d.ts +0 -83
- package/vscode/src/vs/base/browser/domImpl/n.js +0 -283
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +0 -20
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +0 -25
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +0 -84
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.d.ts +0 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +0 -94
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +0 -243
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +0 -426
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +0 -601
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -1185
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -235
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.js +0 -6
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -103
- /package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.js → promptsService.service.js} +0 -0
|
@@ -30,7 +30,7 @@ function announceCursorChange(previousCursorState, cursorState) {
|
|
|
30
30
|
const cursorPositions = ( cursorDiff.map(
|
|
31
31
|
cs => `line ${cs.viewState.position.lineNumber} column ${cs.viewState.position.column}`
|
|
32
32
|
)).join(', ');
|
|
33
|
-
const msg = cursorDiff.length === 1 ? ( localize(
|
|
33
|
+
const msg = cursorDiff.length === 1 ? ( localize(1357, "Cursor added: {0}", cursorPositions)) : ( localize(1358, "Cursors added: {0}", cursorPositions));
|
|
34
34
|
status(msg);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -38,7 +38,7 @@ class InsertCursorAbove extends EditorAction {
|
|
|
38
38
|
constructor() {
|
|
39
39
|
super({
|
|
40
40
|
id: 'editor.action.insertCursorAbove',
|
|
41
|
-
label: ( localize2(
|
|
41
|
+
label: ( localize2(1359, "Add Cursor Above")),
|
|
42
42
|
precondition: undefined,
|
|
43
43
|
kbOpts: {
|
|
44
44
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -52,7 +52,7 @@ class InsertCursorAbove extends EditorAction {
|
|
|
52
52
|
menuOpts: {
|
|
53
53
|
menuId: MenuId.MenubarSelectionMenu,
|
|
54
54
|
group: '3_multi',
|
|
55
|
-
title: ( localize(
|
|
55
|
+
title: ( localize(1360, "&&Add Cursor Above")),
|
|
56
56
|
order: 2
|
|
57
57
|
}
|
|
58
58
|
});
|
|
@@ -80,7 +80,7 @@ class InsertCursorBelow extends EditorAction {
|
|
|
80
80
|
constructor() {
|
|
81
81
|
super({
|
|
82
82
|
id: 'editor.action.insertCursorBelow',
|
|
83
|
-
label: ( localize2(
|
|
83
|
+
label: ( localize2(1361, "Add Cursor Below")),
|
|
84
84
|
precondition: undefined,
|
|
85
85
|
kbOpts: {
|
|
86
86
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -94,7 +94,7 @@ class InsertCursorBelow extends EditorAction {
|
|
|
94
94
|
menuOpts: {
|
|
95
95
|
menuId: MenuId.MenubarSelectionMenu,
|
|
96
96
|
group: '3_multi',
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(1362, "A&&dd Cursor Below")),
|
|
98
98
|
order: 3
|
|
99
99
|
}
|
|
100
100
|
});
|
|
@@ -122,7 +122,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: 'editor.action.insertCursorAtEndOfEachLineSelected',
|
|
125
|
-
label: ( localize2(
|
|
125
|
+
label: ( localize2(1363, "Add Cursors to Line Ends")),
|
|
126
126
|
precondition: undefined,
|
|
127
127
|
kbOpts: {
|
|
128
128
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -132,7 +132,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
132
132
|
menuOpts: {
|
|
133
133
|
menuId: MenuId.MenubarSelectionMenu,
|
|
134
134
|
group: '3_multi',
|
|
135
|
-
title: ( localize(
|
|
135
|
+
title: ( localize(1364, "Add C&&ursors to Line Ends")),
|
|
136
136
|
order: 4
|
|
137
137
|
}
|
|
138
138
|
});
|
|
@@ -174,7 +174,7 @@ class InsertCursorAtEndOfLineSelected extends EditorAction {
|
|
|
174
174
|
constructor() {
|
|
175
175
|
super({
|
|
176
176
|
id: 'editor.action.addCursorsToBottom',
|
|
177
|
-
label: ( localize2(
|
|
177
|
+
label: ( localize2(1365, "Add Cursors to Bottom")),
|
|
178
178
|
precondition: undefined
|
|
179
179
|
});
|
|
180
180
|
}
|
|
@@ -200,7 +200,7 @@ class InsertCursorAtTopOfLineSelected extends EditorAction {
|
|
|
200
200
|
constructor() {
|
|
201
201
|
super({
|
|
202
202
|
id: 'editor.action.addCursorsToTop',
|
|
203
|
-
label: ( localize2(
|
|
203
|
+
label: ( localize2(1366, "Add Cursors to Top")),
|
|
204
204
|
precondition: undefined
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -608,7 +608,7 @@ class AddSelectionToNextFindMatchAction extends MultiCursorSelectionControllerAc
|
|
|
608
608
|
constructor() {
|
|
609
609
|
super({
|
|
610
610
|
id: 'editor.action.addSelectionToNextFindMatch',
|
|
611
|
-
label: ( localize2(
|
|
611
|
+
label: ( localize2(1367, "Add Selection to Next Find Match")),
|
|
612
612
|
precondition: undefined,
|
|
613
613
|
kbOpts: {
|
|
614
614
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -618,7 +618,7 @@ class AddSelectionToNextFindMatchAction extends MultiCursorSelectionControllerAc
|
|
|
618
618
|
menuOpts: {
|
|
619
619
|
menuId: MenuId.MenubarSelectionMenu,
|
|
620
620
|
group: '3_multi',
|
|
621
|
-
title: ( localize(
|
|
621
|
+
title: ( localize(1368, "Add &&Next Occurrence")),
|
|
622
622
|
order: 5
|
|
623
623
|
}
|
|
624
624
|
});
|
|
@@ -631,12 +631,12 @@ class AddSelectionToPreviousFindMatchAction extends MultiCursorSelectionControll
|
|
|
631
631
|
constructor() {
|
|
632
632
|
super({
|
|
633
633
|
id: 'editor.action.addSelectionToPreviousFindMatch',
|
|
634
|
-
label: ( localize2(
|
|
634
|
+
label: ( localize2(1369, "Add Selection to Previous Find Match")),
|
|
635
635
|
precondition: undefined,
|
|
636
636
|
menuOpts: {
|
|
637
637
|
menuId: MenuId.MenubarSelectionMenu,
|
|
638
638
|
group: '3_multi',
|
|
639
|
-
title: ( localize(
|
|
639
|
+
title: ( localize(1370, "Add P&&revious Occurrence")),
|
|
640
640
|
order: 6
|
|
641
641
|
}
|
|
642
642
|
});
|
|
@@ -649,7 +649,7 @@ class MoveSelectionToNextFindMatchAction extends MultiCursorSelectionControllerA
|
|
|
649
649
|
constructor() {
|
|
650
650
|
super({
|
|
651
651
|
id: 'editor.action.moveSelectionToNextFindMatch',
|
|
652
|
-
label: ( localize2(
|
|
652
|
+
label: ( localize2(1371, "Move Last Selection to Next Find Match")),
|
|
653
653
|
precondition: undefined,
|
|
654
654
|
kbOpts: {
|
|
655
655
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -666,7 +666,7 @@ class MoveSelectionToPreviousFindMatchAction extends MultiCursorSelectionControl
|
|
|
666
666
|
constructor() {
|
|
667
667
|
super({
|
|
668
668
|
id: 'editor.action.moveSelectionToPreviousFindMatch',
|
|
669
|
-
label: ( localize2(
|
|
669
|
+
label: ( localize2(1372, "Move Last Selection to Previous Find Match")),
|
|
670
670
|
precondition: undefined
|
|
671
671
|
});
|
|
672
672
|
}
|
|
@@ -678,7 +678,7 @@ class SelectHighlightsAction extends MultiCursorSelectionControllerAction {
|
|
|
678
678
|
constructor() {
|
|
679
679
|
super({
|
|
680
680
|
id: 'editor.action.selectHighlights',
|
|
681
|
-
label: ( localize2(
|
|
681
|
+
label: ( localize2(1373, "Select All Occurrences of Find Match")),
|
|
682
682
|
precondition: undefined,
|
|
683
683
|
kbOpts: {
|
|
684
684
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -688,7 +688,7 @@ class SelectHighlightsAction extends MultiCursorSelectionControllerAction {
|
|
|
688
688
|
menuOpts: {
|
|
689
689
|
menuId: MenuId.MenubarSelectionMenu,
|
|
690
690
|
group: '3_multi',
|
|
691
|
-
title: ( localize(
|
|
691
|
+
title: ( localize(1374, "Select All &&Occurrences")),
|
|
692
692
|
order: 7
|
|
693
693
|
}
|
|
694
694
|
});
|
|
@@ -701,7 +701,7 @@ class CompatChangeAll extends MultiCursorSelectionControllerAction {
|
|
|
701
701
|
constructor() {
|
|
702
702
|
super({
|
|
703
703
|
id: 'editor.action.changeAll',
|
|
704
|
-
label: ( localize2(
|
|
704
|
+
label: ( localize2(1375, "Change All Occurrences")),
|
|
705
705
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.editorTextFocus)),
|
|
706
706
|
kbOpts: {
|
|
707
707
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -942,9 +942,9 @@ class FocusNextCursor extends EditorAction {
|
|
|
942
942
|
constructor() {
|
|
943
943
|
super({
|
|
944
944
|
id: 'editor.action.focusNextCursor',
|
|
945
|
-
label: ( localize2(
|
|
945
|
+
label: ( localize2(1376, "Focus Next Cursor")),
|
|
946
946
|
metadata: {
|
|
947
|
-
description: ( localize(
|
|
947
|
+
description: ( localize(1377, "Focuses the next cursor")),
|
|
948
948
|
args: [],
|
|
949
949
|
},
|
|
950
950
|
precondition: undefined
|
|
@@ -974,9 +974,9 @@ class FocusPreviousCursor extends EditorAction {
|
|
|
974
974
|
constructor() {
|
|
975
975
|
super({
|
|
976
976
|
id: 'editor.action.focusPreviousCursor',
|
|
977
|
-
label: ( localize2(
|
|
977
|
+
label: ( localize2(1378, "Focus Previous Cursor")),
|
|
978
978
|
metadata: {
|
|
979
|
-
description: ( localize(
|
|
979
|
+
description: ( localize(1379, "Focuses the previous cursor")),
|
|
980
980
|
args: [],
|
|
981
981
|
},
|
|
982
982
|
precondition: undefined
|
|
@@ -60,7 +60,7 @@ class TriggerParameterHintsAction extends EditorAction {
|
|
|
60
60
|
constructor() {
|
|
61
61
|
super({
|
|
62
62
|
id: 'editor.action.triggerParameterHints',
|
|
63
|
-
label: ( localize2(
|
|
63
|
+
label: ( localize2(1380, "Trigger Parameter Hints")),
|
|
64
64
|
precondition: EditorContextKeys.hasSignatureHelpProvider,
|
|
65
65
|
kbOpts: {
|
|
66
66
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -8,7 +8,7 @@ import { Codicon } from '../../../../base/common/codicons.js';
|
|
|
8
8
|
import { Event } from '../../../../base/common/event.js';
|
|
9
9
|
import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
10
10
|
import { escapeRegExpCharacters } from '../../../../base/common/strings.js';
|
|
11
|
-
import {
|
|
11
|
+
import { assertReturnsDefined } from '../../../../base/common/types.js';
|
|
12
12
|
import * as parameterHints from './parameterHints.css';
|
|
13
13
|
import { ContentWidgetPositionPreference } from '../../../browser/editorBrowser.js';
|
|
14
14
|
import { EditorOption, EDITOR_FONT_DEFAULTS } from '../../../common/config/editorOptions.js';
|
|
@@ -35,8 +35,8 @@ import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
|
35
35
|
var ParameterHintsWidget_1;
|
|
36
36
|
registerCss(parameterHints);
|
|
37
37
|
const $ = $$1;
|
|
38
|
-
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, ( localize(
|
|
39
|
-
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, ( localize(
|
|
38
|
+
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, ( localize(1381, 'Icon for show next parameter hint.')));
|
|
39
|
+
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, ( localize(1382, 'Icon for show previous parameter hint.')));
|
|
40
40
|
let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
41
41
|
static { ParameterHintsWidget_1 = this; }
|
|
42
42
|
static { this.ID = 'editor.widget.parameterHintsWidget'; }
|
|
@@ -206,7 +206,7 @@ let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
|
206
206
|
labelToAnnounce += typeof signature.documentation === 'string' ? `, ${signature.documentation}` : `, ${signature.documentation.value}`;
|
|
207
207
|
}
|
|
208
208
|
if (this.announcedLabel !== labelToAnnounce) {
|
|
209
|
-
alert(( localize(
|
|
209
|
+
alert(( localize(1383, "{0}, hint", labelToAnnounce)));
|
|
210
210
|
this.announcedLabel = labelToAnnounce;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -223,16 +223,16 @@ let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
|
223
223
|
return renderedContents;
|
|
224
224
|
}
|
|
225
225
|
hasDocs(signature, activeParameter) {
|
|
226
|
-
if (activeParameter && typeof activeParameter.documentation === 'string' &&
|
|
226
|
+
if (activeParameter && typeof activeParameter.documentation === 'string' && assertReturnsDefined(activeParameter.documentation).length > 0) {
|
|
227
227
|
return true;
|
|
228
228
|
}
|
|
229
|
-
if (activeParameter && typeof activeParameter.documentation === 'object' &&
|
|
229
|
+
if (activeParameter && typeof activeParameter.documentation === 'object' && assertReturnsDefined(activeParameter.documentation).value.length > 0) {
|
|
230
230
|
return true;
|
|
231
231
|
}
|
|
232
|
-
if (signature.documentation && typeof signature.documentation === 'string' &&
|
|
232
|
+
if (signature.documentation && typeof signature.documentation === 'string' && assertReturnsDefined(signature.documentation).length > 0) {
|
|
233
233
|
return true;
|
|
234
234
|
}
|
|
235
|
-
if (signature.documentation && typeof signature.documentation === 'object' &&
|
|
235
|
+
if (signature.documentation && typeof signature.documentation === 'object' && assertReturnsDefined(signature.documentation.value).length > 0) {
|
|
236
236
|
return true;
|
|
237
237
|
}
|
|
238
238
|
return false;
|
|
@@ -303,6 +303,6 @@ ParameterHintsWidget = ParameterHintsWidget_1 = ( __decorate([
|
|
|
303
303
|
( __param(3, IOpenerService)),
|
|
304
304
|
( __param(4, ILanguageService))
|
|
305
305
|
], ParameterHintsWidget));
|
|
306
|
-
registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, ( localize(
|
|
306
|
+
registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, ( localize(1384, 'Foreground color of the active item in the parameter hint.')));
|
|
307
307
|
|
|
308
308
|
export { ParameterHintsWidget };
|
|
@@ -64,6 +64,7 @@ export declare const peekViewResultsSelectionForeground: string;
|
|
|
64
64
|
export declare const peekViewEditorBackground: string;
|
|
65
65
|
export declare const peekViewEditorGutterBackground: string;
|
|
66
66
|
export declare const peekViewEditorStickyScrollBackground: string;
|
|
67
|
+
export declare const peekViewEditorStickyScrollGutterBackground: string;
|
|
67
68
|
export declare const peekViewResultsMatchHighlight: string;
|
|
68
69
|
export declare const peekViewEditorMatchHighlight: string;
|
|
69
70
|
export declare const peekViewEditorMatchHighlightBorder: string;
|
|
@@ -56,7 +56,7 @@ class PeekViewService {
|
|
|
56
56
|
}
|
|
57
57
|
var PeekContext;
|
|
58
58
|
(function (PeekContext) {
|
|
59
|
-
PeekContext.inPeekEditor = ( new RawContextKey('inReferenceSearchEditor', true, ( localize(
|
|
59
|
+
PeekContext.inPeekEditor = ( new RawContextKey('inReferenceSearchEditor', true, ( localize(1385, "Whether the current code editor is embedded inside peek"))));
|
|
60
60
|
PeekContext.notInPeekEditor = ( PeekContext.inPeekEditor.toNegated());
|
|
61
61
|
})(PeekContext || (PeekContext = {}));
|
|
62
62
|
let PeekContextController = class PeekContextController {
|
|
@@ -152,7 +152,7 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
152
152
|
this._actionbarWidget = ( new ActionBar(actionsContainer, actionBarOptions));
|
|
153
153
|
this._disposables.add(this._actionbarWidget);
|
|
154
154
|
if (!noCloseAction) {
|
|
155
|
-
this._actionbarWidget.push(this._disposables.add(( new Action('peekview.close', ( localize(
|
|
155
|
+
this._actionbarWidget.push(this._disposables.add(( new Action('peekview.close', ( localize(1386, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
156
156
|
this.dispose();
|
|
157
157
|
return Promise.resolve();
|
|
158
158
|
}))), { label: false, icon: true });
|
|
@@ -216,26 +216,30 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
216
216
|
PeekViewWidget = ( __decorate([
|
|
217
217
|
( __param(2, IInstantiationService))
|
|
218
218
|
], PeekViewWidget));
|
|
219
|
-
const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
220
|
-
const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
221
|
-
const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, ( localize(
|
|
222
|
-
const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
223
|
-
const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
224
|
-
registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
225
|
-
registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
219
|
+
const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(1387, 'Background color of the peek view title area.')));
|
|
220
|
+
const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, ( localize(1388, 'Color of the peek view title.')));
|
|
221
|
+
const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, ( localize(1389, 'Color of the peek view title info.')));
|
|
222
|
+
const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(1390, 'Color of the peek view borders and arrow.')));
|
|
223
|
+
const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, ( localize(1391, 'Background color of the peek view result list.')));
|
|
224
|
+
registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, ( localize(1392, 'Foreground color for line nodes in the peek view result list.')));
|
|
225
|
+
registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, ( localize(1393, 'Foreground color for file nodes in the peek view result list.')));
|
|
226
226
|
registerColor('peekViewResult.selectionBackground', { dark: '#3399ff33', light: '#3399ff33', hcDark: null, hcLight: null }, ( localize(
|
|
227
|
-
|
|
227
|
+
1394,
|
|
228
228
|
'Background color of the selected entry in the peek view result list.'
|
|
229
229
|
)));
|
|
230
230
|
registerColor('peekViewResult.selectionForeground', { dark: Color.white, light: '#6C6C6C', hcDark: Color.white, hcLight: editorForeground }, ( localize(
|
|
231
|
-
|
|
231
|
+
1395,
|
|
232
232
|
'Foreground color of the selected entry in the peek view result list.'
|
|
233
233
|
)));
|
|
234
|
-
const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, ( localize(
|
|
235
|
-
registerColor('peekViewEditorGutter.background', peekViewEditorBackground, ( localize(
|
|
236
|
-
registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, ( localize(
|
|
237
|
-
registerColor('
|
|
238
|
-
|
|
239
|
-
|
|
234
|
+
const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, ( localize(1396, 'Background color of the peek view editor.')));
|
|
235
|
+
registerColor('peekViewEditorGutter.background', peekViewEditorBackground, ( localize(1397, 'Background color of the gutter in the peek view editor.')));
|
|
236
|
+
registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, ( localize(1398, 'Background color of sticky scroll in the peek view editor.')));
|
|
237
|
+
registerColor('peekViewEditorStickyScrollGutter.background', peekViewEditorBackground, ( localize(
|
|
238
|
+
1399,
|
|
239
|
+
'Background color of the gutter part of sticky scroll in the peek view editor.'
|
|
240
|
+
)));
|
|
241
|
+
registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, ( localize(1400, 'Match highlight color in the peek view result list.')));
|
|
242
|
+
const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, ( localize(1401, 'Match highlight color in the peek view editor.')));
|
|
243
|
+
registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, ( localize(1402, 'Match highlight border in the peek view editor.')));
|
|
240
244
|
|
|
241
245
|
export { PeekContext, PeekViewService, PeekViewWidget, peekViewBorder, peekViewEditorBackground, peekViewEditorMatchHighlight, peekViewResultsBackground, peekViewTitleBackground, peekViewTitleForeground, peekViewTitleInfoForeground };
|
package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js
CHANGED
|
@@ -10,4 +10,4 @@ import { wrapInReloadableClass1 } from '../../../../platform/observable/common/w
|
|
|
10
10
|
|
|
11
11
|
registerCss(placeholderText);
|
|
12
12
|
registerEditorContribution(PlaceholderTextContribution.ID, wrapInReloadableClass1(() => PlaceholderTextContribution), EditorContributionInstantiation.Eager);
|
|
13
|
-
registerColor('editor.placeholder.foreground', ghostTextForeground, ( localize(
|
|
13
|
+
registerColor('editor.placeholder.foreground', ghostTextForeground, ( localize(1403, 'Foreground color of the placeholder text in the editor.')));
|
|
@@ -19,10 +19,10 @@ class ReadOnlyMessageController extends Disposable {
|
|
|
19
19
|
let message = this.editor.getOptions().get(EditorOption.readOnlyMessage);
|
|
20
20
|
if (!message) {
|
|
21
21
|
if (this.editor.isSimpleWidget) {
|
|
22
|
-
message = ( new MarkdownString(( localize(
|
|
22
|
+
message = ( new MarkdownString(( localize(1441, "Cannot edit in read-only input"))));
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
25
|
-
message = ( new MarkdownString(( localize(
|
|
25
|
+
message = ( new MarkdownString(( localize(1442, "Cannot edit in read-only editor"))));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
messageController.showMessage(message, this.editor.getPosition());
|
|
@@ -28,6 +28,7 @@ import { EditorContextKeys } from '../../../common/editorContextKeys.js';
|
|
|
28
28
|
import { NewSymbolNameTriggerKind } from '../../../common/languages.js';
|
|
29
29
|
import { ILanguageFeaturesService } from '../../../common/services/languageFeatures.service.js';
|
|
30
30
|
import { ITextResourceConfigurationService } from '../../../common/services/textResourceConfiguration.service.js';
|
|
31
|
+
import { EditReasons } from '../../../common/textModelEditReason.js';
|
|
31
32
|
import { EditorStateCancellationTokenSource, CodeEditorStateFlag } from '../../editorState/browser/editorState.js';
|
|
32
33
|
import { MessageController } from '../../message/browser/messageController.js';
|
|
33
34
|
import { RenameWidget, CONTEXT_RENAME_INPUT_VISIBLE } from './renameWidget.js';
|
|
@@ -93,7 +94,7 @@ class RenameSkeleton {
|
|
|
93
94
|
}
|
|
94
95
|
const result = await provider.provideRenameEdits(this.model, this.position, newName, token);
|
|
95
96
|
if (!result) {
|
|
96
|
-
return this._provideRenameEdits(newName, i + 1, rejects.concat(( localize(
|
|
97
|
+
return this._provideRenameEdits(newName, i + 1, rejects.concat(( localize(1443, "No result."))), token);
|
|
97
98
|
}
|
|
98
99
|
else if (result.rejectReason) {
|
|
99
100
|
return this._provideRenameEdits(newName, i + 1, rejects.concat(result.rejectReason), token);
|
|
@@ -171,7 +172,7 @@ let RenameController = class RenameController {
|
|
|
171
172
|
else {
|
|
172
173
|
trace('resolve rename location failed', e instanceof Error ? e : JSON.stringify(e, null, '\t'));
|
|
173
174
|
if (typeof e === 'string' || isMarkdownString(e)) {
|
|
174
|
-
MessageController.get(this.editor)?.showMessage(e || ( localize(
|
|
175
|
+
MessageController.get(this.editor)?.showMessage(e || ( localize(1444, "An unknown error occurred while resolving rename location")), position);
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
178
|
return undefined;
|
|
@@ -243,15 +244,16 @@ let RenameController = class RenameController {
|
|
|
243
244
|
this._bulkEditService.apply(renameResult, {
|
|
244
245
|
editor: this.editor,
|
|
245
246
|
showPreview: inputFieldResult.wantsPreview,
|
|
246
|
-
label: ( localize(
|
|
247
|
+
label: ( localize(1445, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName)),
|
|
247
248
|
code: 'undoredo.rename',
|
|
248
|
-
quotableLabel: ( localize(
|
|
249
|
-
respectAutoSaveConfig: true
|
|
249
|
+
quotableLabel: ( localize(1446, "Renaming {0} to {1}", loc?.text, inputFieldResult.newName)),
|
|
250
|
+
respectAutoSaveConfig: true,
|
|
251
|
+
reason: EditReasons.rename(),
|
|
250
252
|
}).then(result => {
|
|
251
253
|
trace('edits applied');
|
|
252
254
|
if (result.ariaSummary) {
|
|
253
255
|
alert(( localize(
|
|
254
|
-
|
|
256
|
+
1447,
|
|
255
257
|
"Successfully renamed '{0}' to '{1}'. Summary: {2}",
|
|
256
258
|
loc.text,
|
|
257
259
|
inputFieldResult.newName,
|
|
@@ -260,12 +262,12 @@ let RenameController = class RenameController {
|
|
|
260
262
|
}
|
|
261
263
|
}).catch(err => {
|
|
262
264
|
trace(`error when applying edits ${JSON.stringify(err, null, '\t')}`);
|
|
263
|
-
this._notificationService.error(( localize(
|
|
265
|
+
this._notificationService.error(( localize(1448, "Rename failed to apply edits")));
|
|
264
266
|
this._logService.error(err);
|
|
265
267
|
});
|
|
266
268
|
}, err => {
|
|
267
269
|
trace('error when providing rename edits', JSON.stringify(err, null, '\t'));
|
|
268
|
-
this._notificationService.error(( localize(
|
|
270
|
+
this._notificationService.error(( localize(1449, "Rename failed to compute edits")));
|
|
269
271
|
this._logService.error(err);
|
|
270
272
|
}).finally(() => {
|
|
271
273
|
cts2.dispose();
|
|
@@ -300,7 +302,7 @@ class RenameAction extends EditorAction {
|
|
|
300
302
|
constructor() {
|
|
301
303
|
super({
|
|
302
304
|
id: 'editor.action.rename',
|
|
303
|
-
label: ( localize2(
|
|
305
|
+
label: ( localize2(1450, "Rename Symbol")),
|
|
304
306
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider)),
|
|
305
307
|
kbOpts: {
|
|
306
308
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -380,7 +382,7 @@ registerAction2(class FocusNextRenameSuggestion extends Action2 {
|
|
|
380
382
|
super({
|
|
381
383
|
id: 'focusNextRenameSuggestion',
|
|
382
384
|
title: {
|
|
383
|
-
...( localize2(
|
|
385
|
+
...( localize2(1451, "Focus Next Rename Suggestion")),
|
|
384
386
|
},
|
|
385
387
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
386
388
|
keybinding: [
|
|
@@ -408,7 +410,7 @@ registerAction2(class FocusPreviousRenameSuggestion extends Action2 {
|
|
|
408
410
|
super({
|
|
409
411
|
id: 'focusPreviousRenameSuggestion',
|
|
410
412
|
title: {
|
|
411
|
-
...( localize2(
|
|
413
|
+
...( localize2(1452, "Focus Previous Rename Suggestion")),
|
|
412
414
|
},
|
|
413
415
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
414
416
|
keybinding: [
|
|
@@ -451,7 +453,7 @@ registerModelAndPositionCommand('_executePrepareRename', async function (accesso
|
|
|
451
453
|
properties: {
|
|
452
454
|
'editor.rename.enablePreview': {
|
|
453
455
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
|
|
454
|
-
description: ( localize(
|
|
456
|
+
description: ( localize(1453, "Enable/disable the ability to preview changes before renaming")),
|
|
455
457
|
default: true,
|
|
456
458
|
type: 'boolean'
|
|
457
459
|
}
|
|
@@ -44,7 +44,7 @@ import '../../../../platform/theme/common/colors/searchColors.js';
|
|
|
44
44
|
import { IThemeService } from '../../../../platform/theme/common/themeService.service.js';
|
|
45
45
|
|
|
46
46
|
registerCss(renameWidget);
|
|
47
|
-
const CONTEXT_RENAME_INPUT_VISIBLE = ( new RawContextKey('renameInputVisible', false, ( localize(
|
|
47
|
+
const CONTEXT_RENAME_INPUT_VISIBLE = ( new RawContextKey('renameInputVisible', false, ( localize(1454, "Whether the rename input widget is visible"))));
|
|
48
48
|
let RenameWidget = class RenameWidget {
|
|
49
49
|
constructor(_editor, _acceptKeybindings, _themeService, _keybindingService, contextKeyService, _logService) {
|
|
50
50
|
this._editor = _editor;
|
|
@@ -167,7 +167,7 @@ let RenameWidget = class RenameWidget {
|
|
|
167
167
|
beforeRender() {
|
|
168
168
|
const [accept, preview] = this._acceptKeybindings;
|
|
169
169
|
this._label.innerText = ( localize(
|
|
170
|
-
|
|
170
|
+
1455,
|
|
171
171
|
"{0} to Rename, {1} to Preview",
|
|
172
172
|
this._keybindingService.lookupKeybinding(accept)?.getLabel(),
|
|
173
173
|
this._keybindingService.lookupKeybinding(preview)?.getLabel()
|
|
@@ -463,7 +463,7 @@ class RenameCandidateListView {
|
|
|
463
463
|
this._listWidget.layout(height, width);
|
|
464
464
|
this._listContainer.style.height = `${height}px`;
|
|
465
465
|
this._listContainer.style.width = `${width}px`;
|
|
466
|
-
status(( localize(
|
|
466
|
+
status(( localize(1456, "Received {0} rename suggestions", candidates.length)));
|
|
467
467
|
}
|
|
468
468
|
clearCandidates() {
|
|
469
469
|
this._listContainer.style.height = '0px';
|
|
@@ -602,13 +602,13 @@ class InputWithButton {
|
|
|
602
602
|
this._inputNode.className = 'rename-input';
|
|
603
603
|
this._inputNode.type = 'text';
|
|
604
604
|
this._inputNode.style.border = 'none';
|
|
605
|
-
this._inputNode.setAttribute('aria-label', ( localize(
|
|
605
|
+
this._inputNode.setAttribute('aria-label', ( localize(1457, "Rename input. Type new name and press Enter to commit.")));
|
|
606
606
|
this._domNode.appendChild(this._inputNode);
|
|
607
607
|
this._buttonNode = document.createElement('div');
|
|
608
608
|
this._buttonNode.className = 'rename-suggestions-button';
|
|
609
609
|
this._buttonNode.setAttribute('tabindex', '0');
|
|
610
|
-
this._buttonGenHoverText = ( localize(
|
|
611
|
-
this._buttonCancelHoverText = ( localize(
|
|
610
|
+
this._buttonGenHoverText = ( localize(1458, "Generate new name suggestions"));
|
|
611
|
+
this._buttonCancelHoverText = ( localize(1459, "Cancel"));
|
|
612
612
|
this._buttonHoverContent = this._buttonGenHoverText;
|
|
613
613
|
this._disposables.add(getBaseLayerHoverDelegate().setupDelayedHover(this._buttonNode, () => ({
|
|
614
614
|
content: this._buttonHoverContent,
|
|
@@ -118,7 +118,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
|
|
118
118
|
constructor() {
|
|
119
119
|
super(true, {
|
|
120
120
|
id: 'editor.action.smartSelect.expand',
|
|
121
|
-
label: ( localize2(
|
|
121
|
+
label: ( localize2(1460, "Expand Selection")),
|
|
122
122
|
precondition: undefined,
|
|
123
123
|
kbOpts: {
|
|
124
124
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -132,7 +132,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
|
|
132
132
|
menuOpts: {
|
|
133
133
|
menuId: MenuId.MenubarSelectionMenu,
|
|
134
134
|
group: '1_basic',
|
|
135
|
-
title: ( localize(
|
|
135
|
+
title: ( localize(1461, "&&Expand Selection")),
|
|
136
136
|
order: 2
|
|
137
137
|
}
|
|
138
138
|
});
|
|
@@ -143,7 +143,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
|
|
|
143
143
|
constructor() {
|
|
144
144
|
super(false, {
|
|
145
145
|
id: 'editor.action.smartSelect.shrink',
|
|
146
|
-
label: ( localize2(
|
|
146
|
+
label: ( localize2(1462, "Shrink Selection")),
|
|
147
147
|
precondition: undefined,
|
|
148
148
|
kbOpts: {
|
|
149
149
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -157,7 +157,7 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
|
|
|
157
157
|
menuOpts: {
|
|
158
158
|
menuId: MenuId.MenubarSelectionMenu,
|
|
159
159
|
group: '1_basic',
|
|
160
|
-
title: ( localize(
|
|
160
|
+
title: ( localize(1463, "&&Shrink Selection")),
|
|
161
161
|
order: 3
|
|
162
162
|
}
|
|
163
163
|
});
|
|
@@ -8,6 +8,7 @@ import { RawContextKey } from "../../../../platform/contextkey/common/contextkey
|
|
|
8
8
|
import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js";
|
|
9
9
|
import { ILogService } from "../../../../platform/log/common/log.service.js";
|
|
10
10
|
import { ISnippetEdit } from "./snippetSession.js";
|
|
11
|
+
import { TextModelEditReason } from "../../../common/textModelEditReason.js";
|
|
11
12
|
export interface ISnippetInsertOptions {
|
|
12
13
|
overwriteBefore: number;
|
|
13
14
|
overwriteAfter: number;
|
|
@@ -16,6 +17,7 @@ export interface ISnippetInsertOptions {
|
|
|
16
17
|
undoStopAfter: boolean;
|
|
17
18
|
clipboardText: string | undefined;
|
|
18
19
|
overtypingCapturer: OvertypingCapturer | undefined;
|
|
20
|
+
reason?: TextModelEditReason;
|
|
19
21
|
}
|
|
20
22
|
export declare class SnippetController2 implements IEditorContribution {
|
|
21
23
|
private readonly _editor;
|
|
@@ -33,9 +33,9 @@ let SnippetController2 = class SnippetController2 {
|
|
|
33
33
|
static get(editor) {
|
|
34
34
|
return editor.getContribution(SnippetController2_1.ID);
|
|
35
35
|
}
|
|
36
|
-
static { this.InSnippetMode = ( new RawContextKey('inSnippetMode', false, ( localize(
|
|
37
|
-
static { this.HasNextTabstop = ( new RawContextKey('hasNextTabstop', false, ( localize(
|
|
38
|
-
static { this.HasPrevTabstop = ( new RawContextKey('hasPrevTabstop', false, ( localize(
|
|
36
|
+
static { this.InSnippetMode = ( new RawContextKey('inSnippetMode', false, ( localize(1464, "Whether the editor in current in snippet mode")))); }
|
|
37
|
+
static { this.HasNextTabstop = ( new RawContextKey('hasNextTabstop', false, ( localize(1465, "Whether there is a next tab stop when in snippet mode")))); }
|
|
38
|
+
static { this.HasPrevTabstop = ( new RawContextKey('hasPrevTabstop', false, ( localize(1466, "Whether there is a previous tab stop when in snippet mode")))); }
|
|
39
39
|
constructor(_editor, _logService, _languageFeaturesService, contextKeyService, _languageConfigurationService) {
|
|
40
40
|
this._editor = _editor;
|
|
41
41
|
this._logService = _logService;
|
|
@@ -92,7 +92,7 @@ let SnippetController2 = class SnippetController2 {
|
|
|
92
92
|
if (!this._session) {
|
|
93
93
|
this._modelVersionId = this._editor.getModel().getAlternativeVersionId();
|
|
94
94
|
this._session = ( new SnippetSession(this._editor, template, opts, this._languageConfigurationService));
|
|
95
|
-
this._session.insert();
|
|
95
|
+
this._session.insert(opts.reason);
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
98
98
|
assertType(typeof template === 'string');
|
|
@@ -124,7 +124,7 @@ let SnippetController2 = class SnippetController2 {
|
|
|
124
124
|
sortText: 'a'.repeat(i + 1),
|
|
125
125
|
range: activeChoice.range,
|
|
126
126
|
filterText: isAnyOfOptions ? `${word}_${option.value}` : undefined,
|
|
127
|
-
command: { id: 'jumpToNextSnippetPlaceholder', title: ( localize(
|
|
127
|
+
command: { id: 'jumpToNextSnippetPlaceholder', title: ( localize(1467, 'Go to next placeholder...')) }
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
return { suggestions };
|
|
@@ -7,6 +7,7 @@ import { ILanguageConfigurationService } from "../../../common/languages/languag
|
|
|
7
7
|
import { IIdentifiedSingleEditOperation, ITextModel } from "../../../common/model.js";
|
|
8
8
|
import { OvertypingCapturer } from "../../suggest/browser/suggestOvertypingCapturer.js";
|
|
9
9
|
import { Choice, Marker, TextmateSnippet } from "./snippetParser.js";
|
|
10
|
+
import { TextModelEditReason } from "../../../common/textModelEditReason.js";
|
|
10
11
|
export declare class OneSnippet {
|
|
11
12
|
private readonly _editor;
|
|
12
13
|
private readonly _snippet;
|
|
@@ -68,7 +69,7 @@ export declare class SnippetSession {
|
|
|
68
69
|
constructor(_editor: IActiveCodeEditor, _template: string | ISnippetEdit[], _options: ISnippetSessionInsertOptions | undefined, _languageConfigurationService: ILanguageConfigurationService);
|
|
69
70
|
dispose(): void;
|
|
70
71
|
_logInfo(): string;
|
|
71
|
-
insert(): void;
|
|
72
|
+
insert(editReason?: TextModelEditReason): void;
|
|
72
73
|
merge(template: string, options?: ISnippetSessionInsertOptions): void;
|
|
73
74
|
next(): void;
|
|
74
75
|
prev(): void;
|
|
@@ -17,6 +17,7 @@ import { ILabelService } from '../../../../platform/label/common/label.service.j
|
|
|
17
17
|
import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.service.js';
|
|
18
18
|
import { Placeholder, Choice, Text, SnippetParser, TextmateSnippet } from './snippetParser.js';
|
|
19
19
|
import { ModelBasedVariableResolver, CompositeSnippetVariableResolver, ClipboardBasedVariableResolver, SelectionBasedVariableResolver, CommentBasedVariableResolver, TimeBasedVariableResolver, WorkspaceBasedVariableResolver, RandomBasedVariableResolver } from './snippetVariables.js';
|
|
20
|
+
import { EditReasons } from '../../../common/textModelEditReason.js';
|
|
20
21
|
|
|
21
22
|
var SnippetSession_1;
|
|
22
23
|
registerCss(snippetSession);
|
|
@@ -439,7 +440,7 @@ let SnippetSession = SnippetSession_1 = class SnippetSession {
|
|
|
439
440
|
_logInfo() {
|
|
440
441
|
return `template="${this._template}", merged_templates="${this._templateMerges.join(' -> ')}"`;
|
|
441
442
|
}
|
|
442
|
-
insert() {
|
|
443
|
+
insert(editReason) {
|
|
443
444
|
if (!this._editor.hasModel()) {
|
|
444
445
|
return;
|
|
445
446
|
}
|
|
@@ -447,7 +448,7 @@ let SnippetSession = SnippetSession_1 = class SnippetSession {
|
|
|
447
448
|
? SnippetSession_1.createEditsAndSnippetsFromSelections(this._editor, this._template, this._options.overwriteBefore, this._options.overwriteAfter, false, this._options.adjustWhitespace, this._options.clipboardText, this._options.overtypingCapturer, this._languageConfigurationService)
|
|
448
449
|
: SnippetSession_1.createEditsAndSnippetsFromEdits(this._editor, this._template, false, this._options.adjustWhitespace, this._options.clipboardText, this._options.overtypingCapturer, this._languageConfigurationService);
|
|
449
450
|
this._snippets = snippets;
|
|
450
|
-
this._editor.executeEdits(
|
|
451
|
+
this._editor.executeEdits(editReason ?? EditReasons.snippet(), edits, _undoEdits => {
|
|
451
452
|
const undoEdits = _undoEdits.filter(edit => !!edit.identifier);
|
|
452
453
|
for (let idx = 0; idx < snippets.length; idx++) {
|
|
453
454
|
snippets[idx].initialize(undoEdits[idx].textChange);
|