@codingame/monaco-vscode-api 18.4.0 → 19.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +1217 -2932
- package/monaco.js +0 -3
- package/package.json +8 -8
- package/services.d.ts +12 -8
- package/services.js +12 -7
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.d.ts +83 -2
- package/vscode/src/vs/base/browser/dom.js +280 -3
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +2 -0
- package/vscode/src/vs/base/browser/domStylesheets.js +11 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +1 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +34 -18
- package/vscode/src/vs/base/browser/ui/button/button.js +4 -1
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -5
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +3 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +21 -4
- package/vscode/src/vs/base/common/arrays.d.ts +0 -1
- package/vscode/src/vs/base/common/arrays.js +1 -6
- package/vscode/src/vs/base/common/async.d.ts +1 -0
- package/vscode/src/vs/base/common/async.js +2 -1
- package/vscode/src/vs/base/common/buffer.d.ts +1 -0
- package/vscode/src/vs/base/common/buffer.js +3 -0
- package/vscode/src/vs/base/common/codicons.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +7 -0
- package/vscode/src/vs/base/common/collections.d.ts +1 -0
- package/vscode/src/vs/base/common/collections.js +14 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/dataTransfer.d.ts +1 -1
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/event.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.js +2 -2
- package/vscode/src/vs/base/common/hotReloadHelpers.js +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +1 -1
- package/vscode/src/vs/base/common/network.d.ts +1 -0
- package/vscode/src/vs/base/common/network.js +1 -0
- package/vscode/src/vs/base/common/oauth.d.ts +34 -4
- package/vscode/src/vs/base/common/oauth.js +77 -6
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/set.js +0 -1
- package/vscode/src/vs/base/common/performance.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +2 -1
- package/vscode/src/vs/base/common/types.d.ts +4 -8
- package/vscode/src/vs/base/common/types.js +3 -3
- package/vscode/src/vs/base/common/worker/webWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +8 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +18 -14
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +5 -4
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +2 -3
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +6 -0
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +38 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +9 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +4 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +18 -2
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +32 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +141 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +11 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.js +6 -0
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -2
- package/vscode/src/vs/editor/browser/view/viewController.js +5 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +3 -7
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +12 -2
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +8 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +39 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css +52 -49
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +15 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +7 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +173 -160
- package/vscode/src/vs/editor/common/config/editorOptions.js +645 -570
- package/vscode/src/vs/editor/common/config/fontInfo.js +1 -1
- package/vscode/src/vs/editor/common/core/2d/point.d.ts +5 -0
- package/vscode/src/vs/editor/common/core/2d/point.js +23 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/edits/edit.js +41 -0
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +17 -11
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +36 -9
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +63 -16
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +205 -48
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +5 -1
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +18 -2
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +3 -1
- package/vscode/src/vs/editor/common/core/text/abstractText.js +10 -1
- package/vscode/src/vs/editor/common/core/text/getPositionOffsetTransformerFromTextModel.js +2 -1
- package/vscode/src/vs/editor/common/core/text/positionToOffset.d.ts +2 -28
- package/vscode/src/vs/editor/common/core/text/positionToOffset.js +11 -92
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +37 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +104 -0
- package/vscode/src/vs/editor/common/cursor/cursor.d.ts +3 -2
- package/vscode/src/vs/editor/common/cursor/cursor.js +24 -16
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +3 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +11 -1
- package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +7 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +31 -27
- package/vscode/src/vs/editor/common/languages.js +57 -62
- package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -1
- package/vscode/src/vs/editor/common/model/editStack.js +4 -3
- package/vscode/src/vs/editor/common/model/intervalTree.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/intervalTree.js +24 -7
- package/vscode/src/vs/editor/common/model/textModel.d.ts +24 -10
- package/vscode/src/vs/editor/common/model/textModel.js +114 -53
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.d.ts +0 -3
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.js +1 -13
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +2 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.js +13 -2
- package/vscode/src/vs/editor/common/model.d.ts +8 -2
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +14 -0
- package/vscode/src/vs/editor/common/services/editorWorker.service.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +7 -0
- package/vscode/src/vs/editor/common/services/languageFeatures.service.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
- package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.js +3 -2
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +159 -157
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +160 -159
- package/vscode/src/vs/editor/common/standaloneStrings.js +50 -49
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +94 -12
- package/vscode/src/vs/editor/common/textModelEditReason.js +86 -20
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +24 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +33 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +22 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +79 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +5 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +10 -4
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +39 -12
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +6 -6
- package/vscode/src/vs/editor/common/viewModel.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel.js +2 -1
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css +2 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -5
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +10 -5
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +10 -6
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -47
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +11 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +35 -30
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.js +66 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +12 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +144 -100
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +100 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +37 -29
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +39 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +150 -162
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +9 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +13 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +103 -62
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +25 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +13 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +4 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +7 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +16 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +34 -34
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +13 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +6 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +20 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +4 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +10 -7
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.contribution.js +5 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.css +20 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +132 -0
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css +0 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +14 -12
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +3 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +24 -24
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -13
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +18 -10
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +4 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +34 -39
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +5 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +65 -70
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +5 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +79 -69
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +0 -1
- package/vscode/src/vs/platform/actions/common/actions.js +0 -1
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configuration.js +4 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +11 -11
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +11 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +9 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -3
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.d.ts +6 -1
- package/vscode/src/vs/platform/files/common/files.js +11 -7
- package/vscode/src/vs/platform/files/common/files.service.d.ts +1 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +2 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -7
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +4 -0
- package/vscode/src/vs/platform/log/common/log.js +15 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +4 -3
- package/vscode/src/vs/platform/markers/common/markers.d.ts +2 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +9 -4
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.js +6 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +1 -0
- package/vscode/src/vs/platform/notification/common/notification.js +12 -2
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +7 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +7 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +2 -2
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/commonProperties.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.d.ts +1 -0
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +3 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +2 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +7 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +1 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +5 -7
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +10 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +109 -77
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocuments.d.ts +4 -2
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +35 -5
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +34 -182
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +71 -20
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +7 -5
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +16 -7
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +20 -8
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +16 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +11 -12
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/contextkeys.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -72
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor.js +6 -6
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +157 -160
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +62 -41
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +24 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +29 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +152 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -24
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +2 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.d.ts → promptsService.d.ts} +14 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.d.ts → promptsService.service.d.ts} +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +73 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +7 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +55 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +29 -13
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +119 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +10 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +13 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +1 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +6 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +132 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -17
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +5 -1
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +6 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +3 -3
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode-dts/vscode.proposed.authProviderSpecific.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +139 -10
- package/vscode-dts/vscode.proposed.d.ts +3 -1
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +5 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +21 -4
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +1 -0
- package/vscode-dts/vscode.proposed.remoteCodingAgents.d.ts +8 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
- package/workbench.d.ts +1 -1
- package/vscode/src/vs/base/browser/domImpl/domObservable.d.ts +0 -3
- package/vscode/src/vs/base/browser/domImpl/domObservable.js +0 -16
- package/vscode/src/vs/base/browser/domImpl/n.d.ts +0 -83
- package/vscode/src/vs/base/browser/domImpl/n.js +0 -283
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +0 -20
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +0 -25
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +0 -84
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.d.ts +0 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +0 -94
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +0 -243
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +0 -426
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +0 -601
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -1185
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -235
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.js +0 -6
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -103
- /package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.js → promptsService.service.js} +0 -0
|
@@ -2,7 +2,32 @@
|
|
|
2
2
|
import { decodeBase64 } from './buffer.js';
|
|
3
3
|
|
|
4
4
|
const WELL_KNOWN_ROUTE = '/.well-known';
|
|
5
|
+
const AUTH_PROTECTED_RESOURCE_METADATA_DISCOVERY_PATH = `${WELL_KNOWN_ROUTE}/oauth-protected-resource`;
|
|
5
6
|
const AUTH_SERVER_METADATA_DISCOVERY_PATH = `${WELL_KNOWN_ROUTE}/oauth-authorization-server`;
|
|
7
|
+
const AUTH_SCOPE_SEPARATOR = ' ';
|
|
8
|
+
var AuthorizationErrorType;
|
|
9
|
+
(function (AuthorizationErrorType) {
|
|
10
|
+
AuthorizationErrorType["InvalidRequest"] = "invalid_request";
|
|
11
|
+
AuthorizationErrorType["InvalidClient"] = "invalid_client";
|
|
12
|
+
AuthorizationErrorType["InvalidGrant"] = "invalid_grant";
|
|
13
|
+
AuthorizationErrorType["UnauthorizedClient"] = "unauthorized_client";
|
|
14
|
+
AuthorizationErrorType["UnsupportedGrantType"] = "unsupported_grant_type";
|
|
15
|
+
AuthorizationErrorType["InvalidScope"] = "invalid_scope";
|
|
16
|
+
})(AuthorizationErrorType || (AuthorizationErrorType = {}));
|
|
17
|
+
var AuthorizationDeviceCodeErrorType;
|
|
18
|
+
(function (AuthorizationDeviceCodeErrorType) {
|
|
19
|
+
AuthorizationDeviceCodeErrorType["AuthorizationPending"] = "authorization_pending";
|
|
20
|
+
AuthorizationDeviceCodeErrorType["SlowDown"] = "slow_down";
|
|
21
|
+
AuthorizationDeviceCodeErrorType["AccessDenied"] = "access_denied";
|
|
22
|
+
AuthorizationDeviceCodeErrorType["ExpiredToken"] = "expired_token";
|
|
23
|
+
})(AuthorizationDeviceCodeErrorType || (AuthorizationDeviceCodeErrorType = {}));
|
|
24
|
+
var AuthorizationRegistrationErrorType;
|
|
25
|
+
(function (AuthorizationRegistrationErrorType) {
|
|
26
|
+
AuthorizationRegistrationErrorType["InvalidRedirectUri"] = "invalid_redirect_uri";
|
|
27
|
+
AuthorizationRegistrationErrorType["InvalidClientMetadata"] = "invalid_client_metadata";
|
|
28
|
+
AuthorizationRegistrationErrorType["InvalidSoftwareStatement"] = "invalid_software_statement";
|
|
29
|
+
AuthorizationRegistrationErrorType["UnapprovedSoftwareStatement"] = "unapproved_software_statement";
|
|
30
|
+
})(AuthorizationRegistrationErrorType || (AuthorizationRegistrationErrorType = {}));
|
|
6
31
|
function isAuthorizationProtectedResourceMetadata(obj) {
|
|
7
32
|
if (typeof obj !== 'object' || obj === null) {
|
|
8
33
|
return false;
|
|
@@ -31,6 +56,20 @@ function isAuthorizationTokenResponse(obj) {
|
|
|
31
56
|
const response = obj;
|
|
32
57
|
return response.access_token !== undefined && response.token_type !== undefined;
|
|
33
58
|
}
|
|
59
|
+
function isAuthorizationErrorResponse(obj) {
|
|
60
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
const response = obj;
|
|
64
|
+
return response.error !== undefined;
|
|
65
|
+
}
|
|
66
|
+
function isAuthorizationRegistrationErrorResponse(obj) {
|
|
67
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
const response = obj;
|
|
71
|
+
return response.error !== undefined;
|
|
72
|
+
}
|
|
34
73
|
function getDefaultMetadataForUrl(authorizationServer) {
|
|
35
74
|
return {
|
|
36
75
|
issuer: ( authorizationServer.toString()),
|
|
@@ -49,9 +88,13 @@ function getMetadataWithDefaultValues(metadata) {
|
|
|
49
88
|
registration_endpoint: metadata.registration_endpoint ?? ( ( new URL('/register', issuer)).toString()),
|
|
50
89
|
};
|
|
51
90
|
}
|
|
91
|
+
const grantTypesSupported = ['authorization_code', 'refresh_token', 'urn:ietf:params:oauth:grant-type:device_code'];
|
|
52
92
|
const DEFAULT_AUTH_FLOW_PORT = 33418;
|
|
53
|
-
async function fetchDynamicRegistration(
|
|
54
|
-
|
|
93
|
+
async function fetchDynamicRegistration(serverMetadata, clientName, scopes) {
|
|
94
|
+
if (!serverMetadata.registration_endpoint) {
|
|
95
|
+
throw ( new Error('Server does not support dynamic registration'));
|
|
96
|
+
}
|
|
97
|
+
const response = await fetch(serverMetadata.registration_endpoint, {
|
|
55
98
|
method: 'POST',
|
|
56
99
|
headers: {
|
|
57
100
|
'Content-Type': 'application/json'
|
|
@@ -59,7 +102,9 @@ async function fetchDynamicRegistration(registrationEndpoint, clientName) {
|
|
|
59
102
|
body: JSON.stringify({
|
|
60
103
|
client_name: clientName,
|
|
61
104
|
client_uri: 'https://code.visualstudio.com',
|
|
62
|
-
grant_types:
|
|
105
|
+
grant_types: serverMetadata.grant_types_supported
|
|
106
|
+
? serverMetadata.grant_types_supported.filter(gt => grantTypesSupported.includes(gt))
|
|
107
|
+
: grantTypesSupported,
|
|
63
108
|
response_types: ['code'],
|
|
64
109
|
redirect_uris: [
|
|
65
110
|
'https://insiders.vscode.dev/redirect',
|
|
@@ -69,11 +114,25 @@ async function fetchDynamicRegistration(registrationEndpoint, clientName) {
|
|
|
69
114
|
`http://localhost:${DEFAULT_AUTH_FLOW_PORT}/`,
|
|
70
115
|
`http://127.0.0.1:${DEFAULT_AUTH_FLOW_PORT}/`
|
|
71
116
|
],
|
|
72
|
-
|
|
117
|
+
scope: scopes?.join(AUTH_SCOPE_SEPARATOR),
|
|
118
|
+
token_endpoint_auth_method: 'none',
|
|
119
|
+
application_type: 'native'
|
|
73
120
|
})
|
|
74
121
|
});
|
|
75
122
|
if (!response.ok) {
|
|
76
|
-
|
|
123
|
+
const result = await response.text();
|
|
124
|
+
let errorDetails = result;
|
|
125
|
+
try {
|
|
126
|
+
const errorResponse = JSON.parse(result);
|
|
127
|
+
if (isAuthorizationRegistrationErrorResponse(errorResponse)) {
|
|
128
|
+
errorDetails = `${errorResponse.error}${errorResponse.error_description ? `: ${errorResponse.error_description}` : ''}`;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
}
|
|
133
|
+
throw ( new Error(
|
|
134
|
+
`Registration to ${serverMetadata.registration_endpoint} failed: ${errorDetails}`
|
|
135
|
+
));
|
|
77
136
|
}
|
|
78
137
|
const registration = await response.json();
|
|
79
138
|
if (isAuthorizationDynamicClientRegistrationResponse(registration)) {
|
|
@@ -120,5 +179,17 @@ function getClaimsFromJWT(token) {
|
|
|
120
179
|
throw ( new Error('Failed to parse JWT token'));
|
|
121
180
|
}
|
|
122
181
|
}
|
|
182
|
+
function getResourceServerBaseUrlFromDiscoveryUrl(discoveryUrl) {
|
|
183
|
+
const url = ( new URL(discoveryUrl));
|
|
184
|
+
if (!url.pathname.startsWith(AUTH_PROTECTED_RESOURCE_METADATA_DISCOVERY_PATH)) {
|
|
185
|
+
throw ( new Error(
|
|
186
|
+
`Invalid discovery URL: expected path to start with ${AUTH_PROTECTED_RESOURCE_METADATA_DISCOVERY_PATH}`
|
|
187
|
+
));
|
|
188
|
+
}
|
|
189
|
+
const pathWithoutDiscovery = url.pathname.substring(AUTH_PROTECTED_RESOURCE_METADATA_DISCOVERY_PATH.length);
|
|
190
|
+
const baseUrl = ( new URL(url.origin));
|
|
191
|
+
baseUrl.pathname = pathWithoutDiscovery || '/';
|
|
192
|
+
return ( baseUrl.toString());
|
|
193
|
+
}
|
|
123
194
|
|
|
124
|
-
export { AUTH_SERVER_METADATA_DISCOVERY_PATH, DEFAULT_AUTH_FLOW_PORT, fetchDynamicRegistration, getClaimsFromJWT, getDefaultMetadataForUrl, getMetadataWithDefaultValues, isAuthorizationDynamicClientRegistrationResponse, isAuthorizationProtectedResourceMetadata, isAuthorizationServerMetadata, isAuthorizationTokenResponse, parseWWWAuthenticateHeader };
|
|
195
|
+
export { AUTH_PROTECTED_RESOURCE_METADATA_DISCOVERY_PATH, AUTH_SCOPE_SEPARATOR, AUTH_SERVER_METADATA_DISCOVERY_PATH, AuthorizationDeviceCodeErrorType, AuthorizationErrorType, AuthorizationRegistrationErrorType, DEFAULT_AUTH_FLOW_PORT, fetchDynamicRegistration, getClaimsFromJWT, getDefaultMetadataForUrl, getMetadataWithDefaultValues, getResourceServerBaseUrlFromDiscoveryUrl, isAuthorizationDynamicClientRegistrationResponse, isAuthorizationErrorResponse, isAuthorizationProtectedResourceMetadata, isAuthorizationRegistrationErrorResponse, isAuthorizationServerMetadata, isAuthorizationTokenResponse, parseWWWAuthenticateHeader };
|
|
@@ -15,9 +15,9 @@ export { observableFromEventOpts } from "./observables/observableFromEvent.js";
|
|
|
15
15
|
export { observableSignalFromEvent } from "./observables/observableSignalFromEvent.js";
|
|
16
16
|
export { asyncTransaction, globalTransaction, subtransaction, transaction, TransactionImpl } from "./transaction.js";
|
|
17
17
|
export { observableFromValueWithChangeEvent, ValueWithChangeEventFromObservable } from "./utils/valueWithChangeEvent.js";
|
|
18
|
-
export { runOnChange, runOnChangeWithCancellationToken, runOnChangeWithStore } from "./utils/runOnChange.js";
|
|
18
|
+
export { runOnChange, runOnChangeWithCancellationToken, runOnChangeWithStore, type RemoveUndefined } from "./utils/runOnChange.js";
|
|
19
19
|
export { derivedConstOnceDefined, latestChangedValue } from "./experimental/utils.js";
|
|
20
20
|
export { observableFromEvent } from "./observables/observableFromEvent.js";
|
|
21
21
|
export { observableValue } from "./observables/observableValue.js";
|
|
22
22
|
export { ObservableSet } from "./set.js";
|
|
23
|
-
export { ObservableMap } from "@codingame/monaco-vscode-
|
|
23
|
+
export { ObservableMap } from "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/base/common/observableInternal/map";
|
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
function getFirstStackFrameOutsideOf(stack, pattern) {
|
|
4
4
|
const lines = stack.split('\n');
|
|
5
|
-
for (
|
|
5
|
+
for (let i = 1; i < lines.length; i++) {
|
|
6
|
+
const line = lines[i];
|
|
6
7
|
if (pattern && pattern.test(line)) {
|
|
7
8
|
continue;
|
|
8
9
|
}
|
|
10
|
+
const showFramesUpMatch = line.match(/\$show(\d+)FramesUp/);
|
|
11
|
+
if (showFramesUpMatch) {
|
|
12
|
+
const n = parseInt(showFramesUpMatch[1], 10);
|
|
13
|
+
i += (n - 1);
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
9
16
|
const result = parseLine(line);
|
|
10
17
|
if (result) {
|
|
11
18
|
return result;
|
|
@@ -33,7 +33,7 @@ function _define() {
|
|
|
33
33
|
getMarks() {
|
|
34
34
|
let timeOrigin = performance.timeOrigin;
|
|
35
35
|
if (typeof timeOrigin !== 'number') {
|
|
36
|
-
timeOrigin = performance.timing.navigationStart || performance.timing.redirectStart || performance.timing.fetchStart;
|
|
36
|
+
timeOrigin = (performance.timing.navigationStart || performance.timing.redirectStart || performance.timing.fetchStart) ?? 0;
|
|
37
37
|
}
|
|
38
38
|
const result = [{ name: 'code/timeOrigin', startTime: Math.round(timeOrigin) }];
|
|
39
39
|
for (const entry of performance.getEntriesByType('mark')) {
|
|
@@ -5,7 +5,7 @@ export interface IBuiltInExtension {
|
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly version: string;
|
|
7
7
|
readonly repo: string;
|
|
8
|
-
readonly metadata:
|
|
8
|
+
readonly metadata: unknown;
|
|
9
9
|
}
|
|
10
10
|
export interface IProductWalkthrough {
|
|
11
11
|
id: string;
|
|
@@ -91,6 +91,7 @@ export interface IProductConfiguration {
|
|
|
91
91
|
readonly extensionsGallery?: {
|
|
92
92
|
readonly serviceUrl: string;
|
|
93
93
|
readonly controlUrl: string;
|
|
94
|
+
readonly mcpUrl: string;
|
|
94
95
|
readonly extensionUrlTemplate: string;
|
|
95
96
|
readonly resourceUrlTemplate: string;
|
|
96
97
|
readonly nlsBaseUrl: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { URI } from "./uri.js";
|
|
2
1
|
export declare function isString(str: unknown): str is string;
|
|
3
2
|
export declare function isStringArray(value: unknown): value is string[];
|
|
4
3
|
export declare function isObject(obj: unknown): obj is Object;
|
|
@@ -11,18 +10,18 @@ export declare function isUndefined(obj: unknown): obj is undefined;
|
|
|
11
10
|
export declare function isDefined<T>(arg: T | null | undefined): arg is T;
|
|
12
11
|
export declare function isUndefinedOrNull(obj: unknown): obj is undefined | null;
|
|
13
12
|
export declare function assertType(condition: unknown, type?: string): asserts condition;
|
|
14
|
-
export declare function
|
|
13
|
+
export declare function assertReturnsDefined<T>(arg: T | null | undefined): NonNullable<T>;
|
|
15
14
|
export declare function assertDefined<T>(value: T, error: string | NonNullable<Error>): asserts value is NonNullable<T>;
|
|
16
|
-
export declare function
|
|
15
|
+
export declare function assertReturnsAllDefined<T1, T2>(t1: T1 | null | undefined, t2: T2 | null | undefined): [
|
|
17
16
|
T1,
|
|
18
17
|
T2
|
|
19
18
|
];
|
|
20
|
-
export declare function
|
|
19
|
+
export declare function assertReturnsAllDefined<T1, T2, T3>(t1: T1 | null | undefined, t2: T2 | null | undefined, t3: T3 | null | undefined): [
|
|
21
20
|
T1,
|
|
22
21
|
T2,
|
|
23
22
|
T3
|
|
24
23
|
];
|
|
25
|
-
export declare function
|
|
24
|
+
export declare function assertReturnsAllDefined<T1, T2, T3, T4>(t1: T1 | null | undefined, t2: T2 | null | undefined, t3: T3 | null | undefined, t4: T4 | null | undefined): [
|
|
26
25
|
T1,
|
|
27
26
|
T2,
|
|
28
27
|
T3,
|
|
@@ -58,7 +57,4 @@ export type DeepPartial<T> = {
|
|
|
58
57
|
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : Partial<T[P]>;
|
|
59
58
|
};
|
|
60
59
|
export type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>;
|
|
61
|
-
export type WithUriValue<T extends object> = T & {
|
|
62
|
-
value: URI;
|
|
63
|
-
};
|
|
64
60
|
export {};
|
|
@@ -42,7 +42,7 @@ function assertType(condition, type) {
|
|
|
42
42
|
throw ( new Error(type ? `Unexpected type, expected '${type}'` : 'Unexpected type'));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function assertReturnsDefined(arg) {
|
|
46
46
|
assert(arg !== null && arg !== undefined, 'Argument is `undefined` or `null`.');
|
|
47
47
|
return arg;
|
|
48
48
|
}
|
|
@@ -52,7 +52,7 @@ function assertDefined(value, error) {
|
|
|
52
52
|
throw errorToThrow;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function assertReturnsAllDefined(...args) {
|
|
56
56
|
const result = [];
|
|
57
57
|
for (let i = 0; i < args.length; i++) {
|
|
58
58
|
const arg = args[i];
|
|
@@ -119,4 +119,4 @@ function upcast(x) {
|
|
|
119
119
|
return x;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export { areFunctions,
|
|
122
|
+
export { areFunctions, assertDefined, assertReturnsAllDefined, assertReturnsDefined, assertType, isBoolean, isDefined, isEmptyObject, isFunction, isIterable, isNumber, isObject, isOneOf, isString, isStringArray, isTypedArray, isUndefined, isUndefinedOrNull, upcast, validateConstraint, validateConstraints };
|
|
@@ -232,7 +232,7 @@ class WebWorkerClient extends Disposable {
|
|
|
232
232
|
super();
|
|
233
233
|
this._localChannels = ( new Map());
|
|
234
234
|
this._remoteChannels = ( new Map());
|
|
235
|
-
this._worker = worker;
|
|
235
|
+
this._worker = this._register(worker);
|
|
236
236
|
this._register(this._worker.onMessage((msg) => {
|
|
237
237
|
this._protocol.handleMessage(msg);
|
|
238
238
|
}));
|
|
@@ -159,6 +159,14 @@ registerEditorSettingMigration('experimental.stickyScroll.maxLineCount', (value,
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
+
registerEditorSettingMigration('editor.experimentalEditContextEnabled', (value, read, write) => {
|
|
163
|
+
if (typeof value === 'boolean') {
|
|
164
|
+
write('editor.experimentalEditContextEnabled', undefined);
|
|
165
|
+
if (typeof read('editor.editContext') === 'undefined') {
|
|
166
|
+
write('editor.editContext', value);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
});
|
|
162
170
|
registerEditorSettingMigration('codeActionsOnSave', (value, read, write) => {
|
|
163
171
|
if (value && typeof value === 'object') {
|
|
164
172
|
let toBeModified = false;
|
|
@@ -17,6 +17,7 @@ export declare class NativeEditContext extends AbstractEditContext {
|
|
|
17
17
|
private readonly _imeTextArea;
|
|
18
18
|
private readonly _editContext;
|
|
19
19
|
private readonly _screenReaderSupport;
|
|
20
|
+
private _previousEditContextSelection;
|
|
20
21
|
private _editContextPrimarySelection;
|
|
21
22
|
private _parent;
|
|
22
23
|
private _decorations;
|
|
@@ -39,6 +40,7 @@ export declare class NativeEditContext extends AbstractEditContext {
|
|
|
39
40
|
onLinesChanged(e: ViewLinesChangedEvent): boolean;
|
|
40
41
|
onLinesDeleted(e: ViewLinesDeletedEvent): boolean;
|
|
41
42
|
onLinesInserted(e: ViewLinesInsertedEvent): boolean;
|
|
43
|
+
private _updateEditContextOnLineChange;
|
|
42
44
|
onScrollChanged(e: ViewScrollChangedEvent): boolean;
|
|
43
45
|
onZonesChanged(e: ViewZonesChangedEvent): boolean;
|
|
44
46
|
onWillPaste(): void;
|
|
@@ -17,13 +17,15 @@ import { ScreenReaderSupport } from './screenReaderSupport.js';
|
|
|
17
17
|
import { Range } from '../../../../common/core/range.js';
|
|
18
18
|
import { Selection } from '../../../../common/core/selection.js';
|
|
19
19
|
import { Position } from '../../../../common/core/position.js';
|
|
20
|
-
import
|
|
20
|
+
import '../../../../common/core/text/positionToOffset.js';
|
|
21
21
|
import { MutableDisposable } from '../../../../../base/common/lifecycle.js';
|
|
22
22
|
import { EditContext } from './editContextFactory.js';
|
|
23
23
|
import { IAccessibilityService } from '../../../../../platform/accessibility/common/accessibility.service.js';
|
|
24
24
|
import { NativeEditContextRegistry } from './nativeEditContextRegistry.js';
|
|
25
25
|
import { isHighSurrogate, isLowSurrogate } from '../../../../../base/common/strings.js';
|
|
26
26
|
import { IME } from '../../../../../base/common/ime.js';
|
|
27
|
+
import { OffsetRange } from '../../../../common/core/ranges/offsetRange.js';
|
|
28
|
+
import { PositionOffsetTransformer } from '../../../../common/core/text/positionToOffsetImpl.js';
|
|
27
29
|
|
|
28
30
|
registerCss(nativeEditContext);
|
|
29
31
|
var CompositionClassName;
|
|
@@ -38,6 +40,7 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
38
40
|
this._viewController = _viewController;
|
|
39
41
|
this._visibleRangeProvider = _visibleRangeProvider;
|
|
40
42
|
this._accessibilityService = _accessibilityService;
|
|
43
|
+
this._previousEditContextSelection = ( new OffsetRange(0, 0));
|
|
41
44
|
this._editContextPrimarySelection = ( new Selection(1, 1, 1, 1));
|
|
42
45
|
this._decorations = [];
|
|
43
46
|
this._primarySelection = ( new Selection(1, 1, 1, 1));
|
|
@@ -147,8 +150,8 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
147
150
|
let reenableTracking = false;
|
|
148
151
|
this._register(IME.onDidChange(() => {
|
|
149
152
|
if (IME.enabled && reenableTracking) {
|
|
150
|
-
this.domNode.focus();
|
|
151
153
|
this._focusTracker.resume();
|
|
154
|
+
this.domNode.focus();
|
|
152
155
|
reenableTracking = false;
|
|
153
156
|
}
|
|
154
157
|
if (!IME.enabled && this.isFocused()) {
|
|
@@ -173,7 +176,6 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
173
176
|
}
|
|
174
177
|
prepareRender(ctx) {
|
|
175
178
|
this._screenReaderSupport.prepareRender(ctx);
|
|
176
|
-
this._updateEditContext();
|
|
177
179
|
this._updateSelectionAndControlBounds(ctx);
|
|
178
180
|
}
|
|
179
181
|
render(ctx) {
|
|
@@ -197,14 +199,23 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
197
199
|
return true;
|
|
198
200
|
}
|
|
199
201
|
onLinesChanged(e) {
|
|
202
|
+
this._updateEditContextOnLineChange(e.fromLineNumber, e.fromLineNumber + e.count - 1);
|
|
200
203
|
return true;
|
|
201
204
|
}
|
|
202
205
|
onLinesDeleted(e) {
|
|
206
|
+
this._updateEditContextOnLineChange(e.fromLineNumber, e.toLineNumber);
|
|
203
207
|
return true;
|
|
204
208
|
}
|
|
205
209
|
onLinesInserted(e) {
|
|
210
|
+
this._updateEditContextOnLineChange(e.fromLineNumber, e.toLineNumber);
|
|
206
211
|
return true;
|
|
207
212
|
}
|
|
213
|
+
_updateEditContextOnLineChange(fromLineNumber, toLineNumber) {
|
|
214
|
+
if (this._editContextPrimarySelection.endLineNumber < fromLineNumber || this._editContextPrimarySelection.startLineNumber > toLineNumber) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
this._updateEditContext();
|
|
218
|
+
}
|
|
208
219
|
onScrollChanged(e) {
|
|
209
220
|
this._scrollLeft = e.scrollLeft;
|
|
210
221
|
this._scrollTop = e.scrollTop;
|
|
@@ -262,21 +273,15 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
262
273
|
this._editContext.updateText(0, Number.MAX_SAFE_INTEGER, editContextState.text ?? ' ');
|
|
263
274
|
this._editContext.updateSelection(editContextState.selectionStartOffset, editContextState.selectionEndOffset);
|
|
264
275
|
this._editContextPrimarySelection = editContextState.editContextPrimarySelection;
|
|
276
|
+
this._previousEditContextSelection = ( new OffsetRange(editContextState.selectionStartOffset, editContextState.selectionEndOffset));
|
|
265
277
|
}
|
|
266
278
|
_emitTypeEvent(viewController, e) {
|
|
267
279
|
if (!this._editContext) {
|
|
268
280
|
return;
|
|
269
281
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
const model = this._context.viewModel.model;
|
|
274
|
-
const startPositionOfEditContext = this._editContextStartPosition();
|
|
275
|
-
const offsetOfStartOfText = model.getOffsetAt(startPositionOfEditContext);
|
|
276
|
-
const offsetOfSelectionEnd = model.getOffsetAt(this._primarySelection.getEndPosition());
|
|
277
|
-
const offsetOfSelectionStart = model.getOffsetAt(this._primarySelection.getStartPosition());
|
|
278
|
-
const selectionEndOffset = offsetOfSelectionEnd - offsetOfStartOfText;
|
|
279
|
-
const selectionStartOffset = offsetOfSelectionStart - offsetOfStartOfText;
|
|
282
|
+
const selectionEndOffset = this._previousEditContextSelection.endExclusive;
|
|
283
|
+
const selectionStartOffset = this._previousEditContextSelection.start;
|
|
284
|
+
this._previousEditContextSelection = ( new OffsetRange(e.selectionStart, e.selectionEnd));
|
|
280
285
|
let replaceNextCharCnt = 0;
|
|
281
286
|
let replacePrevCharCnt = 0;
|
|
282
287
|
if (e.updateRangeEnd > selectionEndOffset) {
|
|
@@ -304,7 +309,6 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
304
309
|
positionDelta
|
|
305
310
|
};
|
|
306
311
|
this._onType(viewController, typeInput);
|
|
307
|
-
this._updateEditContext();
|
|
308
312
|
}
|
|
309
313
|
_onType(viewController, typeInput) {
|
|
310
314
|
if (typeInput.replacePrevCharCnt || typeInput.replaceNextCharCnt || typeInput.positionDelta) {
|
|
@@ -532,8 +532,8 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
532
532
|
if (width > this._contentWidth) {
|
|
533
533
|
width = this._contentWidth;
|
|
534
534
|
}
|
|
535
|
-
const
|
|
536
|
-
const
|
|
535
|
+
const lineHeight = this._context.viewLayout.getLineHeightForLineNumber(startPosition.lineNumber);
|
|
536
|
+
const fontSize = this._context.viewModel.getFontSizeAtPosition(this._primaryCursorPosition);
|
|
537
537
|
const viewLineData = this._context.viewModel.getViewLineData(startPosition.lineNumber);
|
|
538
538
|
const startTokenIndex = viewLineData.tokens.findTokenIndexAtOffset(startPosition.column - 1);
|
|
539
539
|
const endTokenIndex = viewLineData.tokens.findTokenIndexAtOffset(endPosition.column - 1);
|
|
@@ -552,7 +552,8 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
552
552
|
italic: presentation.italic,
|
|
553
553
|
bold: presentation.bold,
|
|
554
554
|
underline: presentation.underline,
|
|
555
|
-
strikethrough: presentation.strikethrough
|
|
555
|
+
strikethrough: presentation.strikethrough,
|
|
556
|
+
fontSize
|
|
556
557
|
});
|
|
557
558
|
}
|
|
558
559
|
return;
|
|
@@ -616,6 +617,7 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
616
617
|
ta.setWidth(renderData.width);
|
|
617
618
|
ta.setHeight(renderData.height);
|
|
618
619
|
ta.setLineHeight(renderData.height);
|
|
620
|
+
ta.setFontSize(renderData.fontSize ?? this._fontInfo.fontSize);
|
|
619
621
|
ta.setColor(renderData.color ? Color.Format.CSS.formatHex(renderData.color) : '');
|
|
620
622
|
ta.setFontStyle(renderData.italic ? 'italic' : '');
|
|
621
623
|
if (renderData.bold) {
|
|
@@ -14,12 +14,14 @@ import { IDiffComputationResult, ILineChange } from "../common/diff/legacyLinesD
|
|
|
14
14
|
import * as editorCommon from "../common/editorCommon.js";
|
|
15
15
|
import { GlyphMarginLane, ICursorStateComputer, IIdentifiedSingleEditOperation, IModelDecoration, IModelDeltaDecoration, ITextModel, PositionAffinity } from "../common/model.js";
|
|
16
16
|
import { InjectedText } from "../common/modelLineProjectionData.js";
|
|
17
|
-
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelLanguageChangedEvent, IModelLanguageConfigurationChangedEvent, IModelOptionsChangedEvent, IModelTokensChangedEvent, ModelLineHeightChangedEvent } from "../common/textModelEvents.js";
|
|
17
|
+
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelLanguageChangedEvent, IModelLanguageConfigurationChangedEvent, IModelOptionsChangedEvent, IModelTokensChangedEvent, ModelFontChangedEvent, ModelLineHeightChangedEvent } from "../common/textModelEvents.js";
|
|
18
18
|
import { IEditorWhitespace, IViewModel } from "../common/viewModel.js";
|
|
19
19
|
import { OverviewRulerZone } from "../common/viewModel/overviewZoneManager.js";
|
|
20
20
|
import { MenuId } from "../../platform/actions/common/actions.js";
|
|
21
21
|
import { IContextKeyService } from "../../platform/contextkey/common/contextkey.service.js";
|
|
22
22
|
import { ServicesAccessor } from "../../platform/instantiation/common/instantiation.js";
|
|
23
|
+
import { TextEdit } from "../common/core/edits/textEdit.js";
|
|
24
|
+
import { TextModelEditReason } from "../common/textModelEditReason.js";
|
|
23
25
|
export interface IViewZone {
|
|
24
26
|
afterLineNumber: number;
|
|
25
27
|
afterColumn?: number;
|
|
@@ -2,6 +2,7 @@ import { Event } from "../../../../base/common/event.js";
|
|
|
2
2
|
import { Disposable } from "../../../../base/common/lifecycle.js";
|
|
3
3
|
import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
|
|
4
4
|
import { IThemeService } from "../../../../platform/theme/common/themeService.service.js";
|
|
5
|
+
import type { DecorationStyleCache } from "../css/decorationStyleCache.js";
|
|
5
6
|
import type { IGlyphRasterizer } from "../raster/raster.js";
|
|
6
7
|
import type { IReadableTextureAtlasPage, ITextureAtlasPageGlyph } from "./atlas.js";
|
|
7
8
|
import { AllocatorType } from "./textureAtlasPage.js";
|
|
@@ -10,6 +11,7 @@ export interface ITextureAtlasOptions {
|
|
|
10
11
|
}
|
|
11
12
|
export declare class TextureAtlas extends Disposable {
|
|
12
13
|
private readonly _maxTextureSize;
|
|
14
|
+
private readonly _decorationStyleCache;
|
|
13
15
|
private readonly _themeService;
|
|
14
16
|
private readonly _instantiationService;
|
|
15
17
|
private _colorMap?;
|
|
@@ -23,7 +25,7 @@ export declare class TextureAtlas extends Disposable {
|
|
|
23
25
|
private readonly _glyphPageIndex;
|
|
24
26
|
private readonly _onDidDeleteGlyphs;
|
|
25
27
|
readonly onDidDeleteGlyphs: Event<void>;
|
|
26
|
-
constructor(_maxTextureSize: number, options: ITextureAtlasOptions | undefined, _themeService: IThemeService, _instantiationService: IInstantiationService);
|
|
28
|
+
constructor(_maxTextureSize: number, options: ITextureAtlasOptions | undefined, _decorationStyleCache: DecorationStyleCache, _themeService: IThemeService, _instantiationService: IInstantiationService);
|
|
27
29
|
private _initFirstPage;
|
|
28
30
|
clear(): void;
|
|
29
31
|
getGlyph(rasterizer: IGlyphRasterizer, chars: string, tokenMetadata: number, decorationStyleSetId: number, x: number): Readonly<ITextureAtlasPageGlyph>;
|
|
@@ -19,9 +19,10 @@ let TextureAtlas = class TextureAtlas extends Disposable {
|
|
|
19
19
|
static { this.maximumPageCount = 16; }
|
|
20
20
|
get pages() { return this._pages; }
|
|
21
21
|
constructor(
|
|
22
|
-
_maxTextureSize, options, _themeService, _instantiationService) {
|
|
22
|
+
_maxTextureSize, options, _decorationStyleCache, _themeService, _instantiationService) {
|
|
23
23
|
super();
|
|
24
24
|
this._maxTextureSize = _maxTextureSize;
|
|
25
|
+
this._decorationStyleCache = _decorationStyleCache;
|
|
25
26
|
this._themeService = _themeService;
|
|
26
27
|
this._instantiationService = _instantiationService;
|
|
27
28
|
this._warmUpTask = this._register(( new MutableDisposable()));
|
|
@@ -45,7 +46,7 @@ let TextureAtlas = class TextureAtlas extends Disposable {
|
|
|
45
46
|
_initFirstPage() {
|
|
46
47
|
const firstPage = this._instantiationService.createInstance(TextureAtlasPage, 0, this.pageSize, this._allocatorType);
|
|
47
48
|
this._pages.push(firstPage);
|
|
48
|
-
const nullRasterizer = ( new GlyphRasterizer(1, '', 1));
|
|
49
|
+
const nullRasterizer = ( new GlyphRasterizer(1, '', 1, this._decorationStyleCache));
|
|
49
50
|
firstPage.getGlyph(nullRasterizer, '', 0, 0);
|
|
50
51
|
nullRasterizer.dispose();
|
|
51
52
|
}
|
|
@@ -130,8 +131,8 @@ let TextureAtlas = class TextureAtlas extends Disposable {
|
|
|
130
131
|
}
|
|
131
132
|
};
|
|
132
133
|
TextureAtlas = TextureAtlas_1 = ( __decorate([
|
|
133
|
-
( __param(
|
|
134
|
-
( __param(
|
|
134
|
+
( __param(3, IThemeService)),
|
|
135
|
+
( __param(4, IInstantiationService))
|
|
135
136
|
], TextureAtlas));
|
|
136
137
|
|
|
137
138
|
export { TextureAtlas };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Disposable } from "../../../../base/common/lifecycle.js";
|
|
2
|
+
import type { DecorationStyleCache } from "../css/decorationStyleCache.js";
|
|
2
3
|
import { type IGlyphRasterizer, type IRasterizedGlyph } from "./raster.js";
|
|
3
4
|
export declare class GlyphRasterizer extends Disposable implements IGlyphRasterizer {
|
|
4
5
|
readonly fontSize: number;
|
|
5
6
|
readonly fontFamily: string;
|
|
6
7
|
readonly devicePixelRatio: number;
|
|
8
|
+
private readonly _decorationStyleCache;
|
|
7
9
|
readonly id: number;
|
|
8
10
|
get cacheKey(): string;
|
|
9
11
|
private _canvas;
|
|
@@ -12,7 +14,7 @@ export declare class GlyphRasterizer extends Disposable implements IGlyphRasteri
|
|
|
12
14
|
private _workGlyph;
|
|
13
15
|
private _workGlyphConfig;
|
|
14
16
|
private _antiAliasing;
|
|
15
|
-
constructor(fontSize: number, fontFamily: string, devicePixelRatio: number);
|
|
17
|
+
constructor(fontSize: number, fontFamily: string, devicePixelRatio: number, _decorationStyleCache: DecorationStyleCache);
|
|
16
18
|
rasterizeGlyph(chars: string, tokenMetadata: number, decorationStyleSetId: number, colorMap: string[]): Readonly<IRasterizedGlyph>;
|
|
17
19
|
_rasterizeGlyph(chars: string, tokenMetadata: number, decorationStyleSetId: number, colorMap: string[]): Readonly<IRasterizedGlyph>;
|
|
18
20
|
private _clearColor;
|
|
@@ -6,18 +6,18 @@ import { isMacintosh } from '../../../../base/common/platform.js';
|
|
|
6
6
|
import { StringBuilder } from '../../../common/core/stringBuilder.js';
|
|
7
7
|
import { TokenMetadata, FontStyle } from '../../../common/encodedTokenAttributes.js';
|
|
8
8
|
import { ensureNonNullable } from '../gpuUtils.js';
|
|
9
|
-
import { ViewGpuContext } from '../viewGpuContext.js';
|
|
10
9
|
|
|
11
10
|
let nextId = 0;
|
|
12
11
|
class GlyphRasterizer extends Disposable {
|
|
13
12
|
get cacheKey() {
|
|
14
13
|
return `${this.fontFamily}_${this.fontSize}px`;
|
|
15
14
|
}
|
|
16
|
-
constructor(fontSize, fontFamily, devicePixelRatio) {
|
|
15
|
+
constructor(fontSize, fontFamily, devicePixelRatio, _decorationStyleCache) {
|
|
17
16
|
super();
|
|
18
17
|
this.fontSize = fontSize;
|
|
19
18
|
this.fontFamily = fontFamily;
|
|
20
19
|
this.devicePixelRatio = devicePixelRatio;
|
|
20
|
+
this._decorationStyleCache = _decorationStyleCache;
|
|
21
21
|
this.id = nextId++;
|
|
22
22
|
this._workGlyph = {
|
|
23
23
|
source: null,
|
|
@@ -76,7 +76,7 @@ class GlyphRasterizer extends Disposable {
|
|
|
76
76
|
const xSubPixelXOffset = (tokenMetadata & 0b1111) / 10;
|
|
77
77
|
const bgId = TokenMetadata.getBackground(tokenMetadata);
|
|
78
78
|
const bg = colorMap[bgId];
|
|
79
|
-
const decorationStyleSet =
|
|
79
|
+
const decorationStyleSet = this._decorationStyleCache.getStyleSet(decorationStyleSetId);
|
|
80
80
|
if (this._antiAliasing === 'subpixel') {
|
|
81
81
|
this._ctx.fillStyle = bg;
|
|
82
82
|
this._ctx.fillRect(0, 0, this._canvas.width, this._canvas.height);
|
|
@@ -19,7 +19,6 @@ import { Event } from '../../../base/common/event.js';
|
|
|
19
19
|
import { EditorOption } from '../../common/config/editorOptions.js';
|
|
20
20
|
import { InlineDecorationType } from '../../common/viewModel.js';
|
|
21
21
|
import { DecorationStyleCache } from './css/decorationStyleCache.js';
|
|
22
|
-
import { ViewportRenderStrategy } from './renderStrategy/viewportRenderStrategy.js';
|
|
23
22
|
import Severity$1 from '../../../base/common/severity.js';
|
|
24
23
|
import { observableValue } from '../../../base/common/observableInternal/observables/observableValue.js';
|
|
25
24
|
import { runOnChange } from '../../../base/common/observableInternal/utils/runOnChange.js';
|
|
@@ -49,7 +48,7 @@ let ViewGpuContext = class ViewGpuContext extends Disposable {
|
|
|
49
48
|
this._instantiationService = _instantiationService;
|
|
50
49
|
this._notificationService = _notificationService;
|
|
51
50
|
this.configurationService = configurationService;
|
|
52
|
-
this.maxGpuCols =
|
|
51
|
+
this.maxGpuCols = 2000;
|
|
53
52
|
this.canvas = createFastDomNode(document.createElement('canvas'));
|
|
54
53
|
this.canvas.setClassName('editorCanvas');
|
|
55
54
|
this._register(Event.runAndSubscribe(configurationService.onDidChangeConfiguration, e => {
|
|
@@ -70,7 +69,7 @@ let ViewGpuContext = class ViewGpuContext extends Disposable {
|
|
|
70
69
|
}).then(ref => {
|
|
71
70
|
ViewGpuContext_1.deviceSync = ref.object;
|
|
72
71
|
if (!ViewGpuContext_1._atlas) {
|
|
73
|
-
ViewGpuContext_1._atlas = this._instantiationService.createInstance(TextureAtlas, ref.object.limits.maxTextureDimension2D, undefined);
|
|
72
|
+
ViewGpuContext_1._atlas = this._instantiationService.createInstance(TextureAtlas, ref.object.limits.maxTextureDimension2D, undefined, ViewGpuContext_1.decorationStyleCache);
|
|
74
73
|
}
|
|
75
74
|
return ref.object;
|
|
76
75
|
});
|
|
@@ -52,6 +52,7 @@ export declare class ObservableCodeEditor extends Disposable {
|
|
|
52
52
|
readonly layoutInfoVerticalScrollbarWidth: IObservable<number>;
|
|
53
53
|
readonly contentWidth: IObservable<number>;
|
|
54
54
|
readonly contentHeight: IObservable<number>;
|
|
55
|
+
readonly domNode: IObservableWithChange<HTMLElement | null, void>;
|
|
55
56
|
getOption<T extends EditorOption>(id: T): IObservable<FindComputedEditorOptionValueById<T>>;
|
|
56
57
|
setDecorations(decorations: IObservable<IModelDeltaDecoration[]>): IDisposable;
|
|
57
58
|
private _widgetCounter;
|
|
@@ -61,6 +62,11 @@ export declare class ObservableCodeEditor extends Disposable {
|
|
|
61
62
|
observePosition(position: IObservable<Position | null>, store: DisposableStore): IObservable<Point | null>;
|
|
62
63
|
readonly openedPeekWidgets: import("../../base/common/observable.js").ISettableObservable<number, void>;
|
|
63
64
|
isTargetHovered(predicate: (target: IEditorMouseEvent) => boolean, store: DisposableStore): IObservable<boolean>;
|
|
65
|
+
observeLineHeightForPosition(position: IObservable<Position> | Position): IObservable<number>;
|
|
66
|
+
observeLineHeightForPosition(position: IObservable<null>): IObservable<null>;
|
|
67
|
+
observeLineHeightForLine(lineNumber: IObservable<number> | number): IObservable<number>;
|
|
68
|
+
observeLineHeightForLine(lineNumber: IObservable<null>): IObservable<null>;
|
|
69
|
+
observeLineHeightsForLineRange(lineNumber: IObservable<LineRange> | LineRange): IObservable<number[]>;
|
|
64
70
|
}
|
|
65
71
|
interface IObservableOverlayWidget {
|
|
66
72
|
get domNode(): HTMLElement;
|