@codingame/monaco-vscode-api 18.4.0 → 19.0.0
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
|
@@ -3,16 +3,17 @@ import { equalsIfDefined, itemsEquals } from '../../base/common/equals.js';
|
|
|
3
3
|
import { Disposable, DisposableStore, toDisposable } from '../../base/common/lifecycle.js';
|
|
4
4
|
import '../../base/common/observableInternal/index.js';
|
|
5
5
|
import { EditorOption } from '../common/config/editorOptions.js';
|
|
6
|
+
import { LineRange } from '../common/core/ranges/lineRange.js';
|
|
6
7
|
import { OffsetRange } from '../common/core/ranges/offsetRange.js';
|
|
7
8
|
import { Position } from '../common/core/position.js';
|
|
8
9
|
import { Selection } from '../common/core/selection.js';
|
|
9
10
|
import { ContentWidgetPositionPreference } from './editorBrowser.js';
|
|
10
11
|
import { Point } from '../common/core/2d/point.js';
|
|
11
12
|
import { TransactionImpl } from '../../base/common/observableInternal/transaction.js';
|
|
13
|
+
import { observableFromEvent } from '../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
12
14
|
import { derivedOpts, derivedWithSetter, derived } from '../../base/common/observableInternal/observables/derived.js';
|
|
13
15
|
import { autorunOpts, autorun } from '../../base/common/observableInternal/reactions/autorun.js';
|
|
14
16
|
import { observableValue } from '../../base/common/observableInternal/observables/observableValue.js';
|
|
15
|
-
import { observableFromEvent } from '../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
16
17
|
import { observableValueOpts } from '../../base/common/observableInternal/observables/observableValueOpts.js';
|
|
17
18
|
import { observableSignal } from '../../base/common/observableInternal/observables/observableSignal.js';
|
|
18
19
|
|
|
@@ -178,6 +179,10 @@ class ObservableCodeEditor extends Disposable {
|
|
|
178
179
|
this._endUpdate();
|
|
179
180
|
}
|
|
180
181
|
}));
|
|
182
|
+
this.domNode = derived(reader => {
|
|
183
|
+
this.model.read(reader);
|
|
184
|
+
return this.editor.getDomNode();
|
|
185
|
+
});
|
|
181
186
|
}
|
|
182
187
|
forceUpdate(cb) {
|
|
183
188
|
this._beginUpdate();
|
|
@@ -324,6 +329,38 @@ class ObservableCodeEditor extends Disposable {
|
|
|
324
329
|
}));
|
|
325
330
|
return isHovered;
|
|
326
331
|
}
|
|
332
|
+
observeLineHeightForPosition(position) {
|
|
333
|
+
return derived(reader => {
|
|
334
|
+
const pos = position instanceof Position ? position : position.read(reader);
|
|
335
|
+
if (pos === null) {
|
|
336
|
+
return null;
|
|
337
|
+
}
|
|
338
|
+
this.getOption(EditorOption.lineHeight).read(reader);
|
|
339
|
+
return this.editor.getLineHeightForPosition(pos);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
observeLineHeightForLine(lineNumber) {
|
|
343
|
+
if (typeof lineNumber === 'number') {
|
|
344
|
+
return this.observeLineHeightForPosition(( new Position(lineNumber, 1)));
|
|
345
|
+
}
|
|
346
|
+
return derived(reader => {
|
|
347
|
+
const line = lineNumber.read(reader);
|
|
348
|
+
if (line === null) {
|
|
349
|
+
return null;
|
|
350
|
+
}
|
|
351
|
+
return this.observeLineHeightForPosition(( new Position(line, 1))).read(reader);
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
observeLineHeightsForLineRange(lineNumber) {
|
|
355
|
+
return derived(reader => {
|
|
356
|
+
const range = lineNumber instanceof LineRange ? lineNumber : lineNumber.read(reader);
|
|
357
|
+
const heights = [];
|
|
358
|
+
for (let i = range.startLineNumber; i < range.endLineNumberExclusive; i++) {
|
|
359
|
+
heights.push(this.observeLineHeightForLine(i).read(reader));
|
|
360
|
+
}
|
|
361
|
+
return heights;
|
|
362
|
+
});
|
|
363
|
+
}
|
|
327
364
|
}
|
|
328
365
|
|
|
329
366
|
export { ObservableCodeEditor, observableCodeEditor };
|
|
@@ -389,6 +389,10 @@ class DecorationTypeOptionsProvider {
|
|
|
389
389
|
const options = providerArgs.options;
|
|
390
390
|
this.isWholeLine = Boolean(options.isWholeLine);
|
|
391
391
|
this.lineHeight = options.lineHeight;
|
|
392
|
+
this.fontFamily = options.fontFamily;
|
|
393
|
+
this.fontSize = options.fontSize;
|
|
394
|
+
this.fontWeight = options.fontWeight;
|
|
395
|
+
this.fontStyle = options.fontStyle;
|
|
392
396
|
this.stickiness = options.rangeBehavior;
|
|
393
397
|
const lightOverviewRulerColor = options.light && options.light.overviewRulerColor || options.overviewRulerColor;
|
|
394
398
|
const darkOverviewRulerColor = options.dark && options.dark.overviewRulerColor || options.overviewRulerColor;
|
|
@@ -414,6 +418,10 @@ class DecorationTypeOptionsProvider {
|
|
|
414
418
|
glyphMarginClassName: this.glyphMarginClassName,
|
|
415
419
|
isWholeLine: this.isWholeLine,
|
|
416
420
|
lineHeight: this.lineHeight,
|
|
421
|
+
fontFamily: this.fontFamily,
|
|
422
|
+
fontSize: this.fontSize,
|
|
423
|
+
fontWeight: this.fontWeight,
|
|
424
|
+
fontStyle: this.fontStyle,
|
|
417
425
|
overviewRuler: this.overviewRuler,
|
|
418
426
|
stickiness: this.stickiness,
|
|
419
427
|
before: this.beforeInjectedText,
|
|
@@ -580,7 +588,7 @@ class DecorationCSSRules {
|
|
|
580
588
|
return '';
|
|
581
589
|
}
|
|
582
590
|
const cssTextArr = [];
|
|
583
|
-
this.collectCSSText(opts, ['fontStyle', 'fontWeight', 'textDecoration', 'cursor', 'color', 'opacity', 'letterSpacing'], cssTextArr);
|
|
591
|
+
this.collectCSSText(opts, ['fontStyle', 'fontWeight', 'fontFamily', 'fontSize', 'textDecoration', 'cursor', 'color', 'opacity', 'letterSpacing'], cssTextArr);
|
|
584
592
|
if (opts.letterSpacing) {
|
|
585
593
|
this._hasLetterSpacing = true;
|
|
586
594
|
}
|
|
@@ -4,6 +4,7 @@ import { IProgress, IProgressStep } from "../../../platform/progress/common/prog
|
|
|
4
4
|
import { URI } from "../../../base/common/uri.js";
|
|
5
5
|
import { UndoRedoSource } from "../../../platform/undoRedo/common/undoRedo.js";
|
|
6
6
|
import { CancellationToken } from "../../../base/common/cancellation.js";
|
|
7
|
+
import { TextModelEditReason } from "../../common/textModelEditReason.js";
|
|
7
8
|
export declare class ResourceEdit {
|
|
8
9
|
readonly metadata?: WorkspaceEditMetadata | undefined;
|
|
9
10
|
protected constructor(metadata?: WorkspaceEditMetadata | undefined);
|
|
@@ -43,6 +44,7 @@ export interface IBulkEditOptions {
|
|
|
43
44
|
undoRedoGroupId?: number;
|
|
44
45
|
confirmBeforeUndo?: boolean;
|
|
45
46
|
respectAutoSaveConfig?: boolean;
|
|
47
|
+
reason?: TextModelEditReason;
|
|
46
48
|
}
|
|
47
49
|
export interface IBulkEditResult {
|
|
48
50
|
ariaSummary: string;
|
|
@@ -16,6 +16,7 @@ import { ILanguageFeaturesService } from "../../common/services/languageFeatures
|
|
|
16
16
|
import { IChange } from "../../common/diff/legacyLinesDiffComputer.js";
|
|
17
17
|
import { IDocumentDiff, IDocumentDiffProviderOptions } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/editor/common/diff/documentDiffProvider";
|
|
18
18
|
import { SectionHeader, FindSectionHeaderOptions } from "../../common/services/findSectionHeaders.js";
|
|
19
|
+
import { StringEdit } from "../../common/core/edits/stringEdit.js";
|
|
19
20
|
export declare abstract class EditorWorkerService extends Disposable implements IEditorWorkerService {
|
|
20
21
|
private readonly _languageConfigurationService;
|
|
21
22
|
readonly _serviceBrand: undefined;
|
|
@@ -31,6 +32,9 @@ export declare abstract class EditorWorkerService extends Disposable implements
|
|
|
31
32
|
computeDirtyDiff(original: URI, modified: URI, ignoreTrimWhitespace: boolean): Promise<IChange[] | null>;
|
|
32
33
|
computeMoreMinimalEdits(resource: URI, edits: languages.TextEdit[] | null | undefined, pretty?: boolean): Promise<languages.TextEdit[] | undefined>;
|
|
33
34
|
computeHumanReadableDiff(resource: URI, edits: languages.TextEdit[] | null | undefined): Promise<languages.TextEdit[] | undefined>;
|
|
35
|
+
computeStringEditFromDiff(original: string, modified: string, options: {
|
|
36
|
+
maxComputationTimeMs: number;
|
|
37
|
+
}, algorithm: DiffAlgorithmName): Promise<StringEdit>;
|
|
34
38
|
canNavigateValueSet(resource: URI): boolean;
|
|
35
39
|
navigateValueSet(resource: URI, range: IRange, up: boolean): Promise<languages.IInplaceReplaceSupportResult | null>;
|
|
36
40
|
canComputeWordRanges(resource: URI): boolean;
|
|
@@ -22,6 +22,8 @@ import { mainWindow } from '../../../base/browser/window.js';
|
|
|
22
22
|
import { WindowIntervalTimer } from '../../../base/browser/dom.js';
|
|
23
23
|
import { WorkerTextModelSyncClient } from '../../common/services/textModelSync/textModelSync.impl.js';
|
|
24
24
|
import { EditorWorkerHost } from '../../common/services/editorWorkerHost.js';
|
|
25
|
+
import { StringEdit } from '../../common/core/edits/stringEdit.js';
|
|
26
|
+
import { OffsetRange } from '../../common/core/ranges/offsetRange.js';
|
|
25
27
|
|
|
26
28
|
const STOP_WORKER_DELTA_TIME_MS = 5 * 60 * 1000;
|
|
27
29
|
function canSyncModel(modelService, resource) {
|
|
@@ -55,7 +57,8 @@ let EditorWorkerService = class EditorWorkerService extends Disposable {
|
|
|
55
57
|
this._workerManager,
|
|
56
58
|
configurationService,
|
|
57
59
|
this._modelService,
|
|
58
|
-
this._languageConfigurationService
|
|
60
|
+
this._languageConfigurationService,
|
|
61
|
+
this._logService
|
|
59
62
|
))));
|
|
60
63
|
}
|
|
61
64
|
dispose() {
|
|
@@ -126,6 +129,17 @@ let EditorWorkerService = class EditorWorkerService extends Disposable {
|
|
|
126
129
|
return Promise.resolve(undefined);
|
|
127
130
|
}
|
|
128
131
|
}
|
|
132
|
+
async computeStringEditFromDiff(original, modified, options, algorithm) {
|
|
133
|
+
try {
|
|
134
|
+
const worker = await this._workerWithResources([]);
|
|
135
|
+
const edit = await worker.$computeStringDiff(original, modified, options, algorithm);
|
|
136
|
+
return StringEdit.fromJson(edit);
|
|
137
|
+
}
|
|
138
|
+
catch (e) {
|
|
139
|
+
onUnexpectedError(e);
|
|
140
|
+
return StringEdit.replace(OffsetRange.ofLength(original.length), modified);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
129
143
|
canNavigateValueSet(resource) {
|
|
130
144
|
return (canSyncModel(this._modelService, resource));
|
|
131
145
|
}
|
|
@@ -175,8 +189,9 @@ EditorWorkerService = ( __decorate([
|
|
|
175
189
|
( __param(5, ILanguageFeaturesService))
|
|
176
190
|
], EditorWorkerService));
|
|
177
191
|
class WordBasedCompletionItemProvider {
|
|
178
|
-
constructor(workerManager, configurationService, modelService, languageConfigurationService) {
|
|
192
|
+
constructor(workerManager, configurationService, modelService, languageConfigurationService, logService) {
|
|
179
193
|
this.languageConfigurationService = languageConfigurationService;
|
|
194
|
+
this.logService = logService;
|
|
180
195
|
this._debugDisplayName = 'wordbasedCompletions';
|
|
181
196
|
this._workerManager = workerManager;
|
|
182
197
|
this._configurationService = configurationService;
|
|
@@ -213,6 +228,7 @@ class WordBasedCompletionItemProvider {
|
|
|
213
228
|
const word = model.getWordAtPosition(position);
|
|
214
229
|
const replace = !word ? Range.fromPositions(position) : ( new Range(position.lineNumber, word.startColumn, position.lineNumber, word.endColumn));
|
|
215
230
|
const insert = replace.setEndPosition(position.lineNumber, position.column);
|
|
231
|
+
this.logService.trace('[WordBasedCompletionItemProvider]', `word: "${word?.word || ''}", wordDef: "${wordDefRegExp}", replace: [${( replace.toString())}], insert: [${( insert.toString())}]`);
|
|
216
232
|
const client = await this._workerManager.withWorker();
|
|
217
233
|
const data = await client.textualSuggest(models, word?.word, wordDefRegExp);
|
|
218
234
|
if (!data) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Event } from "../../../base/common/event.js";
|
|
2
|
+
import { Disposable } from "../../../base/common/lifecycle.js";
|
|
3
|
+
import { Action2 } from "../../../platform/actions/common/actions.js";
|
|
4
|
+
import { IContextKeyService } from "../../../platform/contextkey/common/contextkey.service.js";
|
|
5
|
+
import { ServicesAccessor } from "../../../platform/instantiation/common/instantiation.js";
|
|
6
|
+
import { IInlineCompletionsService } from "./inlineCompletionsService.service.js";
|
|
7
|
+
export declare class InlineCompletionsService extends Disposable implements IInlineCompletionsService {
|
|
8
|
+
private _contextKeyService;
|
|
9
|
+
readonly _serviceBrand: undefined;
|
|
10
|
+
private _onDidChangeIsSnoozing;
|
|
11
|
+
readonly onDidChangeIsSnoozing: Event<boolean>;
|
|
12
|
+
private static readonly SNOOZE_DURATION;
|
|
13
|
+
private _snoozeTimeEnd;
|
|
14
|
+
get snoozeTimeLeft(): number;
|
|
15
|
+
private _timer;
|
|
16
|
+
constructor(_contextKeyService: IContextKeyService);
|
|
17
|
+
snooze(durationMs?: number): void;
|
|
18
|
+
setSnoozeDuration(durationMs: number): void;
|
|
19
|
+
isSnoozing(): boolean;
|
|
20
|
+
cancelSnooze(): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class SnoozeInlineCompletion extends Action2 {
|
|
23
|
+
static ID: string;
|
|
24
|
+
constructor();
|
|
25
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): Promise<void>;
|
|
26
|
+
private getDurationFromUser;
|
|
27
|
+
}
|
|
28
|
+
export declare class CancelSnoozeInlineCompletion extends Action2 {
|
|
29
|
+
static ID: string;
|
|
30
|
+
constructor();
|
|
31
|
+
run(accessor: ServicesAccessor): Promise<void>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { WindowIntervalTimer } from '../../../base/browser/dom.js';
|
|
4
|
+
import { BugIndicatingError } from '../../../base/common/errors.js';
|
|
5
|
+
import { Emitter } from '../../../base/common/event.js';
|
|
6
|
+
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
7
|
+
import { localize, localize2 } from '../../../nls.js';
|
|
8
|
+
import { Action2 } from '../../../platform/actions/common/actions.js';
|
|
9
|
+
import { RawContextKey, ContextKeyExpr } from '../../../platform/contextkey/common/contextkey.js';
|
|
10
|
+
import { IContextKeyService } from '../../../platform/contextkey/common/contextkey.service.js';
|
|
11
|
+
import '../../../platform/instantiation/common/extensions.js';
|
|
12
|
+
import { IQuickInputService } from '../../../platform/quickinput/common/quickInput.service.js';
|
|
13
|
+
import { StorageScope, StorageTarget } from '../../../platform/storage/common/storage.js';
|
|
14
|
+
import { IStorageService } from '../../../platform/storage/common/storage.service.js';
|
|
15
|
+
import { IInlineCompletionsService } from './inlineCompletionsService.service.js';
|
|
16
|
+
|
|
17
|
+
var InlineCompletionsService_1;
|
|
18
|
+
const InlineCompletionsSnoozing = ( new RawContextKey('inlineCompletions.snoozed', false, ( localize(147, "Whether inline completions are currently snoozed"))));
|
|
19
|
+
let InlineCompletionsService = class InlineCompletionsService extends Disposable {
|
|
20
|
+
static { InlineCompletionsService_1 = this; }
|
|
21
|
+
static { this.SNOOZE_DURATION = 300_000; }
|
|
22
|
+
get snoozeTimeLeft() {
|
|
23
|
+
if (this._snoozeTimeEnd === undefined) {
|
|
24
|
+
return 0;
|
|
25
|
+
}
|
|
26
|
+
return Math.max(0, this._snoozeTimeEnd - Date.now());
|
|
27
|
+
}
|
|
28
|
+
constructor(_contextKeyService) {
|
|
29
|
+
super();
|
|
30
|
+
this._contextKeyService = _contextKeyService;
|
|
31
|
+
this._onDidChangeIsSnoozing = this._register(( new Emitter()));
|
|
32
|
+
this.onDidChangeIsSnoozing = this._onDidChangeIsSnoozing.event;
|
|
33
|
+
this._snoozeTimeEnd = undefined;
|
|
34
|
+
this._timer = this._register(( new WindowIntervalTimer()));
|
|
35
|
+
const inlineCompletionsSnoozing = InlineCompletionsSnoozing.bindTo(this._contextKeyService);
|
|
36
|
+
this._register(this.onDidChangeIsSnoozing(() => inlineCompletionsSnoozing.set(this.isSnoozing())));
|
|
37
|
+
}
|
|
38
|
+
snooze(durationMs = InlineCompletionsService_1.SNOOZE_DURATION) {
|
|
39
|
+
this.setSnoozeDuration(durationMs + this.snoozeTimeLeft);
|
|
40
|
+
}
|
|
41
|
+
setSnoozeDuration(durationMs) {
|
|
42
|
+
if (durationMs < 0) {
|
|
43
|
+
throw ( new BugIndicatingError(`Invalid snooze duration: ${durationMs}. Duration must be non-negative.`));
|
|
44
|
+
}
|
|
45
|
+
if (durationMs === 0) {
|
|
46
|
+
this.cancelSnooze();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const wasSnoozing = this.isSnoozing();
|
|
50
|
+
this._snoozeTimeEnd = Date.now() + durationMs;
|
|
51
|
+
if (!wasSnoozing) {
|
|
52
|
+
this._onDidChangeIsSnoozing.fire(true);
|
|
53
|
+
}
|
|
54
|
+
this._timer.cancelAndSet(() => {
|
|
55
|
+
if (!this.isSnoozing()) {
|
|
56
|
+
this._onDidChangeIsSnoozing.fire(false);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
throw ( new BugIndicatingError('Snooze timer did not fire as expected'));
|
|
60
|
+
}
|
|
61
|
+
}, this.snoozeTimeLeft + 1);
|
|
62
|
+
}
|
|
63
|
+
isSnoozing() {
|
|
64
|
+
return this.snoozeTimeLeft > 0;
|
|
65
|
+
}
|
|
66
|
+
cancelSnooze() {
|
|
67
|
+
if (this.isSnoozing()) {
|
|
68
|
+
this._snoozeTimeEnd = undefined;
|
|
69
|
+
this._timer.cancel();
|
|
70
|
+
this._onDidChangeIsSnoozing.fire(false);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
InlineCompletionsService = InlineCompletionsService_1 = ( __decorate([
|
|
75
|
+
( __param(0, IContextKeyService))
|
|
76
|
+
], InlineCompletionsService));
|
|
77
|
+
const snoozeInlineSuggestId = 'editor.action.inlineSuggest.snooze';
|
|
78
|
+
const cancelSnoozeInlineSuggestId = 'editor.action.inlineSuggest.cancelSnooze';
|
|
79
|
+
const LAST_SNOOZE_DURATION_KEY = 'inlineCompletions.lastSnoozeDuration';
|
|
80
|
+
class SnoozeInlineCompletion extends Action2 {
|
|
81
|
+
static { this.ID = snoozeInlineSuggestId; }
|
|
82
|
+
constructor() {
|
|
83
|
+
super({
|
|
84
|
+
id: SnoozeInlineCompletion.ID,
|
|
85
|
+
title: ( localize2(148, "Snooze Inline Suggestions")),
|
|
86
|
+
precondition: ContextKeyExpr.true(),
|
|
87
|
+
f1: true,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
async run(accessor, ...args) {
|
|
91
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
92
|
+
const inlineCompletionsService = accessor.get(IInlineCompletionsService);
|
|
93
|
+
const storageService = accessor.get(IStorageService);
|
|
94
|
+
let durationMinutes;
|
|
95
|
+
if (args.length > 0 && typeof args[0] === 'number') {
|
|
96
|
+
durationMinutes = args[0];
|
|
97
|
+
}
|
|
98
|
+
if (!durationMinutes) {
|
|
99
|
+
durationMinutes = await this.getDurationFromUser(quickInputService, storageService);
|
|
100
|
+
}
|
|
101
|
+
if (durationMinutes) {
|
|
102
|
+
inlineCompletionsService.setSnoozeDuration(durationMinutes);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async getDurationFromUser(quickInputService, storageService) {
|
|
106
|
+
const lastSelectedDuration = storageService.getNumber(LAST_SNOOZE_DURATION_KEY, StorageScope.PROFILE, 300_000);
|
|
107
|
+
const items = [
|
|
108
|
+
{ label: '1 minute', id: '1', value: 60_000 },
|
|
109
|
+
{ label: '5 minutes', id: '5', value: 300_000 },
|
|
110
|
+
{ label: '10 minutes', id: '10', value: 600_000 },
|
|
111
|
+
{ label: '15 minutes', id: '15', value: 900_000 },
|
|
112
|
+
{ label: '30 minutes', id: '30', value: 1_800_000 },
|
|
113
|
+
{ label: '60 minutes', id: '60', value: 3_600_000 }
|
|
114
|
+
];
|
|
115
|
+
const picked = await quickInputService.pick(items, {
|
|
116
|
+
placeHolder: ( localize(149, "Select snooze duration for Code completions and NES")),
|
|
117
|
+
activeItem: items.find(item => item.value === lastSelectedDuration),
|
|
118
|
+
});
|
|
119
|
+
if (picked) {
|
|
120
|
+
storageService.store(LAST_SNOOZE_DURATION_KEY, picked.value, StorageScope.PROFILE, StorageTarget.USER);
|
|
121
|
+
return picked.value;
|
|
122
|
+
}
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
class CancelSnoozeInlineCompletion extends Action2 {
|
|
127
|
+
static { this.ID = cancelSnoozeInlineSuggestId; }
|
|
128
|
+
constructor() {
|
|
129
|
+
super({
|
|
130
|
+
id: CancelSnoozeInlineCompletion.ID,
|
|
131
|
+
title: ( localize2(150, "Cancel Snooze Inline Suggestions")),
|
|
132
|
+
precondition: InlineCompletionsSnoozing,
|
|
133
|
+
f1: true,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
async run(accessor) {
|
|
137
|
+
accessor.get(IInlineCompletionsService).cancelSnooze();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { CancelSnoozeInlineCompletion, InlineCompletionsService, SnoozeInlineCompletion };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Event } from "../../../base/common/event.js";
|
|
2
|
+
export declare const IInlineCompletionsService: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IInlineCompletionsService>;
|
|
3
|
+
export interface IInlineCompletionsService {
|
|
4
|
+
readonly _serviceBrand: undefined;
|
|
5
|
+
onDidChangeIsSnoozing: Event<boolean>;
|
|
6
|
+
readonly snoozeTimeLeft: number;
|
|
7
|
+
snooze(durationMs?: number): void;
|
|
8
|
+
setSnoozeDuration(durationMs: number): void;
|
|
9
|
+
isSnoozing(): boolean;
|
|
10
|
+
cancelSnooze(): void;
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createTrustedTypesPolicy } from '../../../base/browser/trustedTypes.js';
|
|
3
3
|
import { CharCode } from '../../../base/common/charCode.js';
|
|
4
4
|
import { firstNonWhitespaceIndex, isFullWidthCharacter } from '../../../base/common/strings.js';
|
|
5
|
-
import {
|
|
5
|
+
import { assertReturnsDefined } from '../../../base/common/types.js';
|
|
6
6
|
import { applyFontInfo } from '../config/domFontInfo.js';
|
|
7
7
|
import { WrappingIndent } from '../../common/config/editorOptions.js';
|
|
8
8
|
import { StringBuilder } from '../../common/core/stringBuilder.js';
|
|
@@ -26,7 +26,7 @@ class DOMLineBreaksComputerFactory {
|
|
|
26
26
|
injectedTexts.push(injectedText);
|
|
27
27
|
},
|
|
28
28
|
finalize: () => {
|
|
29
|
-
return createLineBreaks(
|
|
29
|
+
return createLineBreaks(assertReturnsDefined(this.targetWindow.deref()), requests, fontInfo, tabSize, wrappingColumn, wrappingIndent, wordBreak, injectedTexts);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -70,8 +70,12 @@ class ViewController {
|
|
|
70
70
|
const options = this.configuration.options;
|
|
71
71
|
const selectionClipboardIsOn = (isLinux && options.get(EditorOption.selectionClipboard));
|
|
72
72
|
const columnSelection = options.get(EditorOption.columnSelection);
|
|
73
|
+
const scrollOnMiddleClick = options.get(EditorOption.scrollOnMiddleClick);
|
|
73
74
|
if (data.middleButton && !selectionClipboardIsOn) {
|
|
74
|
-
|
|
75
|
+
if (scrollOnMiddleClick) ;
|
|
76
|
+
else {
|
|
77
|
+
this._columnSelect(data.position, data.mouseColumn, data.inSelectionMode);
|
|
78
|
+
}
|
|
75
79
|
}
|
|
76
80
|
else if (data.startedOnLineNumbers) {
|
|
77
81
|
if (this._hasMulticursorModifier(data)) {
|
|
@@ -38,7 +38,7 @@ export declare class View extends ViewEventHandler {
|
|
|
38
38
|
private readonly _viewCursors;
|
|
39
39
|
private readonly _viewParts;
|
|
40
40
|
private readonly _viewController;
|
|
41
|
-
private
|
|
41
|
+
private _editContextEnabled;
|
|
42
42
|
private _accessibilitySupport;
|
|
43
43
|
private _editContext;
|
|
44
44
|
private readonly _pointerHandler;
|
|
@@ -72,7 +72,7 @@ let View = class View extends ViewEventHandler {
|
|
|
72
72
|
this._context = ( new ViewContext(configuration, colorTheme, model));
|
|
73
73
|
this._context.addEventHandler(this);
|
|
74
74
|
this._viewParts = [];
|
|
75
|
-
this.
|
|
75
|
+
this._editContextEnabled = this._context.configuration.options.get(EditorOption.effectiveEditContext);
|
|
76
76
|
this._accessibilitySupport = this._context.configuration.options.get(EditorOption.accessibilitySupport);
|
|
77
77
|
this._editContext = this._instantiateEditContext();
|
|
78
78
|
this._viewParts.push(this._editContext);
|
|
@@ -173,7 +173,7 @@ let View = class View extends ViewEventHandler {
|
|
|
173
173
|
this._pointerHandler = this._register(( new PointerHandler(this._context, this._viewController, this._createPointerHandlerHelper())));
|
|
174
174
|
}
|
|
175
175
|
_instantiateEditContext() {
|
|
176
|
-
const usingExperimentalEditContext = this._context.configuration.options.get(EditorOption.
|
|
176
|
+
const usingExperimentalEditContext = this._context.configuration.options.get(EditorOption.effectiveEditContext);
|
|
177
177
|
if (usingExperimentalEditContext) {
|
|
178
178
|
return this._instantiationService.createInstance(NativeEditContext, this._ownerID, this._context, this._overflowGuardContainer, this._viewController, this._createTextAreaHandlerHelper());
|
|
179
179
|
}
|
|
@@ -182,12 +182,12 @@ let View = class View extends ViewEventHandler {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
_updateEditContext() {
|
|
185
|
-
const
|
|
185
|
+
const editContextEnabled = this._context.configuration.options.get(EditorOption.effectiveEditContext);
|
|
186
186
|
const accessibilitySupport = this._context.configuration.options.get(EditorOption.accessibilitySupport);
|
|
187
|
-
if (this.
|
|
187
|
+
if (this._editContextEnabled === editContextEnabled && this._accessibilitySupport === accessibilitySupport) {
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
this.
|
|
190
|
+
this._editContextEnabled = editContextEnabled;
|
|
191
191
|
this._accessibilitySupport = accessibilitySupport;
|
|
192
192
|
const isEditContextFocused = this._editContext.isFocused();
|
|
193
193
|
const indexOfEditContext = this._viewParts.indexOf(this._editContext);
|
|
@@ -10,7 +10,7 @@ export declare class ViewCursors extends ViewPart {
|
|
|
10
10
|
private _cursorBlinking;
|
|
11
11
|
private _cursorStyle;
|
|
12
12
|
private _cursorSmoothCaretAnimation;
|
|
13
|
-
private
|
|
13
|
+
private _editContextEnabled;
|
|
14
14
|
private _selectionIsEmpty;
|
|
15
15
|
private _isComposingInput;
|
|
16
16
|
private _isVisible;
|
|
@@ -22,7 +22,7 @@ class ViewCursors extends ViewPart {
|
|
|
22
22
|
this._cursorBlinking = options.get(EditorOption.cursorBlinking);
|
|
23
23
|
this._cursorStyle = options.get(EditorOption.effectiveCursorStyle);
|
|
24
24
|
this._cursorSmoothCaretAnimation = options.get(EditorOption.cursorSmoothCaretAnimation);
|
|
25
|
-
this.
|
|
25
|
+
this._editContextEnabled = options.get(EditorOption.effectiveEditContext);
|
|
26
26
|
this._selectionIsEmpty = true;
|
|
27
27
|
this._isComposingInput = false;
|
|
28
28
|
this._isVisible = false;
|
|
@@ -64,7 +64,7 @@ class ViewCursors extends ViewPart {
|
|
|
64
64
|
this._cursorBlinking = options.get(EditorOption.cursorBlinking);
|
|
65
65
|
this._cursorStyle = options.get(EditorOption.effectiveCursorStyle);
|
|
66
66
|
this._cursorSmoothCaretAnimation = options.get(EditorOption.cursorSmoothCaretAnimation);
|
|
67
|
-
this.
|
|
67
|
+
this._editContextEnabled = options.get(EditorOption.effectiveEditContext);
|
|
68
68
|
this._updateBlinking();
|
|
69
69
|
this._updateDomClassName();
|
|
70
70
|
this._primaryCursor.onConfigurationChanged(e);
|
|
@@ -157,7 +157,7 @@ class ViewCursors extends ViewPart {
|
|
|
157
157
|
return true;
|
|
158
158
|
}
|
|
159
159
|
_getCursorBlinking() {
|
|
160
|
-
if (this._isComposingInput && !this.
|
|
160
|
+
if (this._isComposingInput && !this._editContextEnabled) {
|
|
161
161
|
return TextEditorCursorBlinkingStyle.Hidden;
|
|
162
162
|
}
|
|
163
163
|
if (!this._editorHasFocus) {
|
|
@@ -5,7 +5,7 @@ import { isNative, isLinux } from '../../../../base/common/platform.js';
|
|
|
5
5
|
import { RangeUtil } from './rangeUtil.js';
|
|
6
6
|
import { VisibleRanges, FloatHorizontalRange } from '../../view/renderingContext.js';
|
|
7
7
|
import { LineDecoration } from '../../../common/viewLayout/lineDecorations.js';
|
|
8
|
-
import { RenderLineInput, renderViewLine, ForeignElementType, DomPosition } from '../../../common/viewLayout/viewLineRenderer.js';
|
|
8
|
+
import { RenderWhitespace, RenderLineInput, renderViewLine, ForeignElementType, DomPosition } from '../../../common/viewLayout/viewLineRenderer.js';
|
|
9
9
|
import { InlineDecorationType } from '../../../common/viewModel.js';
|
|
10
10
|
import { isHighContrast } from '../../../../platform/theme/common/theme.js';
|
|
11
11
|
import { EditorFontLigatures } from '../../../common/config/editorOptions.js';
|
|
@@ -57,7 +57,7 @@ class ViewLine {
|
|
|
57
57
|
this._options = newOptions;
|
|
58
58
|
}
|
|
59
59
|
onSelectionChanged() {
|
|
60
|
-
if (isHighContrast(this._options.themeType) || this.
|
|
60
|
+
if (isHighContrast(this._options.themeType) || this._renderedViewLine?.getRenderWhitespace() === RenderWhitespace.Selection) {
|
|
61
61
|
this._isMaybeInvalid = true;
|
|
62
62
|
return true;
|
|
63
63
|
}
|
|
@@ -76,8 +76,10 @@ class ViewLine {
|
|
|
76
76
|
const lineData = viewportData.getViewLineRenderingData(lineNumber);
|
|
77
77
|
const options = this._options;
|
|
78
78
|
const actualInlineDecorations = LineDecoration.filter(lineData.inlineDecorations, lineNumber, lineData.minColumn, lineData.maxColumn);
|
|
79
|
+
const renderWhitespace = (lineData.hasVariableFonts || options.experimentalWhitespaceRendering === 'off') ? options.renderWhitespace : 'none';
|
|
80
|
+
const allowFastRendering = !lineData.hasVariableFonts;
|
|
79
81
|
let selectionsOnLine = null;
|
|
80
|
-
if (isHighContrast(options.themeType) ||
|
|
82
|
+
if (isHighContrast(options.themeType) || renderWhitespace === 'selection') {
|
|
81
83
|
const selections = viewportData.selections;
|
|
82
84
|
for (const selection of selections) {
|
|
83
85
|
if (selection.endLineNumber < lineNumber || selection.startLineNumber > lineNumber) {
|
|
@@ -94,7 +96,7 @@ class ViewLine {
|
|
|
94
96
|
InlineDecorationType.Regular
|
|
95
97
|
)));
|
|
96
98
|
}
|
|
97
|
-
if (
|
|
99
|
+
if (renderWhitespace === 'selection') {
|
|
98
100
|
if (!selectionsOnLine) {
|
|
99
101
|
selectionsOnLine = [];
|
|
100
102
|
}
|
|
@@ -119,7 +121,7 @@ class ViewLine {
|
|
|
119
121
|
options.middotWidth,
|
|
120
122
|
options.wsmiddotWidth,
|
|
121
123
|
options.stopRenderingLineAfter,
|
|
122
|
-
|
|
124
|
+
renderWhitespace,
|
|
123
125
|
options.renderControlCharacters,
|
|
124
126
|
options.fontLigatures !== EditorFontLigatures.OFF,
|
|
125
127
|
selectionsOnLine
|
|
@@ -139,7 +141,7 @@ class ViewLine {
|
|
|
139
141
|
const output = renderViewLine(renderLineInput, sb);
|
|
140
142
|
sb.appendString('</div>');
|
|
141
143
|
let renderedViewLine = null;
|
|
142
|
-
if (monospaceAssumptionsAreValid && canUseFastRenderedViewLine && lineData.isBasicASCII && options.useMonospaceOptimizations && output.containsForeignElements === ForeignElementType.None) {
|
|
144
|
+
if (allowFastRendering && monospaceAssumptionsAreValid && canUseFastRenderedViewLine && lineData.isBasicASCII && options.useMonospaceOptimizations && output.containsForeignElements === ForeignElementType.None) {
|
|
143
145
|
renderedViewLine = ( new FastRenderedViewLine(
|
|
144
146
|
this._renderedViewLine ? this._renderedViewLine.domNode : null,
|
|
145
147
|
renderLineInput,
|
|
@@ -242,6 +244,9 @@ class FastRenderedViewLine {
|
|
|
242
244
|
this._characterMapping = characterMapping;
|
|
243
245
|
this._charWidth = renderLineInput.spaceWidth;
|
|
244
246
|
}
|
|
247
|
+
getRenderWhitespace() {
|
|
248
|
+
return this.input.renderWhitespace;
|
|
249
|
+
}
|
|
245
250
|
getWidth(context) {
|
|
246
251
|
if (!this.domNode || this.input.lineContent.length < Constants.MaxMonospaceDistance) {
|
|
247
252
|
const horizontalOffset = this._characterMapping.getHorizontalOffset(this._characterMapping.length);
|
|
@@ -338,6 +343,9 @@ class RenderedViewLine {
|
|
|
338
343
|
_getReadingTarget(myDomNode) {
|
|
339
344
|
return myDomNode.domNode.firstChild;
|
|
340
345
|
}
|
|
346
|
+
getRenderWhitespace() {
|
|
347
|
+
return this.input.renderWhitespace;
|
|
348
|
+
}
|
|
341
349
|
getWidth(context) {
|
|
342
350
|
if (!this.domNode) {
|
|
343
351
|
return 0;
|
|
@@ -3,6 +3,7 @@ import type { IEditorConfiguration } from "../../../common/config/editorConfigur
|
|
|
3
3
|
export declare class ViewLineOptions {
|
|
4
4
|
readonly themeType: ColorScheme;
|
|
5
5
|
readonly renderWhitespace: "none" | "boundary" | "selection" | "trailing" | "all";
|
|
6
|
+
readonly experimentalWhitespaceRendering: "svg" | "font" | "off";
|
|
6
7
|
readonly renderControlCharacters: boolean;
|
|
7
8
|
readonly spaceWidth: number;
|
|
8
9
|
readonly middotWidth: number;
|
|
@@ -6,13 +6,8 @@ class ViewLineOptions {
|
|
|
6
6
|
this.themeType = themeType;
|
|
7
7
|
const options = config.options;
|
|
8
8
|
const fontInfo = options.get(EditorOption.fontInfo);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.renderWhitespace = options.get(EditorOption.renderWhitespace);
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
this.renderWhitespace = 'none';
|
|
15
|
-
}
|
|
9
|
+
this.renderWhitespace = options.get(EditorOption.renderWhitespace);
|
|
10
|
+
this.experimentalWhitespaceRendering = options.get(EditorOption.experimentalWhitespaceRendering);
|
|
16
11
|
this.renderControlCharacters = options.get(EditorOption.renderControlCharacters);
|
|
17
12
|
this.spaceWidth = fontInfo.spaceWidth;
|
|
18
13
|
this.middotWidth = fontInfo.middotWidth;
|
|
@@ -28,6 +23,7 @@ class ViewLineOptions {
|
|
|
28
23
|
equals(other) {
|
|
29
24
|
return (this.themeType === other.themeType
|
|
30
25
|
&& this.renderWhitespace === other.renderWhitespace
|
|
26
|
+
&& this.experimentalWhitespaceRendering === other.experimentalWhitespaceRendering
|
|
31
27
|
&& this.renderControlCharacters === other.renderControlCharacters
|
|
32
28
|
&& this.spaceWidth === other.spaceWidth
|
|
33
29
|
&& this.middotWidth === other.middotWidth
|
|
@@ -142,7 +142,12 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
|
|
|
142
142
|
}
|
|
143
143
|
const fontFamily = this._context.configuration.options.get(EditorOption.fontFamily);
|
|
144
144
|
const fontSize = this._context.configuration.options.get(EditorOption.fontSize);
|
|
145
|
-
this._glyphRasterizer.value = this._register(( new GlyphRasterizer(
|
|
145
|
+
this._glyphRasterizer.value = this._register(( new GlyphRasterizer(
|
|
146
|
+
fontSize,
|
|
147
|
+
fontFamily,
|
|
148
|
+
this._viewGpuContext.devicePixelRatio.get(),
|
|
149
|
+
ViewGpuContext.decorationStyleCache
|
|
150
|
+
)));
|
|
146
151
|
this._register(runOnChange(this._viewGpuContext.devicePixelRatio, () => {
|
|
147
152
|
this._refreshGlyphRasterizer();
|
|
148
153
|
}));
|
|
@@ -333,7 +338,12 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
|
|
|
333
338
|
if (glyphRasterizer.fontFamily !== fontFamily ||
|
|
334
339
|
glyphRasterizer.fontSize !== fontSize ||
|
|
335
340
|
glyphRasterizer.devicePixelRatio !== devicePixelRatio) {
|
|
336
|
-
this._glyphRasterizer.value = ( new GlyphRasterizer(
|
|
341
|
+
this._glyphRasterizer.value = ( new GlyphRasterizer(
|
|
342
|
+
fontSize,
|
|
343
|
+
fontFamily,
|
|
344
|
+
devicePixelRatio,
|
|
345
|
+
ViewGpuContext.decorationStyleCache
|
|
346
|
+
));
|
|
337
347
|
}
|
|
338
348
|
}
|
|
339
349
|
renderText(viewportData) {
|