@codingame/monaco-vscode-api 18.4.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +1217 -2932
- package/monaco.js +0 -3
- package/package.json +8 -8
- package/services.d.ts +12 -8
- package/services.js +12 -7
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.d.ts +83 -2
- package/vscode/src/vs/base/browser/dom.js +280 -3
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +2 -0
- package/vscode/src/vs/base/browser/domStylesheets.js +11 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +1 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +34 -18
- package/vscode/src/vs/base/browser/ui/button/button.js +4 -1
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -5
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +3 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +21 -4
- package/vscode/src/vs/base/common/arrays.d.ts +0 -1
- package/vscode/src/vs/base/common/arrays.js +1 -6
- package/vscode/src/vs/base/common/async.d.ts +1 -0
- package/vscode/src/vs/base/common/async.js +2 -1
- package/vscode/src/vs/base/common/buffer.d.ts +1 -0
- package/vscode/src/vs/base/common/buffer.js +3 -0
- package/vscode/src/vs/base/common/codicons.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +7 -0
- package/vscode/src/vs/base/common/collections.d.ts +1 -0
- package/vscode/src/vs/base/common/collections.js +14 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/dataTransfer.d.ts +1 -1
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/event.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.js +2 -2
- package/vscode/src/vs/base/common/hotReloadHelpers.js +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +1 -1
- package/vscode/src/vs/base/common/network.d.ts +1 -0
- package/vscode/src/vs/base/common/network.js +1 -0
- package/vscode/src/vs/base/common/oauth.d.ts +34 -4
- package/vscode/src/vs/base/common/oauth.js +77 -6
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/set.js +0 -1
- package/vscode/src/vs/base/common/performance.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +2 -1
- package/vscode/src/vs/base/common/types.d.ts +4 -8
- package/vscode/src/vs/base/common/types.js +3 -3
- package/vscode/src/vs/base/common/worker/webWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +8 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +18 -14
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +5 -4
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +2 -3
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +6 -0
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +38 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +9 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +4 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +18 -2
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +32 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +141 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +11 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.js +6 -0
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -2
- package/vscode/src/vs/editor/browser/view/viewController.js +5 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +3 -7
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +12 -2
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +8 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +39 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css +52 -49
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +15 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +7 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +173 -160
- package/vscode/src/vs/editor/common/config/editorOptions.js +645 -570
- package/vscode/src/vs/editor/common/config/fontInfo.js +1 -1
- package/vscode/src/vs/editor/common/core/2d/point.d.ts +5 -0
- package/vscode/src/vs/editor/common/core/2d/point.js +23 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/edits/edit.js +41 -0
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +17 -11
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +36 -9
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +63 -16
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +205 -48
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +5 -1
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +18 -2
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +3 -1
- package/vscode/src/vs/editor/common/core/text/abstractText.js +10 -1
- package/vscode/src/vs/editor/common/core/text/getPositionOffsetTransformerFromTextModel.js +2 -1
- package/vscode/src/vs/editor/common/core/text/positionToOffset.d.ts +2 -28
- package/vscode/src/vs/editor/common/core/text/positionToOffset.js +11 -92
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +37 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +104 -0
- package/vscode/src/vs/editor/common/cursor/cursor.d.ts +3 -2
- package/vscode/src/vs/editor/common/cursor/cursor.js +24 -16
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +3 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +11 -1
- package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +7 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +31 -27
- package/vscode/src/vs/editor/common/languages.js +57 -62
- package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -1
- package/vscode/src/vs/editor/common/model/editStack.js +4 -3
- package/vscode/src/vs/editor/common/model/intervalTree.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/intervalTree.js +24 -7
- package/vscode/src/vs/editor/common/model/textModel.d.ts +24 -10
- package/vscode/src/vs/editor/common/model/textModel.js +114 -53
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.d.ts +0 -3
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.js +1 -13
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +2 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.js +13 -2
- package/vscode/src/vs/editor/common/model.d.ts +8 -2
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +14 -0
- package/vscode/src/vs/editor/common/services/editorWorker.service.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +7 -0
- package/vscode/src/vs/editor/common/services/languageFeatures.service.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
- package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.js +3 -2
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +159 -157
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +160 -159
- package/vscode/src/vs/editor/common/standaloneStrings.js +50 -49
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +94 -12
- package/vscode/src/vs/editor/common/textModelEditReason.js +86 -20
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +24 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +33 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +22 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +79 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +5 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +10 -4
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +39 -12
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +6 -6
- package/vscode/src/vs/editor/common/viewModel.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel.js +2 -1
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css +2 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -5
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +10 -5
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +10 -6
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -47
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +11 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +35 -30
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.js +66 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +12 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +144 -100
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +100 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +37 -29
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +39 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +150 -162
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +9 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +13 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +103 -62
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +25 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +13 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +4 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +7 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +16 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +34 -34
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +13 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +6 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +20 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +4 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +10 -7
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.contribution.js +5 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.css +20 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +132 -0
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css +0 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +14 -12
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +3 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +24 -24
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -13
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +18 -10
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +4 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +34 -39
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +5 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +65 -70
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +5 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +79 -69
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +0 -1
- package/vscode/src/vs/platform/actions/common/actions.js +0 -1
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configuration.js +4 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +11 -11
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +11 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +9 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -3
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.d.ts +6 -1
- package/vscode/src/vs/platform/files/common/files.js +11 -7
- package/vscode/src/vs/platform/files/common/files.service.d.ts +1 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +2 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -7
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +4 -0
- package/vscode/src/vs/platform/log/common/log.js +15 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +4 -3
- package/vscode/src/vs/platform/markers/common/markers.d.ts +2 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +9 -4
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.js +6 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +1 -0
- package/vscode/src/vs/platform/notification/common/notification.js +12 -2
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +7 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +7 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +2 -2
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/commonProperties.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.d.ts +1 -0
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +3 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +2 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +7 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +1 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +5 -7
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +10 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +109 -77
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocuments.d.ts +4 -2
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +35 -5
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +34 -182
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +71 -20
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +7 -5
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +16 -7
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +20 -8
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +16 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +11 -12
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/contextkeys.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -72
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor.js +6 -6
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +157 -160
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +62 -41
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +24 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +29 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +152 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -24
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +2 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.d.ts → promptsService.d.ts} +14 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.d.ts → promptsService.service.d.ts} +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +73 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +7 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +55 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +29 -13
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +119 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +10 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +13 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +1 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +6 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +132 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -17
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +5 -1
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +6 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +3 -3
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode-dts/vscode.proposed.authProviderSpecific.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +139 -10
- package/vscode-dts/vscode.proposed.d.ts +3 -1
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +5 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +21 -4
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +1 -0
- package/vscode-dts/vscode.proposed.remoteCodingAgents.d.ts +8 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
- package/workbench.d.ts +1 -1
- package/vscode/src/vs/base/browser/domImpl/domObservable.d.ts +0 -3
- package/vscode/src/vs/base/browser/domImpl/domObservable.js +0 -16
- package/vscode/src/vs/base/browser/domImpl/n.d.ts +0 -83
- package/vscode/src/vs/base/browser/domImpl/n.js +0 -283
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +0 -20
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +0 -25
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +0 -84
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.d.ts +0 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +0 -94
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +0 -243
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +0 -426
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +0 -601
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -1185
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -235
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.js +0 -6
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -103
- /package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.js → promptsService.service.js} +0 -0
|
@@ -9,10 +9,10 @@ import { INTERNAL_AUTH_PROVIDER_PREFIX } from '../../services/authentication/com
|
|
|
9
9
|
import { createDecorator } from '../../../platform/instantiation/common/instantiation.js';
|
|
10
10
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
11
11
|
import { URI } from '../../../base/common/uri.js';
|
|
12
|
-
import { fetchDynamicRegistration, isAuthorizationTokenResponse, getClaimsFromJWT } from '../../../base/common/oauth.js';
|
|
12
|
+
import { fetchDynamicRegistration, isAuthorizationTokenResponse, isAuthorizationErrorResponse, AuthorizationErrorType, getClaimsFromJWT } from '../../../base/common/oauth.js';
|
|
13
13
|
import { IExtHostWindow } from './extHostWindow.js';
|
|
14
14
|
import { IExtHostInitDataService } from './extHostInitDataService.js';
|
|
15
|
-
import { ILoggerService } from '../../../platform/log/common/log.service.js';
|
|
15
|
+
import { ILoggerService, ILogService } from '../../../platform/log/common/log.service.js';
|
|
16
16
|
import '../../../base/common/observableInternal/index.js';
|
|
17
17
|
import { stringHash } from '../../../base/common/hash.js';
|
|
18
18
|
import { DisposableStore } from '../../../base/common/lifecycle.js';
|
|
@@ -21,21 +21,23 @@ import { encodeBase64, VSBuffer } from '../../../base/common/buffer.js';
|
|
|
21
21
|
import { equals } from '../../../base/common/arrays.js';
|
|
22
22
|
import { IExtHostProgress } from './extHostProgress.js';
|
|
23
23
|
import { isCancellationError, CancellationError } from '../../../base/common/errors.js';
|
|
24
|
-
import { raceCancellationError } from '../../../base/common/async.js';
|
|
24
|
+
import { SequencerByKey, raceCancellationError } from '../../../base/common/async.js';
|
|
25
25
|
import { observableValue } from '../../../base/common/observableInternal/observables/observableValue.js';
|
|
26
26
|
import { derivedOpts } from '../../../base/common/observableInternal/observables/derived.js';
|
|
27
27
|
import { autorun } from '../../../base/common/observableInternal/reactions/autorun.js';
|
|
28
28
|
|
|
29
29
|
const IExtHostAuthentication = ( createDecorator('IExtHostAuthentication'));
|
|
30
30
|
let ExtHostAuthentication = class ExtHostAuthentication {
|
|
31
|
-
constructor(extHostRpc, _initData, _extHostWindow, _extHostUrls, _extHostProgress, _extHostLoggerService) {
|
|
31
|
+
constructor(extHostRpc, _initData, _extHostWindow, _extHostUrls, _extHostProgress, _extHostLoggerService, _logService) {
|
|
32
32
|
this._initData = _initData;
|
|
33
33
|
this._extHostWindow = _extHostWindow;
|
|
34
34
|
this._extHostUrls = _extHostUrls;
|
|
35
35
|
this._extHostProgress = _extHostProgress;
|
|
36
36
|
this._extHostLoggerService = _extHostLoggerService;
|
|
37
|
+
this._logService = _logService;
|
|
37
38
|
this._dynamicAuthProviderCtor = DynamicAuthProvider;
|
|
38
39
|
this._authenticationProviders = ( new Map());
|
|
40
|
+
this._providerOperations = ( new SequencerByKey());
|
|
39
41
|
this._onDidChangeSessions = ( new Emitter());
|
|
40
42
|
this._getSessionTaskSingler = ( new TaskSingler());
|
|
41
43
|
this._onDidDynamicAuthProviderTokensChange = ( new Emitter());
|
|
@@ -62,48 +64,55 @@ let ExtHostAuthentication = class ExtHostAuthentication {
|
|
|
62
64
|
await this._proxy.$ensureProvider(providerId);
|
|
63
65
|
return await this._proxy.$getAccounts(providerId);
|
|
64
66
|
}
|
|
65
|
-
async removeSession(providerId, sessionId) {
|
|
66
|
-
const providerData = this._authenticationProviders.get(providerId);
|
|
67
|
-
if (!providerData) {
|
|
68
|
-
return this._proxy.$removeSession(providerId, sessionId);
|
|
69
|
-
}
|
|
70
|
-
return providerData.provider.removeSession(sessionId);
|
|
71
|
-
}
|
|
72
67
|
registerAuthenticationProvider(id, label, provider, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
void this._providerOperations.queue(id, async () => {
|
|
69
|
+
if (this._authenticationProviders.get(id)) {
|
|
70
|
+
this._logService.error(`An authentication provider with id '${id}' is already registered. The existing provider will not be replaced.`);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const listener = provider.onDidChangeSessions(e => this._proxy.$sendDidChangeSessions(id, e));
|
|
74
|
+
this._authenticationProviders.set(id, { label, provider, disposable: listener, options: options ?? { supportsMultipleAccounts: false } });
|
|
75
|
+
await this._proxy.$registerAuthenticationProvider(id, label, options?.supportsMultipleAccounts ?? false, options?.supportedAuthorizationServers);
|
|
76
|
+
});
|
|
79
77
|
return ( new Disposable(() => {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
void this._providerOperations.queue(id, async () => {
|
|
79
|
+
const providerData = this._authenticationProviders.get(id);
|
|
80
|
+
if (providerData) {
|
|
81
|
+
providerData.disposable?.dispose();
|
|
82
|
+
this._authenticationProviders.delete(id);
|
|
83
|
+
await this._proxy.$unregisterAuthenticationProvider(id);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
83
86
|
}));
|
|
84
87
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
$createSession(providerId, scopes, options) {
|
|
89
|
+
return this._providerOperations.queue(providerId, async () => {
|
|
90
|
+
const providerData = this._authenticationProviders.get(providerId);
|
|
91
|
+
if (providerData) {
|
|
92
|
+
options.authorizationServer = URI.revive(options.authorizationServer);
|
|
93
|
+
return await providerData.provider.createSession(scopes, options);
|
|
94
|
+
}
|
|
95
|
+
throw ( new Error(`Unable to find authentication provider with handle: ${providerId}`));
|
|
96
|
+
});
|
|
92
97
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
$removeSession(providerId, sessionId) {
|
|
99
|
+
return this._providerOperations.queue(providerId, async () => {
|
|
100
|
+
const providerData = this._authenticationProviders.get(providerId);
|
|
101
|
+
if (providerData) {
|
|
102
|
+
return await providerData.provider.removeSession(sessionId);
|
|
103
|
+
}
|
|
104
|
+
throw ( new Error(`Unable to find authentication provider with handle: ${providerId}`));
|
|
105
|
+
});
|
|
99
106
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
$getSessions(providerId, scopes, options) {
|
|
108
|
+
return this._providerOperations.queue(providerId, async () => {
|
|
109
|
+
const providerData = this._authenticationProviders.get(providerId);
|
|
110
|
+
if (providerData) {
|
|
111
|
+
options.authorizationServer = URI.revive(options.authorizationServer);
|
|
112
|
+
return await providerData.provider.getSessions(scopes, options);
|
|
113
|
+
}
|
|
114
|
+
throw ( new Error(`Unable to find authentication provider with handle: ${providerId}`));
|
|
115
|
+
});
|
|
107
116
|
}
|
|
108
117
|
$onDidChangeAuthenticationSessions(id, label, extensionIdFilter) {
|
|
109
118
|
if (!id.startsWith(INTERNAL_AUTH_PROVIDER_PREFIX)) {
|
|
@@ -112,20 +121,18 @@ let ExtHostAuthentication = class ExtHostAuthentication {
|
|
|
112
121
|
return Promise.resolve();
|
|
113
122
|
}
|
|
114
123
|
$onDidUnregisterAuthenticationProvider(id) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
providerData
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
124
|
+
return this._providerOperations.queue(id, async () => {
|
|
125
|
+
const providerData = this._authenticationProviders.get(id);
|
|
126
|
+
if (providerData) {
|
|
127
|
+
providerData.disposable?.dispose();
|
|
128
|
+
this._authenticationProviders.delete(id);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
121
131
|
}
|
|
122
132
|
async $registerDynamicAuthProvider(authorizationServerComponents, serverMetadata, resourceMetadata, clientId, initialTokens) {
|
|
123
133
|
if (!clientId) {
|
|
124
|
-
if (!serverMetadata.registration_endpoint) {
|
|
125
|
-
throw ( new Error('Server does not support dynamic registration'));
|
|
126
|
-
}
|
|
127
134
|
try {
|
|
128
|
-
const registration = await fetchDynamicRegistration(serverMetadata
|
|
135
|
+
const registration = await fetchDynamicRegistration(serverMetadata, this._initData.environment.appName, resourceMetadata?.scopes_supported);
|
|
129
136
|
clientId = registration.client_id;
|
|
130
137
|
}
|
|
131
138
|
catch (err) {
|
|
@@ -133,14 +140,18 @@ let ExtHostAuthentication = class ExtHostAuthentication {
|
|
|
133
140
|
}
|
|
134
141
|
}
|
|
135
142
|
const provider = new this._dynamicAuthProviderCtor(this._extHostWindow, this._extHostUrls, this._initData, this._extHostProgress, this._extHostLoggerService, this._proxy, URI.revive(authorizationServerComponents), serverMetadata, resourceMetadata, clientId, this._onDidDynamicAuthProviderTokensChange, initialTokens || []);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
await this._providerOperations.queue(provider.id, async () => {
|
|
144
|
+
this._authenticationProviders.set(provider.id, {
|
|
145
|
+
label: provider.label,
|
|
146
|
+
provider,
|
|
147
|
+
disposable: Disposable.from(provider, provider.onDidChangeSessions(e => this._proxy.$sendDidChangeSessions(provider.id, e)), provider.onDidChangeClientId(() => this._proxy.$sendDidChangeDynamicProviderInfo({
|
|
148
|
+
providerId: provider.id,
|
|
149
|
+
clientId: provider.clientId
|
|
150
|
+
}))),
|
|
151
|
+
options: { supportsMultipleAccounts: false }
|
|
152
|
+
});
|
|
153
|
+
await this._proxy.$registerDynamicAuthenticationProvider(provider.id, provider.label, provider.authorizationServer, provider.clientId);
|
|
142
154
|
});
|
|
143
|
-
await this._proxy.$registerDynamicAuthenticationProvider(provider.id, provider.label, provider.authorizationServer, provider.clientId);
|
|
144
155
|
return provider.id;
|
|
145
156
|
}
|
|
146
157
|
async $onDidChangeDynamicAuthProviderTokens(authProviderId, clientId, tokens) {
|
|
@@ -153,7 +164,8 @@ ExtHostAuthentication = ( __decorate([
|
|
|
153
164
|
( __param(2, IExtHostWindow)),
|
|
154
165
|
( __param(3, IExtHostUrlsService)),
|
|
155
166
|
( __param(4, IExtHostProgress)),
|
|
156
|
-
( __param(5, ILoggerService))
|
|
167
|
+
( __param(5, ILoggerService)),
|
|
168
|
+
( __param(6, ILogService))
|
|
157
169
|
], ExtHostAuthentication));
|
|
158
170
|
class TaskSingler {
|
|
159
171
|
constructor() {
|
|
@@ -170,7 +182,7 @@ class TaskSingler {
|
|
|
170
182
|
}
|
|
171
183
|
}
|
|
172
184
|
let DynamicAuthProvider = class DynamicAuthProvider {
|
|
173
|
-
constructor(_extHostWindow, _extHostUrls, _initData, _extHostProgress, loggerService, _proxy, authorizationServer, _serverMetadata, _resourceMetadata,
|
|
185
|
+
constructor(_extHostWindow, _extHostUrls, _initData, _extHostProgress, loggerService, _proxy, authorizationServer, _serverMetadata, _resourceMetadata, _clientId, onDidDynamicAuthProviderTokensChange, initialTokens) {
|
|
174
186
|
this._extHostWindow = _extHostWindow;
|
|
175
187
|
this._extHostUrls = _extHostUrls;
|
|
176
188
|
this._initData = _initData;
|
|
@@ -179,30 +191,35 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
179
191
|
this.authorizationServer = authorizationServer;
|
|
180
192
|
this._serverMetadata = _serverMetadata;
|
|
181
193
|
this._resourceMetadata = _resourceMetadata;
|
|
182
|
-
this.
|
|
194
|
+
this._clientId = _clientId;
|
|
183
195
|
this._onDidChangeSessions = ( new Emitter());
|
|
184
196
|
this.onDidChangeSessions = this._onDidChangeSessions.event;
|
|
197
|
+
this._onDidChangeClientId = ( new Emitter());
|
|
198
|
+
this.onDidChangeClientId = this._onDidChangeClientId.event;
|
|
185
199
|
const stringifiedServer = ( authorizationServer.toString(true));
|
|
186
200
|
this.id = _resourceMetadata?.resource
|
|
187
201
|
? stringifiedServer + ' ' + _resourceMetadata?.resource
|
|
188
202
|
: stringifiedServer;
|
|
189
203
|
this.label = _resourceMetadata?.resource_name ?? this.authorizationServer.authority;
|
|
190
|
-
this._logger = loggerService.createLogger(
|
|
204
|
+
this._logger = loggerService.createLogger(this.id, { name: this.label });
|
|
191
205
|
this._disposable = ( new DisposableStore());
|
|
192
206
|
this._disposable.add(this._onDidChangeSessions);
|
|
193
207
|
const scopedEvent = Event.chain(onDidDynamicAuthProviderTokensChange.event, $ => ( $
|
|
194
|
-
.filter(e => e.authProviderId === this.id && e.clientId ===
|
|
208
|
+
.filter(e => e.authProviderId === this.id && e.clientId === _clientId)
|
|
195
209
|
.map(e => e.tokens)));
|
|
196
210
|
this._tokenStore = this._disposable.add(( new TokenStore({
|
|
197
211
|
onDidChange: scopedEvent,
|
|
198
|
-
set: (tokens) => _proxy.$setSessionsForDynamicAuthProvider(
|
|
212
|
+
set: (tokens) => _proxy.$setSessionsForDynamicAuthProvider(this.id, this.clientId, tokens),
|
|
199
213
|
}, initialTokens, this._logger)));
|
|
200
214
|
this._disposable.add(this._tokenStore.onDidChangeSessions(e => this._onDidChangeSessions.fire(e)));
|
|
201
215
|
this._createFlows = [{
|
|
202
|
-
label: ( localize(
|
|
216
|
+
label: ( localize(2590, "URL Handler")),
|
|
203
217
|
handler: (scopes, progress, token) => this._createWithUrlHandler(scopes, progress, token)
|
|
204
218
|
}];
|
|
205
219
|
}
|
|
220
|
+
get clientId() {
|
|
221
|
+
return this._clientId;
|
|
222
|
+
}
|
|
206
223
|
async getSessions(scopes, _options) {
|
|
207
224
|
this._logger.info(`Getting sessions for scopes: ${scopes?.join(' ') ?? 'all'}`);
|
|
208
225
|
if (!scopes) {
|
|
@@ -260,7 +277,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
260
277
|
try {
|
|
261
278
|
token = await this._extHostProgress.withProgressFromSource({ label: this.label, id: this.id }, {
|
|
262
279
|
location: ProgressLocation.Notification,
|
|
263
|
-
title: ( localize(
|
|
280
|
+
title: ( localize(2591, "Authenticating to '{0}'", this.label)),
|
|
264
281
|
cancellable: true
|
|
265
282
|
}, (progress, token) => handler(scopes, progress, token));
|
|
266
283
|
if (token) {
|
|
@@ -274,13 +291,13 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
274
291
|
}
|
|
275
292
|
const message = isCancellationError(err)
|
|
276
293
|
? ( localize(
|
|
277
|
-
|
|
294
|
+
2592,
|
|
278
295
|
"Having trouble authenticating to '{0}'? Would you like to try a different way? ({1})",
|
|
279
296
|
this.label,
|
|
280
297
|
nextMode
|
|
281
298
|
))
|
|
282
299
|
: ( localize(
|
|
283
|
-
|
|
300
|
+
2593,
|
|
284
301
|
"You have not yet finished authenticating to '{0}'. Would you like to try a different way? ({1})",
|
|
285
302
|
this.label,
|
|
286
303
|
nextMode
|
|
@@ -337,7 +354,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
337
354
|
throw ( new Error(`Failed to create external URI: ${error}`));
|
|
338
355
|
}
|
|
339
356
|
const authorizationUrl = ( new URL(this._serverMetadata.authorization_endpoint));
|
|
340
|
-
authorizationUrl.searchParams.append('client_id', this.
|
|
357
|
+
authorizationUrl.searchParams.append('client_id', this._clientId);
|
|
341
358
|
authorizationUrl.searchParams.append('response_type', 'code');
|
|
342
359
|
authorizationUrl.searchParams.append('state', ( state.toString()));
|
|
343
360
|
authorizationUrl.searchParams.append('code_challenge', codeChallenge);
|
|
@@ -359,7 +376,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
359
376
|
throw ( new CancellationError());
|
|
360
377
|
}
|
|
361
378
|
progress.report({
|
|
362
|
-
message: ( localize(
|
|
379
|
+
message: ( localize(2594, "Complete the authentication in the browser window that has opened.")),
|
|
363
380
|
});
|
|
364
381
|
let code;
|
|
365
382
|
try {
|
|
@@ -408,7 +425,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
408
425
|
throw ( new Error('Token endpoint not available in server metadata'));
|
|
409
426
|
}
|
|
410
427
|
const tokenRequest = ( new URLSearchParams());
|
|
411
|
-
tokenRequest.append('client_id', this.
|
|
428
|
+
tokenRequest.append('client_id', this._clientId);
|
|
412
429
|
tokenRequest.append('grant_type', 'authorization_code');
|
|
413
430
|
tokenRequest.append('code', code);
|
|
414
431
|
tokenRequest.append('redirect_uri', redirectUri);
|
|
@@ -431,6 +448,11 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
431
448
|
if (isAuthorizationTokenResponse(result)) {
|
|
432
449
|
return result;
|
|
433
450
|
}
|
|
451
|
+
else if (isAuthorizationErrorResponse(result) && result.error === AuthorizationErrorType.InvalidClient) {
|
|
452
|
+
this._logger.warn(`Client ID (${this._clientId}) was invalid, generated a new one.`);
|
|
453
|
+
await this._generateNewClientId();
|
|
454
|
+
throw ( new Error(`Client ID was invalid, generated a new one. Please try again.`));
|
|
455
|
+
}
|
|
434
456
|
throw ( new Error(`Invalid authorization token response: ${JSON.stringify(result)}`));
|
|
435
457
|
}
|
|
436
458
|
async exchangeRefreshTokenForToken(refreshToken) {
|
|
@@ -438,7 +460,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
438
460
|
throw ( new Error('Token endpoint not available in server metadata'));
|
|
439
461
|
}
|
|
440
462
|
const tokenRequest = ( new URLSearchParams());
|
|
441
|
-
tokenRequest.append('client_id', this.
|
|
463
|
+
tokenRequest.append('client_id', this._clientId);
|
|
442
464
|
tokenRequest.append('grant_type', 'refresh_token');
|
|
443
465
|
tokenRequest.append('refresh_token', refreshToken);
|
|
444
466
|
const response = await fetch(this._serverMetadata.token_endpoint, {
|
|
@@ -449,12 +471,6 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
449
471
|
},
|
|
450
472
|
body: ( tokenRequest.toString())
|
|
451
473
|
});
|
|
452
|
-
if (!response.ok) {
|
|
453
|
-
const text = await response.text();
|
|
454
|
-
throw ( new Error(
|
|
455
|
-
`Token exchange failed: ${response.status} ${response.statusText} - ${text}`
|
|
456
|
-
));
|
|
457
|
-
}
|
|
458
474
|
const result = await response.json();
|
|
459
475
|
if (isAuthorizationTokenResponse(result)) {
|
|
460
476
|
return {
|
|
@@ -462,8 +478,24 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
462
478
|
created_at: Date.now(),
|
|
463
479
|
};
|
|
464
480
|
}
|
|
481
|
+
else if (isAuthorizationErrorResponse(result) && result.error === AuthorizationErrorType.InvalidClient) {
|
|
482
|
+
this._logger.warn(`Client ID (${this._clientId}) was invalid, generated a new one.`);
|
|
483
|
+
await this._generateNewClientId();
|
|
484
|
+
throw ( new Error(`Client ID was invalid, generated a new one. Please try again.`));
|
|
485
|
+
}
|
|
465
486
|
throw ( new Error(`Invalid authorization token response: ${JSON.stringify(result)}`));
|
|
466
487
|
}
|
|
488
|
+
async _generateNewClientId() {
|
|
489
|
+
try {
|
|
490
|
+
const registration = await fetchDynamicRegistration(this._serverMetadata, this._initData.environment.appName, this._resourceMetadata?.scopes_supported);
|
|
491
|
+
this._clientId = registration.client_id;
|
|
492
|
+
this._onDidChangeClientId.fire();
|
|
493
|
+
}
|
|
494
|
+
catch (err) {
|
|
495
|
+
this._logger.error(`Failed to fetch new client ID: ${err}`);
|
|
496
|
+
throw ( new Error(`Failed to fetch new client ID: ${err}`));
|
|
497
|
+
}
|
|
498
|
+
}
|
|
467
499
|
};
|
|
468
500
|
DynamicAuthProvider = ( __decorate([
|
|
469
501
|
( __param(0, IExtHostWindow)),
|
|
@@ -3,7 +3,7 @@ import { CancellationToken } from "../../../base/common/cancellation.js";
|
|
|
3
3
|
import { Disposable } from "../../../base/common/lifecycle.js";
|
|
4
4
|
import { IExtensionDescription } from "../../../platform/extensions/common/extensions.js";
|
|
5
5
|
import { ILogService } from "../../../platform/log/common/log.service.js";
|
|
6
|
-
import { IChatAgentRequest, IChatAgentResult } from "
|
|
6
|
+
import { IChatAgentRequest, IChatAgentResult } from "@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
7
7
|
import { IChatRelatedFile, IChatRequestDraft } from "../../contrib/chat/common/chatEditingService.js";
|
|
8
8
|
import { IChatFollowup, IChatUserActionEvent, IChatVoteAction } from "../../contrib/chat/common/chatService.js";
|
|
9
9
|
import { ChatAgentLocation } from "../../contrib/chat/common/constants.js";
|
|
@@ -63,4 +63,5 @@ export declare class ExtHostChatAgents2 extends Disposable implements ExtHostCha
|
|
|
63
63
|
$acceptAction(handle: number, result: IChatAgentResult, event: IChatUserActionEvent): void;
|
|
64
64
|
$invokeCompletionProvider(handle: number, query: string, token: CancellationToken): Promise<IChatAgentCompletionItem[]>;
|
|
65
65
|
$provideChatTitle(handle: number, context: IChatAgentHistoryEntryDto[], token: CancellationToken): Promise<string | undefined>;
|
|
66
|
+
$provideChatSummary(handle: number, context: IChatAgentHistoryEntryDto[], token: CancellationToken): Promise<string | undefined>;
|
|
66
67
|
}
|
|
@@ -603,6 +603,14 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
603
603
|
const history = await this.prepareHistoryTurns(agent.extension, agent.id, { history: context });
|
|
604
604
|
return await agent.provideTitle({ history }, token);
|
|
605
605
|
}
|
|
606
|
+
async $provideChatSummary(handle, context, token) {
|
|
607
|
+
const agent = this._agents.get(handle);
|
|
608
|
+
if (!agent) {
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
const history = await this.prepareHistoryTurns(agent.extension, agent.id, { history: context });
|
|
612
|
+
return await agent.provideSummary({ history }, token);
|
|
613
|
+
}
|
|
606
614
|
}
|
|
607
615
|
class ExtHostParticipantDetector {
|
|
608
616
|
constructor(extension, provider) {
|
|
@@ -660,6 +668,12 @@ class ExtHostChatAgent {
|
|
|
660
668
|
}
|
|
661
669
|
return (await this._titleProvider.provideChatTitle(context, token)) ?? undefined;
|
|
662
670
|
}
|
|
671
|
+
async provideSummary(context, token) {
|
|
672
|
+
if (!this._summarizer) {
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
return (await this._summarizer.provideChatSummary(context, token)) ?? undefined;
|
|
676
|
+
}
|
|
663
677
|
get apiAgent() {
|
|
664
678
|
let disposed = false;
|
|
665
679
|
let updateScheduled = false;
|
|
@@ -792,6 +806,14 @@ class ExtHostChatAgent {
|
|
|
792
806
|
checkProposedApiEnabled(that.extension, 'defaultChatParticipant');
|
|
793
807
|
return that._titleProvider;
|
|
794
808
|
},
|
|
809
|
+
set summarizer(v) {
|
|
810
|
+
checkProposedApiEnabled(that.extension, 'defaultChatParticipant');
|
|
811
|
+
that._summarizer = v;
|
|
812
|
+
},
|
|
813
|
+
get summarizer() {
|
|
814
|
+
checkProposedApiEnabled(that.extension, 'defaultChatParticipant');
|
|
815
|
+
return that._summarizer;
|
|
816
|
+
},
|
|
795
817
|
get onDidChangePauseState() {
|
|
796
818
|
checkProposedApiEnabled(that.extension, 'chatParticipantAdditions');
|
|
797
819
|
return that._pauseStateEmitter.event;
|
|
@@ -224,6 +224,9 @@ let ExtHostCommands = class ExtHostCommands {
|
|
|
224
224
|
if (!command.extension) {
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
+
if (id.startsWith('code.copilot.logStructured')) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
227
230
|
this.#telemetry.$publicLog2('Extension:ActionExecuted', {
|
|
228
231
|
extensionId: command.extension.identifier.value,
|
|
229
232
|
id: ( new TelemetryTrustedValue(id)),
|
|
@@ -6,7 +6,7 @@ import { ExtHostDocuments } from "./extHostDocuments.js";
|
|
|
6
6
|
import { IExtensionStoragePaths } from "./extHostStoragePaths.js";
|
|
7
7
|
import { ExtHostWebviews } from "./extHostWebview.js";
|
|
8
8
|
import { ExtHostWebviewPanels } from "./extHostWebviewPanels.js";
|
|
9
|
-
import { EditorGroupColumn } from "@codingame/monaco-vscode-
|
|
9
|
+
import { EditorGroupColumn } from "@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common/vscode/vs/workbench/services/editor/common/editorGroupColumn";
|
|
10
10
|
import type * as vscode from "vscode";
|
|
11
11
|
import * as extHostProtocol from "./extHost.protocol.js";
|
|
12
12
|
export declare class ExtHostCustomEditors implements extHostProtocol.ExtHostCustomEditorsShape {
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { Event } from "../../../base/common/event.js";
|
|
2
2
|
import { URI, UriComponents } from "../../../base/common/uri.js";
|
|
3
|
-
import { IModelChangedEvent } from "../../../editor/common/model/mirrorTextModel.js";
|
|
4
3
|
import { ExtHostDocumentsShape, IMainContext } from "./extHost.protocol.js";
|
|
5
4
|
import { ExtHostDocumentData } from "./extHostDocumentData.js";
|
|
6
5
|
import { ExtHostDocumentsAndEditors } from "./extHostDocumentsAndEditors.js";
|
|
7
6
|
import type * as vscode from "vscode";
|
|
7
|
+
import { ISerializedModelContentChangedEvent } from "../../../editor/common/textModelEvents.js";
|
|
8
8
|
export declare class ExtHostDocuments implements ExtHostDocumentsShape {
|
|
9
9
|
private readonly _onDidAddDocument;
|
|
10
10
|
private readonly _onDidRemoveDocument;
|
|
11
11
|
private readonly _onDidChangeDocument;
|
|
12
|
+
private readonly _onDidChangeDocumentWithReason;
|
|
12
13
|
private readonly _onDidSaveDocument;
|
|
13
14
|
readonly onDidAddDocument: Event<vscode.TextDocument>;
|
|
14
15
|
readonly onDidRemoveDocument: Event<vscode.TextDocument>;
|
|
15
16
|
readonly onDidChangeDocument: Event<vscode.TextDocumentChangeEvent>;
|
|
17
|
+
readonly onDidChangeDocumentWithReason: Event<vscode.TextDocumentChangeEvent>;
|
|
16
18
|
readonly onDidSaveDocument: Event<vscode.TextDocument>;
|
|
17
19
|
private readonly _toDispose;
|
|
18
20
|
private _proxy;
|
|
@@ -35,6 +37,6 @@ export declare class ExtHostDocuments implements ExtHostDocumentsShape {
|
|
|
35
37
|
$acceptModelSaved(uriComponents: UriComponents): void;
|
|
36
38
|
$acceptDirtyStateChanged(uriComponents: UriComponents, isDirty: boolean): void;
|
|
37
39
|
$acceptEncodingChanged(uriComponents: UriComponents, encoding: string): void;
|
|
38
|
-
$acceptModelChanged(uriComponents: UriComponents, events:
|
|
40
|
+
$acceptModelChanged(uriComponents: UriComponents, events: ISerializedModelContentChangedEvent, isDirty: boolean): void;
|
|
39
41
|
setWordDefinitionFor(languageId: string, wordDefinition: RegExp | undefined): void;
|
|
40
42
|
}
|
|
@@ -5,7 +5,7 @@ import { URI } from '../../../base/common/uri.js';
|
|
|
5
5
|
import { MainContext } from './extHost.protocol.js';
|
|
6
6
|
import { setWordDefinitionFor } from './extHostDocumentData.js';
|
|
7
7
|
import { Range } from './extHostTypeConverters.js';
|
|
8
|
-
import {
|
|
8
|
+
import { assertReturnsDefined } from '../../../base/common/types.js';
|
|
9
9
|
import { deepFreeze } from '../../../base/common/objects.js';
|
|
10
10
|
import { TextDocumentChangeReason } from './extHostTypes.js';
|
|
11
11
|
|
|
@@ -14,10 +14,12 @@ class ExtHostDocuments {
|
|
|
14
14
|
this._onDidAddDocument = ( new Emitter());
|
|
15
15
|
this._onDidRemoveDocument = ( new Emitter());
|
|
16
16
|
this._onDidChangeDocument = ( new Emitter());
|
|
17
|
+
this._onDidChangeDocumentWithReason = ( new Emitter());
|
|
17
18
|
this._onDidSaveDocument = ( new Emitter());
|
|
18
19
|
this.onDidAddDocument = this._onDidAddDocument.event;
|
|
19
20
|
this.onDidRemoveDocument = this._onDidRemoveDocument.event;
|
|
20
21
|
this.onDidChangeDocument = this._onDidChangeDocument.event;
|
|
22
|
+
this.onDidChangeDocumentWithReason = this._onDidChangeDocumentWithReason.event;
|
|
21
23
|
this.onDidSaveDocument = this._onDidSaveDocument.event;
|
|
22
24
|
this._toDispose = ( new DisposableStore());
|
|
23
25
|
this._documentLoader = ( new Map());
|
|
@@ -67,7 +69,7 @@ class ExtHostDocuments {
|
|
|
67
69
|
promise = this._proxy.$tryOpenDocument(uri, options).then(uriData => {
|
|
68
70
|
this._documentLoader.delete(( uri.toString()));
|
|
69
71
|
const canonicalUri = URI.revive(uriData);
|
|
70
|
-
return
|
|
72
|
+
return assertReturnsDefined(this._documentsAndEditors.getDocument(canonicalUri));
|
|
71
73
|
}, err => {
|
|
72
74
|
this._documentLoader.delete(( uri.toString()));
|
|
73
75
|
return Promise.reject(err);
|
|
@@ -118,7 +120,13 @@ class ExtHostDocuments {
|
|
|
118
120
|
this._onDidChangeDocument.fire({
|
|
119
121
|
document: data.document,
|
|
120
122
|
contentChanges: [],
|
|
121
|
-
reason: undefined
|
|
123
|
+
reason: undefined,
|
|
124
|
+
});
|
|
125
|
+
this._onDidChangeDocumentWithReason.fire({
|
|
126
|
+
document: data.document,
|
|
127
|
+
contentChanges: [],
|
|
128
|
+
reason: undefined,
|
|
129
|
+
detailedReason: undefined,
|
|
122
130
|
});
|
|
123
131
|
}
|
|
124
132
|
$acceptEncodingChanged(uriComponents, encoding) {
|
|
@@ -131,7 +139,13 @@ class ExtHostDocuments {
|
|
|
131
139
|
this._onDidChangeDocument.fire({
|
|
132
140
|
document: data.document,
|
|
133
141
|
contentChanges: [],
|
|
134
|
-
reason: undefined
|
|
142
|
+
reason: undefined,
|
|
143
|
+
});
|
|
144
|
+
this._onDidChangeDocumentWithReason.fire({
|
|
145
|
+
document: data.document,
|
|
146
|
+
contentChanges: [],
|
|
147
|
+
reason: undefined,
|
|
148
|
+
detailedReason: undefined,
|
|
135
149
|
});
|
|
136
150
|
}
|
|
137
151
|
$acceptModelChanged(uriComponents, events, isDirty) {
|
|
@@ -159,7 +173,23 @@ class ExtHostDocuments {
|
|
|
159
173
|
text: change.text
|
|
160
174
|
};
|
|
161
175
|
})),
|
|
162
|
-
reason
|
|
176
|
+
reason,
|
|
177
|
+
}));
|
|
178
|
+
this._onDidChangeDocumentWithReason.fire(deepFreeze({
|
|
179
|
+
document: data.document,
|
|
180
|
+
contentChanges: ( events.changes.map((change) => {
|
|
181
|
+
return {
|
|
182
|
+
range: Range.to(change.range),
|
|
183
|
+
rangeOffset: change.rangeOffset,
|
|
184
|
+
rangeLength: change.rangeLength,
|
|
185
|
+
text: change.text
|
|
186
|
+
};
|
|
187
|
+
})),
|
|
188
|
+
reason,
|
|
189
|
+
detailedReason: events.detailedReason ? {
|
|
190
|
+
source: events.detailedReason.source,
|
|
191
|
+
metadata: events.detailedReason,
|
|
192
|
+
} : undefined,
|
|
163
193
|
}));
|
|
164
194
|
}
|
|
165
195
|
setWordDefinitionFor(languageId, wordDefinition) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
3
|
import { diffSets } from '../../../base/common/collections.js';
|
|
4
4
|
import { Emitter } from '../../../base/common/event.js';
|
|
5
|
-
import {
|
|
5
|
+
import { assertReturnsDefined } from '../../../base/common/types.js';
|
|
6
6
|
import { URI } from '../../../base/common/uri.js';
|
|
7
7
|
import { createDecorator } from '../../../platform/instantiation/common/instantiation.js';
|
|
8
8
|
import { TabInputKind, TabModelOperationKind, MainContext } from './extHost.protocol.js';
|
|
@@ -204,7 +204,7 @@ let ExtHostEditorTabs = class ExtHostEditorTabs {
|
|
|
204
204
|
},
|
|
205
205
|
get activeTabGroup() {
|
|
206
206
|
const activeTabGroupId = that._activeGroupId;
|
|
207
|
-
const activeTabGroup =
|
|
207
|
+
const activeTabGroup = assertReturnsDefined(that._extHostTabGroups.find(candidate => candidate.groupId === activeTabGroupId)?.apiObject);
|
|
208
208
|
return activeTabGroup;
|
|
209
209
|
},
|
|
210
210
|
close: async (tabOrTabGroup, preserveFocus) => {
|
|
@@ -241,7 +241,7 @@ let ExtHostEditorTabs = class ExtHostEditorTabs {
|
|
|
241
241
|
}
|
|
242
242
|
return group;
|
|
243
243
|
}));
|
|
244
|
-
const activeTabGroupId =
|
|
244
|
+
const activeTabGroupId = assertReturnsDefined(tabGroups.find(group => group.isActive === true)?.groupId);
|
|
245
245
|
if (activeTabGroupId !== undefined && this._activeGroupId !== activeTabGroupId) {
|
|
246
246
|
this._activeGroupId = activeTabGroupId;
|
|
247
247
|
}
|
|
@@ -415,8 +415,7 @@ let AbstractExtHostExtensionService = AbstractExtHostExtensionService_1 = class
|
|
|
415
415
|
try {
|
|
416
416
|
activationTimesBuilder.activateCallStart();
|
|
417
417
|
logService.trace(`ExtensionService#_callActivateOptional ${extensionId.value}`);
|
|
418
|
-
const
|
|
419
|
-
const activateResult = extensionModule.activate.apply(scope, [context]);
|
|
418
|
+
const activateResult = extensionModule.activate.apply(globalThis, [context]);
|
|
420
419
|
activationTimesBuilder.activateCallStop();
|
|
421
420
|
activationTimesBuilder.activateResolveStart();
|
|
422
421
|
return Promise.resolve(activateResult).then((value) => {
|
|
@@ -541,7 +540,7 @@ let AbstractExtHostExtensionService = AbstractExtHostExtensionService_1 = class
|
|
|
541
540
|
async _doHandleExtensionTests() {
|
|
542
541
|
const { extensionDevelopmentLocationURI, extensionTestsLocationURI } = this._initData.environment;
|
|
543
542
|
if (!extensionDevelopmentLocationURI || !extensionTestsLocationURI) {
|
|
544
|
-
throw ( new Error(( localize(
|
|
543
|
+
throw ( new Error(( localize(2596, "Cannot load test runner."))));
|
|
545
544
|
}
|
|
546
545
|
const extensionDescription = (await this.getExtensionPathIndex()).findSubstr(extensionTestsLocationURI);
|
|
547
546
|
const isESM = this._isESM(extensionDescription, extensionTestsLocationURI.path);
|
|
@@ -550,7 +549,7 @@ let AbstractExtHostExtensionService = AbstractExtHostExtensionService_1 = class
|
|
|
550
549
|
: this._loadCommonJSModule(null, extensionTestsLocationURI, ( new ExtensionActivationTimesBuilder(false))));
|
|
551
550
|
if (!testRunner || typeof testRunner.run !== 'function') {
|
|
552
551
|
throw ( new Error(( localize(
|
|
553
|
-
|
|
552
|
+
2597,
|
|
554
553
|
"Path {0} does not point to a valid extension test runner.",
|
|
555
554
|
(extensionTestsLocationURI.toString())
|
|
556
555
|
))));
|
|
@@ -104,7 +104,6 @@ export declare class ExtHostLanguageFeatures implements extHostProtocol.ExtHostL
|
|
|
104
104
|
$releaseCompletionItems(handle: number, id: number): void;
|
|
105
105
|
registerInlineCompletionsProvider(extension: IExtensionDescription, selector: vscode.DocumentSelector, provider: vscode.InlineCompletionItemProvider, metadata: vscode.InlineCompletionItemProviderMetadata | undefined): vscode.Disposable;
|
|
106
106
|
$provideInlineCompletions(handle: number, resource: UriComponents, position: IPosition, context: languages.InlineCompletionContext, token: CancellationToken): Promise<extHostProtocol.IdentifiableInlineCompletions | undefined>;
|
|
107
|
-
$provideInlineEditsForRange(handle: number, resource: UriComponents, range: IRange, context: languages.InlineCompletionContext, token: CancellationToken): Promise<extHostProtocol.IdentifiableInlineCompletions | undefined>;
|
|
108
107
|
$handleInlineCompletionDidShow(handle: number, pid: number, idx: number, updatedInsertText: string): void;
|
|
109
108
|
$handleInlineCompletionPartialAccept(handle: number, pid: number, idx: number, acceptedCharacters: number, info: languages.PartialAcceptInfo): void;
|
|
110
109
|
$handleInlineCompletionEndOfLifetime(handle: number, pid: number, idx: number, reason: languages.InlineCompletionEndOfLifeReason<{
|
|
@@ -112,10 +111,7 @@ export declare class ExtHostLanguageFeatures implements extHostProtocol.ExtHostL
|
|
|
112
111
|
idx: number;
|
|
113
112
|
}>): void;
|
|
114
113
|
$handleInlineCompletionRejection(handle: number, pid: number, idx: number): void;
|
|
115
|
-
$freeInlineCompletionsList(handle: number, pid: number): void;
|
|
116
|
-
registerInlineEditProvider(extension: IExtensionDescription, selector: vscode.DocumentSelector, provider: vscode.InlineEditProvider): vscode.Disposable;
|
|
117
|
-
$provideInlineEdit(handle: number, resource: UriComponents, context: languages.IInlineEditContext, token: CancellationToken): Promise<extHostProtocol.IdentifiableInlineEdit | undefined>;
|
|
118
|
-
$freeInlineEdit(handle: number, pid: number): void;
|
|
114
|
+
$freeInlineCompletionsList(handle: number, pid: number, reason: languages.InlineCompletionsDisposeReason): void;
|
|
119
115
|
registerSignatureHelpProvider(extension: IExtensionDescription, selector: vscode.DocumentSelector, provider: vscode.SignatureHelpProvider, metadataOrTriggerChars: string[] | vscode.SignatureHelpProviderMetadata): vscode.Disposable;
|
|
120
116
|
$provideSignatureHelp(handle: number, resource: UriComponents, position: IPosition, context: extHostProtocol.ISignatureHelpContextDto, token: CancellationToken): Promise<extHostProtocol.ISignatureHelpDto | undefined>;
|
|
121
117
|
$releaseSignatureHelp(handle: number, id: number): void;
|