@codingame/monaco-vscode-api 18.3.1 → 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 +13 -8
- package/services.js +13 -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/themes/common/workbenchThemeService.service.d.ts +24 -0
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.service.js +7 -0
- 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
|
@@ -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) {
|
|
@@ -72,11 +72,10 @@ class WhitespaceOverlay extends DynamicViewOverlay {
|
|
|
72
72
|
for (let i = 0; i < lineCount; i++) {
|
|
73
73
|
needed[i] = true;
|
|
74
74
|
}
|
|
75
|
-
const viewportData = this._context.viewModel.getMinimapLinesRenderingData(ctx.viewportData.startLineNumber, ctx.viewportData.endLineNumber, needed);
|
|
76
75
|
this._renderResult = [];
|
|
77
76
|
for (let lineNumber = ctx.viewportData.startLineNumber; lineNumber <= ctx.viewportData.endLineNumber; lineNumber++) {
|
|
78
77
|
const lineIndex = lineNumber - ctx.viewportData.startLineNumber;
|
|
79
|
-
const lineData =
|
|
78
|
+
const lineData = this._context.viewModel.getViewLineRenderingData(lineNumber);
|
|
80
79
|
let selectionsOnLine = null;
|
|
81
80
|
if (this._options.renderWhitespace === 'selection') {
|
|
82
81
|
const selections = this._selection;
|
|
@@ -98,6 +97,9 @@ class WhitespaceOverlay extends DynamicViewOverlay {
|
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
_applyRenderWhitespace(ctx, lineNumber, selections, lineData) {
|
|
100
|
+
if (lineData.hasVariableFonts) {
|
|
101
|
+
return '';
|
|
102
|
+
}
|
|
101
103
|
if (this._options.renderWhitespace === 'selection' && !selections) {
|
|
102
104
|
return '';
|
|
103
105
|
}
|
|
@@ -19,7 +19,7 @@ import * as editorCommon from "../../../common/editorCommon.js";
|
|
|
19
19
|
import { ILanguageConfigurationService } from "../../../common/languages/languageConfigurationRegistry.service.js";
|
|
20
20
|
import { IAttachedView, ICursorStateComputer, IIdentifiedSingleEditOperation, IModelDecoration, IModelDecorationsChangeAccessor, IModelDeltaDecoration, ITextModel } from "../../../common/model.js";
|
|
21
21
|
import { ILanguageFeaturesService } from "../../../common/services/languageFeatures.service.js";
|
|
22
|
-
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelLanguageChangedEvent, IModelLanguageConfigurationChangedEvent, IModelOptionsChangedEvent, IModelTokensChangedEvent, ModelLineHeightChangedEvent } from "../../../common/textModelEvents.js";
|
|
22
|
+
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelLanguageChangedEvent, IModelLanguageConfigurationChangedEvent, IModelOptionsChangedEvent, IModelTokensChangedEvent, ModelFontChangedEvent, ModelLineHeightChangedEvent } from "../../../common/textModelEvents.js";
|
|
23
23
|
import { IEditorWhitespace, IViewModel } from "../../../common/viewModel.js";
|
|
24
24
|
import { ViewModel } from "../../../common/viewModel/viewModelImpl.js";
|
|
25
25
|
import { IAccessibilityService } from "../../../../platform/accessibility/common/accessibility.service.js";
|
|
@@ -30,6 +30,8 @@ import { IInstantiationService, ServicesAccessor } from "../../../../platform/in
|
|
|
30
30
|
import { INotificationService } from "../../../../platform/notification/common/notification.service.js";
|
|
31
31
|
import { IThemeService } from "../../../../platform/theme/common/themeService.service.js";
|
|
32
32
|
import { MenuId } from "../../../../platform/actions/common/actions.js";
|
|
33
|
+
import { TextModelEditReason } from "../../../common/textModelEditReason.js";
|
|
34
|
+
import { TextEdit } from "../../../common/core/edits/textEdit.js";
|
|
33
35
|
export declare class CodeEditorWidget extends Disposable implements editorBrowser.ICodeEditor {
|
|
34
36
|
private readonly languageConfigurationService;
|
|
35
37
|
private static readonly dropIntoEditorDecorationOptions;
|
|
@@ -49,6 +51,8 @@ export declare class CodeEditorWidget extends Disposable implements editorBrowse
|
|
|
49
51
|
readonly onDidChangeModelDecorations: Event<IModelDecorationsChangedEvent>;
|
|
50
52
|
private readonly _onDidChangeLineHeight;
|
|
51
53
|
readonly onDidChangeLineHeight: Event<ModelLineHeightChangedEvent>;
|
|
54
|
+
private readonly _onDidChangeFont;
|
|
55
|
+
readonly onDidChangeFont: Event<ModelFontChangedEvent>;
|
|
52
56
|
private readonly _onDidChangeModelTokens;
|
|
53
57
|
readonly onDidChangeModelTokens: Event<IModelTokensChangedEvent>;
|
|
54
58
|
private readonly _onDidChangeConfiguration;
|
|
@@ -249,13 +253,15 @@ export declare class CodeEditorWidget extends Disposable implements editorBrowse
|
|
|
249
253
|
_getViewModel(): IViewModel | null;
|
|
250
254
|
pushUndoStop(): boolean;
|
|
251
255
|
popUndoStop(): boolean;
|
|
252
|
-
|
|
256
|
+
edit(edit: TextEdit, reason: TextModelEditReason): boolean;
|
|
257
|
+
executeEdits(source: string | null | undefined | TextModelEditReason, edits: IIdentifiedSingleEditOperation[], endCursorState?: ICursorStateComputer | Selection[]): boolean;
|
|
253
258
|
executeCommand(source: string | null | undefined, command: editorCommon.ICommand): void;
|
|
254
259
|
executeCommands(source: string | null | undefined, commands: editorCommon.ICommand[]): void;
|
|
255
260
|
createDecorationsCollection(decorations?: IModelDeltaDecoration[]): EditorDecorationsCollection;
|
|
256
261
|
changeDecorations(callback: (changeAccessor: IModelDecorationsChangeAccessor) => any): any;
|
|
257
262
|
getLineDecorations(lineNumber: number): IModelDecoration[] | null;
|
|
258
263
|
getDecorationsInRange(range: Range): IModelDecoration[] | null;
|
|
264
|
+
getFontSizeAtPosition(position: IPosition): string | null;
|
|
259
265
|
deltaDecorations(oldDecorations: string[], newDecorations: IModelDeltaDecoration[]): string[];
|
|
260
266
|
removeDecorations(decorationIds: string[]): void;
|
|
261
267
|
setDecorationsByType(description: string, decorationTypeKey: string, decorationOptions: editorCommon.IDecorationOptions[]): readonly string[];
|
|
@@ -18,7 +18,7 @@ import { View } from '../../view.js';
|
|
|
18
18
|
import { DOMLineBreaksComputerFactory } from '../../view/domLineBreaksComputer.js';
|
|
19
19
|
import { ViewUserInputEvents } from '../../view/viewUserInputEvents.js';
|
|
20
20
|
import { CodeEditorContributions } from './codeEditorContributions.js';
|
|
21
|
-
import { EditorOption, filterValidationDecorations } from '../../../common/config/editorOptions.js';
|
|
21
|
+
import { EditorOption, filterValidationDecorations, filterFontDecorations } from '../../../common/config/editorOptions.js';
|
|
22
22
|
import { CursorColumns } from '../../../common/core/cursorColumns.js';
|
|
23
23
|
import { editorUnnecessaryCodeOpacity } from '../../../common/core/editorColorRegistry.js';
|
|
24
24
|
import { Position } from '../../../common/core/position.js';
|
|
@@ -60,6 +60,7 @@ import '../../../../platform/theme/common/colors/searchColors.js';
|
|
|
60
60
|
import { registerThemingParticipant } from '../../../../platform/theme/common/themeService.js';
|
|
61
61
|
import { IThemeService } from '../../../../platform/theme/common/themeService.service.js';
|
|
62
62
|
import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
63
|
+
import { TextModelEditReason, EditReasons } from '../../../common/textModelEditReason.js';
|
|
63
64
|
import Severity$1 from '../../../../base/common/severity.js';
|
|
64
65
|
|
|
65
66
|
var CodeEditorWidget_1;
|
|
@@ -96,6 +97,8 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
96
97
|
this.onDidChangeModelDecorations = this._onDidChangeModelDecorations.event;
|
|
97
98
|
this._onDidChangeLineHeight = this._register(( new Emitter({ deliveryQueue: this._deliveryQueue })));
|
|
98
99
|
this.onDidChangeLineHeight = this._onDidChangeLineHeight.event;
|
|
100
|
+
this._onDidChangeFont = this._register(( new Emitter({ deliveryQueue: this._deliveryQueue })));
|
|
101
|
+
this.onDidChangeFont = this._onDidChangeFont.event;
|
|
99
102
|
this._onDidChangeModelTokens = this._register(( new Emitter({ deliveryQueue: this._deliveryQueue })));
|
|
100
103
|
this.onDidChangeModelTokens = this._onDidChangeModelTokens.event;
|
|
101
104
|
this._onDidChangeConfiguration = this._register(( new Emitter({ deliveryQueue: this._deliveryQueue })));
|
|
@@ -463,8 +466,11 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
463
466
|
return -1;
|
|
464
467
|
}
|
|
465
468
|
const viewModel = this._modelData.viewModel;
|
|
466
|
-
|
|
467
|
-
|
|
469
|
+
const coordinatesConverter = viewModel.coordinatesConverter;
|
|
470
|
+
const pos = Position.lift(position);
|
|
471
|
+
if (coordinatesConverter.modelPositionIsVisible(pos)) {
|
|
472
|
+
const viewPosition = coordinatesConverter.convertModelPositionToViewPosition(pos);
|
|
473
|
+
return viewModel.viewLayout.getLineHeightForLineNumber(viewPosition.lineNumber);
|
|
468
474
|
}
|
|
469
475
|
return 0;
|
|
470
476
|
}
|
|
@@ -934,6 +940,9 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
934
940
|
this._modelData.model.popStackElement();
|
|
935
941
|
return true;
|
|
936
942
|
}
|
|
943
|
+
edit(edit, reason) {
|
|
944
|
+
return this.executeEdits(reason, ( edit.replacements.map(e => ({ range: e.range, text: e.text }))), undefined);
|
|
945
|
+
}
|
|
937
946
|
executeEdits(source, edits, endCursorState) {
|
|
938
947
|
if (!this._modelData) {
|
|
939
948
|
return false;
|
|
@@ -951,8 +960,18 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
951
960
|
else {
|
|
952
961
|
cursorStateComputer = endCursorState;
|
|
953
962
|
}
|
|
954
|
-
|
|
955
|
-
|
|
963
|
+
let sourceStr;
|
|
964
|
+
let reason;
|
|
965
|
+
if (source instanceof TextModelEditReason) {
|
|
966
|
+
reason = source;
|
|
967
|
+
sourceStr = source.metadata.source;
|
|
968
|
+
}
|
|
969
|
+
else {
|
|
970
|
+
reason = EditReasons.unknown({ name: sourceStr });
|
|
971
|
+
sourceStr = source;
|
|
972
|
+
}
|
|
973
|
+
this._onBeforeExecuteEdit.fire({ source: sourceStr ?? undefined });
|
|
974
|
+
this._modelData.viewModel.executeEdits(sourceStr, edits, cursorStateComputer, reason);
|
|
956
975
|
return true;
|
|
957
976
|
}
|
|
958
977
|
executeCommand(source, command) {
|
|
@@ -980,13 +999,21 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
980
999
|
if (!this._modelData) {
|
|
981
1000
|
return null;
|
|
982
1001
|
}
|
|
983
|
-
|
|
1002
|
+
const options = this._configuration.options;
|
|
1003
|
+
return this._modelData.model.getLineDecorations(lineNumber, this._id, filterValidationDecorations(options), filterFontDecorations(options));
|
|
984
1004
|
}
|
|
985
1005
|
getDecorationsInRange(range) {
|
|
986
1006
|
if (!this._modelData) {
|
|
987
1007
|
return null;
|
|
988
1008
|
}
|
|
989
|
-
|
|
1009
|
+
const options = this._configuration.options;
|
|
1010
|
+
return this._modelData.model.getDecorationsInRange(range, this._id, filterValidationDecorations(options), filterFontDecorations(options));
|
|
1011
|
+
}
|
|
1012
|
+
getFontSizeAtPosition(position) {
|
|
1013
|
+
if (!this._modelData) {
|
|
1014
|
+
return null;
|
|
1015
|
+
}
|
|
1016
|
+
return this._modelData.viewModel.getFontSizeAtPosition(position);
|
|
990
1017
|
}
|
|
991
1018
|
deltaDecorations(oldDecorations, newDecorations) {
|
|
992
1019
|
if (!this._modelData) {
|
|
@@ -1337,7 +1364,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1337
1364
|
if (e.reachedMaxCursorCount) {
|
|
1338
1365
|
const multiCursorLimit = this.getOption(EditorOption.multiCursorLimit);
|
|
1339
1366
|
const message = ( localize(
|
|
1340
|
-
|
|
1367
|
+
151,
|
|
1341
1368
|
"The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",
|
|
1342
1369
|
multiCursorLimit
|
|
1343
1370
|
));
|
|
@@ -1349,7 +1376,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1349
1376
|
}
|
|
1350
1377
|
},
|
|
1351
1378
|
{
|
|
1352
|
-
label: ( localize(
|
|
1379
|
+
label: ( localize(152, 'Increase Multi Cursor Limit')),
|
|
1353
1380
|
run: () => {
|
|
1354
1381
|
this._commandService.executeCommand('workbench.action.openSettings2', {
|
|
1355
1382
|
query: 'editor.multiCursorLimit'
|
|
@@ -1403,6 +1430,9 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1403
1430
|
case OutgoingViewModelEventKind.ModelLineHeightChanged:
|
|
1404
1431
|
this._onDidChangeLineHeight.fire(e.event);
|
|
1405
1432
|
break;
|
|
1433
|
+
case OutgoingViewModelEventKind.ModelFontChangedEvent:
|
|
1434
|
+
this._onDidChangeFont.fire(e.event);
|
|
1435
|
+
break;
|
|
1406
1436
|
}
|
|
1407
1437
|
}));
|
|
1408
1438
|
const [view, hasRealView] = this._createView(viewModel);
|
|
@@ -18,7 +18,7 @@ class ToggleCollapseUnchangedRegions extends Action2 {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'diffEditor.toggleCollapseUnchangedRegions',
|
|
21
|
-
title: ( localize2(
|
|
21
|
+
title: ( localize2(153, 'Toggle Collapse Unchanged Regions')),
|
|
22
22
|
icon: Codicon.map,
|
|
23
23
|
toggled: ( ContextKeyExpr.has('config.diffEditor.hideUnchangedRegions.enabled')),
|
|
24
24
|
precondition: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
@@ -40,7 +40,7 @@ class ToggleShowMovedCodeBlocks extends Action2 {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: 'diffEditor.toggleShowMovedCodeBlocks',
|
|
43
|
-
title: ( localize2(
|
|
43
|
+
title: ( localize2(154, 'Toggle Show Moved Code Blocks')),
|
|
44
44
|
precondition: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -54,7 +54,7 @@ class ToggleUseInlineViewWhenSpaceIsLimited extends Action2 {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: 'diffEditor.toggleUseInlineViewWhenSpaceIsLimited',
|
|
57
|
-
title: ( localize2(
|
|
57
|
+
title: ( localize2(155, 'Toggle Use Inline View When Space Is Limited')),
|
|
58
58
|
precondition: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -64,12 +64,12 @@ class ToggleUseInlineViewWhenSpaceIsLimited extends Action2 {
|
|
|
64
64
|
configurationService.updateValue('diffEditor.useInlineViewWhenSpaceIsLimited', newValue);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
const diffEditorCategory = ( localize2(
|
|
67
|
+
const diffEditorCategory = ( localize2(156, "Diff Editor"));
|
|
68
68
|
class SwitchSide extends EditorAction2 {
|
|
69
69
|
constructor() {
|
|
70
70
|
super({
|
|
71
71
|
id: 'diffEditor.switchSide',
|
|
72
|
-
title: ( localize2(
|
|
72
|
+
title: ( localize2(157, 'Switch Side')),
|
|
73
73
|
icon: Codicon.arrowSwap,
|
|
74
74
|
precondition: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
75
75
|
f1: true,
|
|
@@ -93,7 +93,7 @@ class ExitCompareMove extends EditorAction2 {
|
|
|
93
93
|
constructor() {
|
|
94
94
|
super({
|
|
95
95
|
id: 'diffEditor.exitCompareMove',
|
|
96
|
-
title: ( localize2(
|
|
96
|
+
title: ( localize2(158, 'Exit Compare Move')),
|
|
97
97
|
icon: Codicon.close,
|
|
98
98
|
precondition: EditorContextKeys.comparingMovedCode,
|
|
99
99
|
f1: false,
|
|
@@ -115,7 +115,7 @@ class CollapseAllUnchangedRegions extends EditorAction2 {
|
|
|
115
115
|
constructor() {
|
|
116
116
|
super({
|
|
117
117
|
id: 'diffEditor.collapseAllUnchangedRegions',
|
|
118
|
-
title: ( localize2(
|
|
118
|
+
title: ( localize2(159, 'Collapse All Unchanged Regions')),
|
|
119
119
|
icon: Codicon.fold,
|
|
120
120
|
precondition: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
121
121
|
f1: true,
|
|
@@ -133,7 +133,7 @@ class ShowAllUnchangedRegions extends EditorAction2 {
|
|
|
133
133
|
constructor() {
|
|
134
134
|
super({
|
|
135
135
|
id: 'diffEditor.showAllUnchangedRegions',
|
|
136
|
-
title: ( localize2(
|
|
136
|
+
title: ( localize2(160, 'Show All Unchanged Regions')),
|
|
137
137
|
icon: Codicon.unfold,
|
|
138
138
|
precondition: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
139
139
|
f1: true,
|
|
@@ -151,7 +151,7 @@ class RevertHunkOrSelection extends Action2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'diffEditor.revert',
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(161, 'Revert')),
|
|
155
155
|
f1: false,
|
|
156
156
|
category: diffEditorCategory,
|
|
157
157
|
});
|
|
@@ -164,13 +164,13 @@ class RevertHunkOrSelection extends Action2 {
|
|
|
164
164
|
return undefined;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
const accessibleDiffViewerCategory = ( localize2(
|
|
167
|
+
const accessibleDiffViewerCategory = ( localize2(162, "Accessible Diff Viewer"));
|
|
168
168
|
class AccessibleDiffViewerNext extends Action2 {
|
|
169
169
|
static { this.id = 'editor.action.accessibleDiffViewer.next'; }
|
|
170
170
|
constructor() {
|
|
171
171
|
super({
|
|
172
172
|
id: AccessibleDiffViewerNext.id,
|
|
173
|
-
title: ( localize2(
|
|
173
|
+
title: ( localize2(163, 'Go to Next Difference')),
|
|
174
174
|
category: accessibleDiffViewerCategory,
|
|
175
175
|
precondition: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
176
176
|
keybinding: {
|
|
@@ -190,7 +190,7 @@ class AccessibleDiffViewerPrev extends Action2 {
|
|
|
190
190
|
constructor() {
|
|
191
191
|
super({
|
|
192
192
|
id: AccessibleDiffViewerPrev.id,
|
|
193
|
-
title: ( localize2(
|
|
193
|
+
title: ( localize2(164, 'Go to Previous Difference')),
|
|
194
194
|
category: accessibleDiffViewerCategory,
|
|
195
195
|
precondition: ( ContextKeyExpr.has('isInDiffEditor')),
|
|
196
196
|
keybinding: {
|
|
@@ -1,54 +1,57 @@
|
|
|
1
|
+
.monaco-diff-editor .diff-review {
|
|
2
|
+
position: absolute;
|
|
3
|
+
}
|
|
1
4
|
.monaco-component.diff-review {
|
|
2
5
|
user-select: none;
|
|
3
6
|
-webkit-user-select: none;
|
|
4
7
|
z-index: 99;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
8
|
+
.diff-review-line-number {
|
|
9
|
+
text-align: right;
|
|
10
|
+
display: inline-block;
|
|
11
|
+
color: var(--vscode-editorLineNumber-foreground);
|
|
12
|
+
}
|
|
13
|
+
.diff-review-summary {
|
|
14
|
+
padding-left: 10px;
|
|
15
|
+
}
|
|
16
|
+
.diff-review-shadow {
|
|
17
|
+
position: absolute;
|
|
18
|
+
box-shadow: var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;
|
|
19
|
+
}
|
|
20
|
+
.diff-review-row {
|
|
21
|
+
white-space: pre;
|
|
22
|
+
}
|
|
23
|
+
.diff-review-table {
|
|
24
|
+
display: table;
|
|
25
|
+
min-width: 100%;
|
|
26
|
+
}
|
|
27
|
+
.diff-review-row {
|
|
28
|
+
display: table-row;
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
.diff-review-spacer {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
width: 10px;
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
}
|
|
36
|
+
.diff-review-spacer > .codicon {
|
|
37
|
+
font-size: 9px !important;
|
|
38
|
+
}
|
|
39
|
+
.diff-review-actions {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
position: absolute;
|
|
42
|
+
right: 10px;
|
|
43
|
+
top: 2px;
|
|
44
|
+
z-index: 100;
|
|
45
|
+
}
|
|
46
|
+
.diff-review-actions .action-label {
|
|
47
|
+
width: 16px;
|
|
48
|
+
height: 16px;
|
|
49
|
+
margin: 2px 0;
|
|
50
|
+
}
|
|
51
|
+
.revertButton {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
.action-label {
|
|
55
|
+
background: var(--vscode-editorActionList-background);
|
|
56
|
+
}
|
|
54
57
|
}
|
|
@@ -30,15 +30,15 @@ import { IInstantiationService } from '../../../../../platform/instantiation/com
|
|
|
30
30
|
import { registerIcon } from '../../../../../platform/theme/common/iconRegistry.js';
|
|
31
31
|
import * as accessibleDiffViewer from './accessibleDiffViewer.css';
|
|
32
32
|
import { toAction } from '../../../../../base/common/actions.js';
|
|
33
|
-
import { transaction, subtransaction } from '../../../../../base/common/observableInternal/transaction.js';
|
|
34
33
|
import { derived } from '../../../../../base/common/observableInternal/observables/derived.js';
|
|
34
|
+
import { transaction, subtransaction } from '../../../../../base/common/observableInternal/transaction.js';
|
|
35
35
|
import { observableValue } from '../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
36
36
|
import { autorun, autorunWithStore } from '../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
37
37
|
|
|
38
38
|
registerCss(accessibleDiffViewer);
|
|
39
|
-
const accessibleDiffViewerInsertIcon = registerIcon('diff-review-insert', Codicon.add, ( localize(
|
|
40
|
-
const accessibleDiffViewerRemoveIcon = registerIcon('diff-review-remove', Codicon.remove, ( localize(
|
|
41
|
-
const accessibleDiffViewerCloseIcon = registerIcon('diff-review-close', Codicon.close, ( localize(
|
|
39
|
+
const accessibleDiffViewerInsertIcon = registerIcon('diff-review-insert', Codicon.add, ( localize(165, 'Icon for \'Insert\' in accessible diff viewer.')));
|
|
40
|
+
const accessibleDiffViewerRemoveIcon = registerIcon('diff-review-remove', Codicon.remove, ( localize(166, 'Icon for \'Remove\' in accessible diff viewer.')));
|
|
41
|
+
const accessibleDiffViewerCloseIcon = registerIcon('diff-review-close', Codicon.close, ( localize(167, 'Icon for \'Close\' in accessible diff viewer.')));
|
|
42
42
|
let AccessibleDiffViewer = class AccessibleDiffViewer extends Disposable {
|
|
43
43
|
static { this._ttPolicy = createTrustedTypesPolicy('diffReview', { createHTML: value => value }); }
|
|
44
44
|
constructor(_parentNode, _visible, _setVisible, _canClose, _width, _height, _diffs, _models, _instantiationService) {
|
|
@@ -305,7 +305,7 @@ let View = class View extends Disposable {
|
|
|
305
305
|
if (this._model.canClose.read(reader)) {
|
|
306
306
|
this._actionBar.push(toAction({
|
|
307
307
|
id: 'diffreview.close',
|
|
308
|
-
label: ( localize(
|
|
308
|
+
label: ( localize(168, "Close")),
|
|
309
309
|
class: 'close-diff-review ' + ThemeIcon.asClassName(accessibleDiffViewerCloseIcon),
|
|
310
310
|
enabled: true,
|
|
311
311
|
run: async () => _model.close()
|
|
@@ -362,7 +362,7 @@ let View = class View extends Disposable {
|
|
|
362
362
|
const container = document.createElement('div');
|
|
363
363
|
container.className = 'diff-review-table';
|
|
364
364
|
container.setAttribute('role', 'list');
|
|
365
|
-
container.setAttribute('aria-label', ( localize(
|
|
365
|
+
container.setAttribute('aria-label', ( localize(169, 'Accessible Diff Viewer. Use arrow up and down to navigate.')));
|
|
366
366
|
applyFontInfo(container, modifiedOptions.get(EditorOption.fontInfo));
|
|
367
367
|
reset(this._content, container);
|
|
368
368
|
const originalModel = this._models.getOriginalModel();
|
|
@@ -386,13 +386,13 @@ let View = class View extends Disposable {
|
|
|
386
386
|
const r = group.range;
|
|
387
387
|
const diffIndex = this._model.currentGroupIndex.get();
|
|
388
388
|
const diffsLength = this._model.groups.get().length;
|
|
389
|
-
const getAriaLines = (lines) => lines === 0 ? ( localize(
|
|
390
|
-
: lines === 1 ? ( localize(
|
|
391
|
-
: ( localize(
|
|
389
|
+
const getAriaLines = (lines) => lines === 0 ? ( localize(170, "no lines changed"))
|
|
390
|
+
: lines === 1 ? ( localize(171, "1 line changed"))
|
|
391
|
+
: ( localize(172, "{0} lines changed", lines));
|
|
392
392
|
const originalChangedLinesCntAria = getAriaLines(r.original.length);
|
|
393
393
|
const modifiedChangedLinesCntAria = getAriaLines(r.modified.length);
|
|
394
394
|
header.setAttribute('aria-label', ( localize(
|
|
395
|
-
|
|
395
|
+
173,
|
|
396
396
|
"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",
|
|
397
397
|
(diffIndex + 1),
|
|
398
398
|
diffsLength,
|
|
@@ -508,17 +508,17 @@ let View = class View extends Disposable {
|
|
|
508
508
|
lineContent = originalModel.getLineContent(item.originalLineNumber);
|
|
509
509
|
}
|
|
510
510
|
if (lineContent.length === 0) {
|
|
511
|
-
lineContent = ( localize(
|
|
511
|
+
lineContent = ( localize(174, "blank"));
|
|
512
512
|
}
|
|
513
513
|
let ariaLabel = '';
|
|
514
514
|
switch (item.type) {
|
|
515
515
|
case LineType.Unchanged:
|
|
516
516
|
if (item.originalLineNumber === item.modifiedLineNumber) {
|
|
517
|
-
ariaLabel = ( localize(
|
|
517
|
+
ariaLabel = ( localize(175, "{0} unchanged line {1}", lineContent, item.originalLineNumber));
|
|
518
518
|
}
|
|
519
519
|
else {
|
|
520
520
|
ariaLabel = ( localize(
|
|
521
|
-
|
|
521
|
+
176,
|
|
522
522
|
"{0} original line {1} modified line {2}",
|
|
523
523
|
lineContent,
|
|
524
524
|
item.originalLineNumber,
|
|
@@ -527,10 +527,10 @@ let View = class View extends Disposable {
|
|
|
527
527
|
}
|
|
528
528
|
break;
|
|
529
529
|
case LineType.Added:
|
|
530
|
-
ariaLabel = ( localize(
|
|
530
|
+
ariaLabel = ( localize(177, "+ {0} modified line {1}", lineContent, item.modifiedLineNumber));
|
|
531
531
|
break;
|
|
532
532
|
case LineType.Deleted:
|
|
533
|
-
ariaLabel = ( localize(
|
|
533
|
+
ariaLabel = ( localize(178, "- {0} original line {1}", lineContent, item.originalLineNumber));
|
|
534
534
|
break;
|
|
535
535
|
}
|
|
536
536
|
row.setAttribute('aria-label', ariaLabel);
|
|
@@ -134,6 +134,8 @@ let DiffEditorEditors = class DiffEditorEditors extends Disposable {
|
|
|
134
134
|
clonedOptions.inDiffEditor = true;
|
|
135
135
|
clonedOptions.automaticLayout = false;
|
|
136
136
|
clonedOptions.allowVariableLineHeights = false;
|
|
137
|
+
clonedOptions.allowVariableFonts = false;
|
|
138
|
+
clonedOptions.allowVariableFontsInAccessibilityMode = false;
|
|
137
139
|
clonedOptions.scrollbar = { ...(clonedOptions.scrollbar || {}) };
|
|
138
140
|
clonedOptions.folding = false;
|
|
139
141
|
clonedOptions.codeLens = this._options.diffCodeLens.get();
|
|
@@ -153,7 +155,7 @@ let DiffEditorEditors = class DiffEditorEditors extends Disposable {
|
|
|
153
155
|
ariaLabel = '';
|
|
154
156
|
}
|
|
155
157
|
const ariaNavigationTip = ( localize(
|
|
156
|
-
|
|
158
|
+
179,
|
|
157
159
|
' use {0} to open the accessibility help.',
|
|
158
160
|
this._keybindingService.lookupKeybinding('editor.action.accessibilityHelp')?.getAriaLabel()
|
|
159
161
|
));
|
|
@@ -7,7 +7,7 @@ import { Codicon } from '../../../../../../base/common/codicons.js';
|
|
|
7
7
|
import { Disposable, DisposableStore } from '../../../../../../base/common/lifecycle.js';
|
|
8
8
|
import '../../../../../../base/common/observableInternal/index.js';
|
|
9
9
|
import { ThemeIcon } from '../../../../../../base/common/themables.js';
|
|
10
|
-
import {
|
|
10
|
+
import { assertReturnsDefined } from '../../../../../../base/common/types.js';
|
|
11
11
|
import { applyFontInfo } from '../../../../config/domFontInfo.js';
|
|
12
12
|
import { diffDeleteDecoration, diffRemoveIcon } from '../../registrations.contribution.js';
|
|
13
13
|
import { DiffMapping } from '../../diffEditorViewModel.js';
|
|
@@ -181,7 +181,7 @@ let DiffEditorViewZones = class DiffEditorViewZones extends Disposable {
|
|
|
181
181
|
}
|
|
182
182
|
let zoneId = undefined;
|
|
183
183
|
alignmentViewZonesDisposables.add(( new InlineDiffDeletedCodeMargin(
|
|
184
|
-
() =>
|
|
184
|
+
() => assertReturnsDefined(zoneId),
|
|
185
185
|
marginDomNode,
|
|
186
186
|
this._editors.modified,
|
|
187
187
|
a.diff,
|
|
@@ -53,23 +53,23 @@ class InlineDiffDeletedCodeMargin extends Disposable {
|
|
|
53
53
|
const isDeletion = _diff.modified.isEmpty;
|
|
54
54
|
actions.push(( new Action('diff.clipboard.copyDeletedContent', isDeletion
|
|
55
55
|
? (_diff.original.length > 1
|
|
56
|
-
? ( localize(
|
|
57
|
-
: ( localize(
|
|
56
|
+
? ( localize(180, "Copy deleted lines"))
|
|
57
|
+
: ( localize(181, "Copy deleted line")))
|
|
58
58
|
: (_diff.original.length > 1
|
|
59
|
-
? ( localize(
|
|
60
|
-
: ( localize(
|
|
59
|
+
? ( localize(182, "Copy changed lines"))
|
|
60
|
+
: ( localize(183, "Copy changed line"))), undefined, true, async () => {
|
|
61
61
|
const originalText = this._originalTextModel.getValueInRange(_diff.original.toExclusiveRange());
|
|
62
62
|
await this._clipboardService.writeText(originalText);
|
|
63
63
|
})));
|
|
64
64
|
if (_diff.original.length > 1) {
|
|
65
65
|
actions.push(( new Action('diff.clipboard.copyDeletedLineContent', isDeletion
|
|
66
66
|
? ( localize(
|
|
67
|
-
|
|
67
|
+
184,
|
|
68
68
|
"Copy deleted line ({0})",
|
|
69
69
|
_diff.original.startLineNumber + currentLineNumberOffset
|
|
70
70
|
))
|
|
71
71
|
: ( localize(
|
|
72
|
-
|
|
72
|
+
185,
|
|
73
73
|
"Copy changed line ({0})",
|
|
74
74
|
_diff.original.startLineNumber + currentLineNumberOffset
|
|
75
75
|
)), undefined, true, async () => {
|
|
@@ -83,7 +83,7 @@ class InlineDiffDeletedCodeMargin extends Disposable {
|
|
|
83
83
|
}
|
|
84
84
|
const readOnly = _modifiedEditor.getOption(EditorOption.readOnly);
|
|
85
85
|
if (!readOnly) {
|
|
86
|
-
actions.push(( new Action('diff.inline.revertChange', ( localize(
|
|
86
|
+
actions.push(( new Action('diff.inline.revertChange', ( localize(186, "Revert this change")), undefined, true, async () => {
|
|
87
87
|
this._editor.revert(this._diff);
|
|
88
88
|
})));
|
|
89
89
|
}
|