@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
|
@@ -25,7 +25,7 @@ class ShowNextInlineSuggestionAction extends EditorAction {
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super({
|
|
27
27
|
id: ShowNextInlineSuggestionAction.ID,
|
|
28
|
-
label: ( localize2(
|
|
28
|
+
label: ( localize2(1248, "Show Next Inline Suggestion")),
|
|
29
29
|
precondition: ( ContextKeyExpr.and(
|
|
30
30
|
EditorContextKeys.writable,
|
|
31
31
|
InlineCompletionContextKeys.inlineSuggestionVisible
|
|
@@ -46,7 +46,7 @@ class ShowPreviousInlineSuggestionAction extends EditorAction {
|
|
|
46
46
|
constructor() {
|
|
47
47
|
super({
|
|
48
48
|
id: ShowPreviousInlineSuggestionAction.ID,
|
|
49
|
-
label: ( localize2(
|
|
49
|
+
label: ( localize2(1249, "Show Previous Inline Suggestion")),
|
|
50
50
|
precondition: ( ContextKeyExpr.and(
|
|
51
51
|
EditorContextKeys.writable,
|
|
52
52
|
InlineCompletionContextKeys.inlineSuggestionVisible
|
|
@@ -66,7 +66,7 @@ class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
66
66
|
constructor() {
|
|
67
67
|
super({
|
|
68
68
|
id: 'editor.action.inlineSuggest.trigger',
|
|
69
|
-
label: ( localize2(
|
|
69
|
+
label: ( localize2(1250, "Trigger Inline Suggestion")),
|
|
70
70
|
precondition: EditorContextKeys.writable
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -82,7 +82,7 @@ class ExplicitTriggerInlineEditAction extends EditorAction {
|
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: 'editor.action.inlineSuggest.triggerInlineEditExplicit',
|
|
85
|
-
label: ( localize2(
|
|
85
|
+
label: ( localize2(1251, "Trigger Next Edit Suggestion")),
|
|
86
86
|
precondition: EditorContextKeys.writable,
|
|
87
87
|
});
|
|
88
88
|
}
|
|
@@ -93,7 +93,7 @@ class ExplicitTriggerInlineEditAction extends EditorAction {
|
|
|
93
93
|
if (!controller?.model.get()?.inlineEditAvailable.get()) {
|
|
94
94
|
notificationService.notify({
|
|
95
95
|
severity: Severity$1.Info,
|
|
96
|
-
message: ( localize(
|
|
96
|
+
message: ( localize(1252, "No inline edit is available."))
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -114,7 +114,7 @@ class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: 'editor.action.inlineSuggest.acceptNextWord',
|
|
117
|
-
label: ( localize2(
|
|
117
|
+
label: ( localize2(1253, "Accept Next Word Of Inline Suggestion")),
|
|
118
118
|
precondition: ( ContextKeyExpr.and(
|
|
119
119
|
EditorContextKeys.writable,
|
|
120
120
|
InlineCompletionContextKeys.inlineSuggestionVisible
|
|
@@ -130,7 +130,7 @@ class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
130
130
|
},
|
|
131
131
|
menuOpts: [{
|
|
132
132
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
133
|
-
title: ( localize(
|
|
133
|
+
title: ( localize(1254, 'Accept Word')),
|
|
134
134
|
group: 'primary',
|
|
135
135
|
order: 2,
|
|
136
136
|
}],
|
|
@@ -145,7 +145,7 @@ class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
145
145
|
constructor() {
|
|
146
146
|
super({
|
|
147
147
|
id: 'editor.action.inlineSuggest.acceptNextLine',
|
|
148
|
-
label: ( localize2(
|
|
148
|
+
label: ( localize2(1255, "Accept Next Line Of Inline Suggestion")),
|
|
149
149
|
precondition: ( ContextKeyExpr.and(
|
|
150
150
|
EditorContextKeys.writable,
|
|
151
151
|
InlineCompletionContextKeys.inlineSuggestionVisible
|
|
@@ -155,7 +155,7 @@ class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
155
155
|
},
|
|
156
156
|
menuOpts: [{
|
|
157
157
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
158
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(1256, 'Accept Line')),
|
|
159
159
|
group: 'secondary',
|
|
160
160
|
order: 2,
|
|
161
161
|
}],
|
|
@@ -170,19 +170,19 @@ class AcceptInlineCompletion extends EditorAction {
|
|
|
170
170
|
constructor() {
|
|
171
171
|
super({
|
|
172
172
|
id: inlineSuggestCommitId,
|
|
173
|
-
label: ( localize2(
|
|
173
|
+
label: ( localize2(1257, "Accept Inline Suggestion")),
|
|
174
174
|
precondition: ( ContextKeyExpr.or(
|
|
175
175
|
InlineCompletionContextKeys.inlineSuggestionVisible,
|
|
176
176
|
InlineCompletionContextKeys.inlineEditVisible
|
|
177
177
|
)),
|
|
178
178
|
menuOpts: [{
|
|
179
179
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
180
|
-
title: ( localize(
|
|
180
|
+
title: ( localize(1258, "Accept")),
|
|
181
181
|
group: 'primary',
|
|
182
182
|
order: 2,
|
|
183
183
|
}, {
|
|
184
184
|
menuId: MenuId.InlineEditsActions,
|
|
185
|
-
title: ( localize(
|
|
185
|
+
title: ( localize(1258, "Accept")),
|
|
186
186
|
group: 'primary',
|
|
187
187
|
order: 2,
|
|
188
188
|
}],
|
|
@@ -213,11 +213,11 @@ class JumpToNextInlineEdit extends EditorAction {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: jumpToNextInlineEditId,
|
|
216
|
-
label: ( localize2(
|
|
216
|
+
label: ( localize2(1259, "Jump to next inline edit")),
|
|
217
217
|
precondition: InlineCompletionContextKeys.inlineEditVisible,
|
|
218
218
|
menuOpts: [{
|
|
219
219
|
menuId: MenuId.InlineEditsActions,
|
|
220
|
-
title: ( localize(
|
|
220
|
+
title: ( localize(1260, "Jump")),
|
|
221
221
|
group: 'primary',
|
|
222
222
|
order: 1,
|
|
223
223
|
when: ( InlineCompletionContextKeys.cursorAtInlineEdit.toNegated()),
|
|
@@ -241,7 +241,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
241
241
|
constructor() {
|
|
242
242
|
super({
|
|
243
243
|
id: HideInlineCompletion.ID,
|
|
244
|
-
label: ( localize2(
|
|
244
|
+
label: ( localize2(1261, "Hide Inline Suggestion")),
|
|
245
245
|
precondition: ( ContextKeyExpr.or(
|
|
246
246
|
InlineCompletionContextKeys.inlineSuggestionVisible,
|
|
247
247
|
InlineCompletionContextKeys.inlineEditVisible
|
|
@@ -252,7 +252,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
252
252
|
},
|
|
253
253
|
menuOpts: [{
|
|
254
254
|
menuId: MenuId.InlineEditsActions,
|
|
255
|
-
title: ( localize(
|
|
255
|
+
title: ( localize(1262, "Reject")),
|
|
256
256
|
group: 'primary',
|
|
257
257
|
order: 3,
|
|
258
258
|
}]
|
|
@@ -271,7 +271,7 @@ class ToggleInlineCompletionShowCollapsed extends EditorAction {
|
|
|
271
271
|
constructor() {
|
|
272
272
|
super({
|
|
273
273
|
id: ToggleInlineCompletionShowCollapsed.ID,
|
|
274
|
-
label: ( localize2(
|
|
274
|
+
label: ( localize2(1263, "Toggle Inline Suggestions Show Collapsed")),
|
|
275
275
|
precondition: ContextKeyExpr.true(),
|
|
276
276
|
});
|
|
277
277
|
}
|
|
@@ -293,7 +293,7 @@ class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {
|
|
|
293
293
|
constructor() {
|
|
294
294
|
super({
|
|
295
295
|
id: ToggleAlwaysShowInlineSuggestionToolbar.ID,
|
|
296
|
-
title: ( localize(
|
|
296
|
+
title: ( localize(1264, "Always Show Toolbar")),
|
|
297
297
|
f1: false,
|
|
298
298
|
precondition: undefined,
|
|
299
299
|
menu: [{
|
|
@@ -315,7 +315,7 @@ class DevExtractReproSample extends EditorAction {
|
|
|
315
315
|
constructor() {
|
|
316
316
|
super({
|
|
317
317
|
id: 'editor.action.inlineSuggest.dev.extractRepro',
|
|
318
|
-
label: ( localize(
|
|
318
|
+
label: ( localize(1265, "Developer: Extract Inline Suggest State")),
|
|
319
319
|
alias: 'Developer: Inline Suggest Extract Repro',
|
|
320
320
|
precondition: ( ContextKeyExpr.or(
|
|
321
321
|
InlineCompletionContextKeys.inlineEditVisible,
|
|
@@ -3,23 +3,23 @@ import { RawContextKey } from '../../../../../platform/contextkey/common/context
|
|
|
3
3
|
import { localize } from '../../../../../nls.js';
|
|
4
4
|
|
|
5
5
|
class InlineCompletionContextKeys {
|
|
6
|
-
static { this.inlineSuggestionVisible = ( new RawContextKey('inlineSuggestionVisible', false, ( localize(
|
|
7
|
-
static { this.inlineSuggestionHasIndentation = ( new RawContextKey('inlineSuggestionHasIndentation', false, ( localize(
|
|
6
|
+
static { this.inlineSuggestionVisible = ( new RawContextKey('inlineSuggestionVisible', false, ( localize(1266, "Whether an inline suggestion is visible")))); }
|
|
7
|
+
static { this.inlineSuggestionHasIndentation = ( new RawContextKey('inlineSuggestionHasIndentation', false, ( localize(1267, "Whether the inline suggestion starts with whitespace")))); }
|
|
8
8
|
static { this.inlineSuggestionHasIndentationLessThanTabSize = ( new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, ( localize(
|
|
9
|
-
|
|
9
|
+
1268,
|
|
10
10
|
"Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"
|
|
11
11
|
)))); }
|
|
12
12
|
static { this.suppressSuggestions = ( new RawContextKey('inlineSuggestionSuppressSuggestions', undefined, ( localize(
|
|
13
|
-
|
|
13
|
+
1269,
|
|
14
14
|
"Whether suggestions should be suppressed for the current suggestion"
|
|
15
15
|
)))); }
|
|
16
|
-
static { this.cursorInIndentation = ( new RawContextKey('cursorInIndentation', false, ( localize(
|
|
17
|
-
static { this.hasSelection = ( new RawContextKey('editor.hasSelection', false, ( localize(
|
|
18
|
-
static { this.cursorAtInlineEdit = ( new RawContextKey('cursorAtInlineEdit', false, ( localize(
|
|
19
|
-
static { this.inlineEditVisible = ( new RawContextKey('inlineEditIsVisible', false, ( localize(
|
|
20
|
-
static { this.tabShouldJumpToInlineEdit = ( new RawContextKey('tabShouldJumpToInlineEdit', false, ( localize(
|
|
21
|
-
static { this.tabShouldAcceptInlineEdit = ( new RawContextKey('tabShouldAcceptInlineEdit', false, ( localize(
|
|
22
|
-
static { this.inInlineEditsPreviewEditor = ( new RawContextKey('inInlineEditsPreviewEditor', true, ( localize(
|
|
16
|
+
static { this.cursorInIndentation = ( new RawContextKey('cursorInIndentation', false, ( localize(1270, "Whether the cursor is in indentation")))); }
|
|
17
|
+
static { this.hasSelection = ( new RawContextKey('editor.hasSelection', false, ( localize(1271, "Whether the editor has a selection")))); }
|
|
18
|
+
static { this.cursorAtInlineEdit = ( new RawContextKey('cursorAtInlineEdit', false, ( localize(1272, "Whether the cursor is at an inline edit")))); }
|
|
19
|
+
static { this.inlineEditVisible = ( new RawContextKey('inlineEditIsVisible', false, ( localize(1273, "Whether an inline edit is visible")))); }
|
|
20
|
+
static { this.tabShouldJumpToInlineEdit = ( new RawContextKey('tabShouldJumpToInlineEdit', false, ( localize(1274, "Whether tab should jump to an inline edit.")))); }
|
|
21
|
+
static { this.tabShouldAcceptInlineEdit = ( new RawContextKey('tabShouldAcceptInlineEdit', false, ( localize(1275, "Whether tab should accept the inline edit.")))); }
|
|
22
|
+
static { this.inInlineEditsPreviewEditor = ( new RawContextKey('inInlineEditsPreviewEditor', true, ( localize(1276, "Whether the current code editor is showing an inline edits preview")))); }
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export { InlineCompletionContextKeys };
|
|
@@ -278,7 +278,7 @@ let InlineCompletionsController = class InlineCompletionsController extends Disp
|
|
|
278
278
|
let hint;
|
|
279
279
|
if (!accessibleViewShowing && accessibleViewKeybinding && this.editor.getOption(EditorOption.inlineCompletionsAccessibilityVerbose)) {
|
|
280
280
|
hint = ( localize(
|
|
281
|
-
|
|
281
|
+
1277,
|
|
282
282
|
"Inspect this in the accessible view ({0})",
|
|
283
283
|
accessibleViewKeybinding.getAriaLabel()
|
|
284
284
|
));
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js
CHANGED
|
@@ -130,7 +130,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
130
130
|
return ( new RenderedHoverParts([renderedHoverPart]));
|
|
131
131
|
}
|
|
132
132
|
getAccessibleContent(hoverPart) {
|
|
133
|
-
return localize(
|
|
133
|
+
return localize(1278, 'There are inline completions here');
|
|
134
134
|
}
|
|
135
135
|
renderScreenReaderText(context, part) {
|
|
136
136
|
const disposables = ( new DisposableStore());
|
|
@@ -139,7 +139,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
139
139
|
const hoverContentsElement = append(markdownHoverElement, $$1('div.hover-contents', { ['aria-live']: 'assertive' }));
|
|
140
140
|
const renderer = ( new MarkdownRenderer({ editor: this._editor }, this._languageService, this._openerService));
|
|
141
141
|
const render = (code) => {
|
|
142
|
-
const inlineSuggestionAvailable = ( localize(
|
|
142
|
+
const inlineSuggestionAvailable = ( localize(1279, "Suggestion:"));
|
|
143
143
|
const renderedContents = disposables.add(renderer.render(( new MarkdownString()).appendText(inlineSuggestionAvailable).appendCodeblock('text', code), {
|
|
144
144
|
asyncRenderCallback: () => {
|
|
145
145
|
hoverContentsElement.className = 'hover-contents code-hover-contents';
|
|
@@ -12,7 +12,7 @@ import { IKeybindingService } from "../../../../../platform/keybinding/common/ke
|
|
|
12
12
|
import { ITelemetryService } from "../../../../../platform/telemetry/common/telemetry.service.js";
|
|
13
13
|
import { ICodeEditor, IContentWidget, IContentWidgetPosition } from "../../../../browser/editorBrowser.js";
|
|
14
14
|
import { Position } from "../../../../common/core/position.js";
|
|
15
|
-
import {
|
|
15
|
+
import { InlineCompletionCommand, InlineCompletionWarning } from "../../../../common/languages.js";
|
|
16
16
|
import { InlineCompletionsModel } from "../model/inlineCompletionsModel.js";
|
|
17
17
|
export declare class InlineCompletionsHintsWidget extends Disposable {
|
|
18
18
|
private readonly editor;
|
|
@@ -54,7 +54,7 @@ export declare class InlineSuggestionHintsContentWidget extends Disposable imple
|
|
|
54
54
|
private readonly inlineCompletionsActionsMenus;
|
|
55
55
|
private readonly clearAvailableSuggestionCountLabelDebounced;
|
|
56
56
|
private readonly disableButtonsDebounced;
|
|
57
|
-
constructor(editor: ICodeEditor, withBorder: boolean, _position: IObservable<Position | null>, _currentSuggestionIdx: IObservable<number>, _suggestionCount: IObservable<number | undefined>, _extraCommands: IObservable<
|
|
57
|
+
constructor(editor: ICodeEditor, withBorder: boolean, _position: IObservable<Position | null>, _currentSuggestionIdx: IObservable<number>, _suggestionCount: IObservable<number | undefined>, _extraCommands: IObservable<InlineCompletionCommand[]>, _warning: IObservable<InlineCompletionWarning | undefined>, _relayout: () => void, _commandService: ICommandService, instantiationService: IInstantiationService, keybindingService: IKeybindingService, _contextKeyService: IContextKeyService, _menuService: IMenuService);
|
|
58
58
|
getId(): string;
|
|
59
59
|
getDomNode(): HTMLElement;
|
|
60
60
|
getPosition(): IContentWidgetPosition | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
4
|
-
import { h } from '../../../../../base/browser/dom.js';
|
|
4
|
+
import { n, h } from '../../../../../base/browser/dom.js';
|
|
5
5
|
import { renderMarkdown } from '../../../../../base/browser/markdownRenderer.js';
|
|
6
6
|
import { ActionViewItem } from '../../../../../base/browser/ui/actionbar/actionViewItems.js';
|
|
7
7
|
import { KeybindingLabel, unthemedKeybindingLabelOptions } from '../../../../../base/browser/ui/keybindingLabel/keybindingLabel.js';
|
|
@@ -33,10 +33,9 @@ import { InlineCompletionTriggerKind } from '../../../../common/languages.js';
|
|
|
33
33
|
import { PositionAffinity } from '../../../../common/model.js';
|
|
34
34
|
import { showPreviousInlineSuggestionActionId, showNextInlineSuggestionActionId } from '../controller/commandIds.js';
|
|
35
35
|
import * as inlineCompletionsHintsWidget from './inlineCompletionsHintsWidget.css';
|
|
36
|
-
import { n } from '../../../../../base/browser/domImpl/n.js';
|
|
37
|
-
import { autorunWithStore, autorun } from '../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
38
36
|
import { derivedObservableWithCache } from '../../../../../base/common/observableInternal/utils/utils.js';
|
|
39
37
|
import { derived } from '../../../../../base/common/observableInternal/observables/derived.js';
|
|
38
|
+
import { autorunWithStore, autorun } from '../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
40
39
|
import { observableFromEvent } from '../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
41
40
|
|
|
42
41
|
var InlineSuggestionHintsContentWidget_1;
|
|
@@ -98,8 +97,8 @@ let InlineCompletionsHintsWidget = class InlineCompletionsHintsWidget extends Di
|
|
|
98
97
|
InlineCompletionsHintsWidget = ( __decorate([
|
|
99
98
|
( __param(2, IInstantiationService))
|
|
100
99
|
], InlineCompletionsHintsWidget));
|
|
101
|
-
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, ( localize(
|
|
102
|
-
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, ( localize(
|
|
100
|
+
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, ( localize(1280, 'Icon for show next parameter hint.')));
|
|
101
|
+
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, ( localize(1281, 'Icon for show previous parameter hint.')));
|
|
103
102
|
let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidget extends Disposable {
|
|
104
103
|
static { InlineSuggestionHintsContentWidget_1 = this; }
|
|
105
104
|
static { this.hot = createHotClass(InlineSuggestionHintsContentWidget_1); }
|
|
@@ -117,7 +116,7 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
117
116
|
const kb = this.keybindingService.lookupKeybinding(commandId, this._contextKeyService);
|
|
118
117
|
let tooltip = label;
|
|
119
118
|
if (kb) {
|
|
120
|
-
tooltip = ( localize(
|
|
119
|
+
tooltip = ( localize(1282, '{0} ({1})', label, kb.getLabel()));
|
|
121
120
|
}
|
|
122
121
|
action.tooltip = tooltip;
|
|
123
122
|
return action;
|
|
@@ -165,9 +164,9 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
165
164
|
this._warningMessageNode.element,
|
|
166
165
|
h('div@toolBar'),
|
|
167
166
|
]);
|
|
168
|
-
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, ( localize(
|
|
167
|
+
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, ( localize(1283, 'Previous')), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
|
|
169
168
|
this.availableSuggestionCountAction = this._register(( new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false)));
|
|
170
|
-
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, ( localize(
|
|
169
|
+
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, ( localize(1284, 'Next')), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));
|
|
171
170
|
this.inlineCompletionsActionsMenus = this._register(this._menuService.createMenu(MenuId.InlineCompletionsActions, this._contextKeyService));
|
|
172
171
|
this.clearAvailableSuggestionCountLabelDebounced = this._register(( new RunOnceScheduler(() => {
|
|
173
172
|
this.availableSuggestionCountAction.label = '';
|
|
@@ -230,12 +229,12 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
230
229
|
const extraCommands = this._extraCommands.read(reader);
|
|
231
230
|
const extraActions = ( extraCommands.map(c => ({
|
|
232
231
|
class: undefined,
|
|
233
|
-
id: c.id,
|
|
232
|
+
id: c.command.id,
|
|
234
233
|
enabled: true,
|
|
235
|
-
tooltip: c.tooltip || '',
|
|
236
|
-
label: c.title,
|
|
234
|
+
tooltip: c.command.tooltip || '',
|
|
235
|
+
label: c.command.title,
|
|
237
236
|
run: (event) => {
|
|
238
|
-
return this._commandService.executeCommand(c.id);
|
|
237
|
+
return this._commandService.executeCommand(c.command.id);
|
|
239
238
|
},
|
|
240
239
|
})));
|
|
241
240
|
for (const [_, group] of this.inlineCompletionsActionsMenus.getActions()) {
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js
CHANGED
|
@@ -8,9 +8,8 @@ import { TriggerInlineSuggestionAction, ExplicitTriggerInlineEditAction, Trigger
|
|
|
8
8
|
import { InlineCompletionsController } from './controller/inlineCompletionsController.js';
|
|
9
9
|
import { InlineCompletionsHoverParticipant } from './hintsWidget/hoverParticipant.js';
|
|
10
10
|
import { InlineCompletionsAccessibleView } from './inlineCompletionsAccessibleView.js';
|
|
11
|
-
import {
|
|
11
|
+
import { SnoozeInlineCompletion, CancelSnoozeInlineCompletion } from '../../../browser/services/inlineCompletionsService.js';
|
|
12
12
|
|
|
13
|
-
registerEditorContribution(InlineEditsAdapterContribution.ID, InlineEditsAdapterContribution, EditorContributionInstantiation.Eventually);
|
|
14
13
|
registerEditorContribution(InlineCompletionsController.ID, wrapInHotClass1(InlineCompletionsController.hot), EditorContributionInstantiation.Eventually);
|
|
15
14
|
registerEditorAction(TriggerInlineSuggestionAction);
|
|
16
15
|
registerEditorAction(ExplicitTriggerInlineEditAction);
|
|
@@ -25,5 +24,7 @@ registerEditorAction(HideInlineCompletion);
|
|
|
25
24
|
registerEditorAction(JumpToNextInlineEdit);
|
|
26
25
|
registerAction2(ToggleAlwaysShowInlineSuggestionToolbar);
|
|
27
26
|
registerEditorAction(DevExtractReproSample);
|
|
27
|
+
registerAction2(SnoozeInlineCompletion);
|
|
28
|
+
registerAction2(CancelSnoozeInlineCompletion);
|
|
28
29
|
HoverParticipantRegistry.register(InlineCompletionsHoverParticipant);
|
|
29
30
|
AccessibleViewRegistry.register(( new InlineCompletionsAccessibleView()));
|
|
@@ -22,4 +22,11 @@ export declare class ObservableAnimatedValue {
|
|
|
22
22
|
changeAnimation(fn: (prev: AnimatedValue) => AnimatedValue, tx: ITransaction | undefined): void;
|
|
23
23
|
getValue(reader: IReader | undefined): number;
|
|
24
24
|
}
|
|
25
|
+
export declare class AnimationFrameScheduler {
|
|
26
|
+
static instance: AnimationFrameScheduler;
|
|
27
|
+
private readonly _counter;
|
|
28
|
+
private _isScheduled;
|
|
29
|
+
invalidateOnNextAnimationFrame(reader: IReader | undefined): void;
|
|
30
|
+
private _update;
|
|
31
|
+
}
|
|
25
32
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import { getActiveWindow } from '../../../../../base/browser/dom.js';
|
|
3
3
|
import '../../../../../base/common/observableInternal/index.js';
|
|
4
|
-
import { observableValue } from '../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
5
4
|
import { observableSignal } from '../../../../../base/common/observableInternal/observables/observableSignal.js';
|
|
5
|
+
import { observableValue } from '../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
6
6
|
|
|
7
7
|
class AnimatedValue {
|
|
8
8
|
static const(value) {
|
|
@@ -55,17 +55,17 @@ class ObservableAnimatedValue {
|
|
|
55
55
|
getValue(reader) {
|
|
56
56
|
const value = this._value.read(reader);
|
|
57
57
|
if (!value.isFinished()) {
|
|
58
|
-
|
|
58
|
+
AnimationFrameScheduler.instance.invalidateOnNextAnimationFrame(reader);
|
|
59
59
|
}
|
|
60
60
|
return value.getValue();
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
class
|
|
63
|
+
class AnimationFrameScheduler {
|
|
64
64
|
constructor() {
|
|
65
65
|
this._counter = observableSignal(this);
|
|
66
66
|
this._isScheduled = false;
|
|
67
67
|
}
|
|
68
|
-
static { this.instance = ( new
|
|
68
|
+
static { this.instance = ( new AnimationFrameScheduler()); }
|
|
69
69
|
invalidateOnNextAnimationFrame(reader) {
|
|
70
70
|
this._counter.read(reader);
|
|
71
71
|
if (!this._isScheduled) {
|
|
@@ -81,4 +81,4 @@ class Scheduler {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export { AnimatedValue, ObservableAnimatedValue, easeOutCubic, easeOutExpo };
|
|
84
|
+
export { AnimatedValue, AnimationFrameScheduler, ObservableAnimatedValue, easeOutCubic, easeOutExpo };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Disposable } from "../../../../../base/common/lifecycle.js";
|
|
2
2
|
import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js";
|
|
3
|
+
import { ILoggerService } from "../../../../../platform/log/common/log.service.js";
|
|
3
4
|
import { ICodeEditor } from "../../../../browser/editorBrowser.js";
|
|
4
5
|
export interface ITextModelChangeRecorderMetadata {
|
|
5
6
|
source?: string;
|
|
@@ -10,6 +11,7 @@ export interface ITextModelChangeRecorderMetadata {
|
|
|
10
11
|
export declare class TextModelChangeRecorder extends Disposable {
|
|
11
12
|
private readonly _editor;
|
|
12
13
|
private readonly _instantiationService;
|
|
14
|
+
private readonly _loggerService;
|
|
13
15
|
private readonly _structuredLogger;
|
|
14
|
-
constructor(_editor: ICodeEditor, _instantiationService: IInstantiationService);
|
|
16
|
+
constructor(_editor: ICodeEditor, _instantiationService: IInstantiationService, _loggerService: ILoggerService);
|
|
15
17
|
}
|
|
@@ -3,59 +3,64 @@ import { __decorate, __param } from '../../../../../../../../external/tslib/tsli
|
|
|
3
3
|
import { Disposable } from '../../../../../base/common/lifecycle.js';
|
|
4
4
|
import '../../../../../base/common/observableInternal/index.js';
|
|
5
5
|
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
6
|
+
import { canLog, LogLevel } from '../../../../../platform/log/common/log.js';
|
|
7
|
+
import { ILoggerService } from '../../../../../platform/log/common/log.service.js';
|
|
6
8
|
import { CodeEditorWidget } from '../../../../browser/widget/codeEditor/codeEditorWidget.js';
|
|
7
|
-
import { TextModelEditReason } from '../../../../common/textModelEditReason.js';
|
|
8
9
|
import { StructuredLogger } from '../structuredLogger.js';
|
|
9
|
-
import {
|
|
10
|
+
import { observableFromEvent } from '../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
11
|
+
import { autorun } from '../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
10
12
|
|
|
11
13
|
let TextModelChangeRecorder = class TextModelChangeRecorder extends Disposable {
|
|
12
|
-
constructor(_editor, _instantiationService) {
|
|
14
|
+
constructor(_editor, _instantiationService, _loggerService) {
|
|
13
15
|
super();
|
|
14
16
|
this._editor = _editor;
|
|
15
17
|
this._instantiationService = _instantiationService;
|
|
18
|
+
this._loggerService = _loggerService;
|
|
16
19
|
this._structuredLogger = this._register(this._instantiationService.createInstance(StructuredLogger.cast(), 'editor.inlineSuggest.logChangeReason.commandId'));
|
|
17
|
-
this.
|
|
20
|
+
const logger = this._loggerService?.createLogger('textModelChanges', { hidden: false, name: 'Text Model Changes Reason' });
|
|
21
|
+
const loggingLevel = observableFromEvent(this, logger.onDidChangeLogLevel, () => logger.getLevel());
|
|
22
|
+
this._register(autorun(reader => {
|
|
23
|
+
if (!canLog(loggingLevel.read(reader), LogLevel.Trace)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
reader.store.add(this._editor.onDidChangeModelContent((e) => {
|
|
27
|
+
if (this._editor.getModel()?.uri.scheme === 'output') {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
logger.trace('onDidChangeModelContent: ' + ( e.detailedReasons.map(r => r.toKey(Number.MAX_VALUE))).join(', '));
|
|
31
|
+
}));
|
|
32
|
+
}));
|
|
33
|
+
this._register(autorun(reader => {
|
|
18
34
|
if (!(this._editor instanceof CodeEditorWidget)) {
|
|
19
35
|
return;
|
|
20
36
|
}
|
|
21
37
|
if (!this._structuredLogger.isEnabled.read(reader)) {
|
|
22
38
|
return;
|
|
23
39
|
}
|
|
24
|
-
|
|
25
|
-
store.add(this._editor.onBeforeExecuteEdit(({ source }) => {
|
|
26
|
-
if (source) {
|
|
27
|
-
sources.push(source);
|
|
28
|
-
}
|
|
29
|
-
}));
|
|
30
|
-
store.add(this._editor.onDidChangeModelContent(e => {
|
|
40
|
+
reader.store.add(this._editor.onDidChangeModelContent(e => {
|
|
31
41
|
const tm = this._editor.getModel();
|
|
32
42
|
if (!tm) {
|
|
33
43
|
return;
|
|
34
44
|
}
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
setTimeout(() => {
|
|
49
|
-
this._structuredLogger.log(data);
|
|
50
|
-
}, 0);
|
|
51
|
-
}
|
|
52
|
-
sources.length = 0;
|
|
45
|
+
const reason = e.detailedReasons[0];
|
|
46
|
+
const data = {
|
|
47
|
+
...reason.metadata,
|
|
48
|
+
sourceId: 'TextModel.setChangeReason',
|
|
49
|
+
source: reason.metadata.source,
|
|
50
|
+
time: Date.now(),
|
|
51
|
+
modelUri: tm.uri,
|
|
52
|
+
modelVersion: tm.getVersionId(),
|
|
53
|
+
};
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
this._structuredLogger.log(data);
|
|
56
|
+
}, 0);
|
|
53
57
|
}));
|
|
54
58
|
}));
|
|
55
59
|
}
|
|
56
60
|
};
|
|
57
61
|
TextModelChangeRecorder = ( __decorate([
|
|
58
|
-
( __param(1, IInstantiationService))
|
|
62
|
+
( __param(1, IInstantiationService)),
|
|
63
|
+
( __param(2, ILoggerService))
|
|
59
64
|
], TextModelChangeRecorder));
|
|
60
65
|
|
|
61
66
|
export { TextModelChangeRecorder };
|
|
@@ -5,11 +5,13 @@ import { Position } from '../../../../common/core/position.js';
|
|
|
5
5
|
import { Range } from '../../../../common/core/range.js';
|
|
6
6
|
import { TextEdit, TextReplacement } from '../../../../common/core/edits/textEdit.js';
|
|
7
7
|
import { LineDecoration } from '../../../../common/viewLayout/lineDecorations.js';
|
|
8
|
+
import { assertFn, checkAdjacentItems } from '../../../../../base/common/assert.js';
|
|
8
9
|
|
|
9
10
|
class GhostText {
|
|
10
11
|
constructor(lineNumber, parts) {
|
|
11
12
|
this.lineNumber = lineNumber;
|
|
12
13
|
this.parts = parts;
|
|
14
|
+
assertFn(() => checkAdjacentItems(parts, (p1, p2) => p1.column <= p2.column));
|
|
13
15
|
}
|
|
14
16
|
equals(other) {
|
|
15
17
|
return this.lineNumber === other.lineNumber &&
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class DirectedGraph<T> {
|
|
2
|
+
private readonly _nodes;
|
|
3
|
+
private readonly _outgoingEdges;
|
|
4
|
+
static from<T>(nodes: readonly T[], getOutgoing: (node: T) => readonly T[]): DirectedGraph<T>;
|
|
5
|
+
removeCycles(): {
|
|
6
|
+
foundCycles: T[];
|
|
7
|
+
};
|
|
8
|
+
getOutgoing(node: T): readonly T[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
class DirectedGraph {
|
|
4
|
+
constructor() {
|
|
5
|
+
this._nodes = ( new Set());
|
|
6
|
+
this._outgoingEdges = ( new Map());
|
|
7
|
+
}
|
|
8
|
+
static from(nodes, getOutgoing) {
|
|
9
|
+
const graph = ( new DirectedGraph());
|
|
10
|
+
for (const node of nodes) {
|
|
11
|
+
graph._nodes.add(node);
|
|
12
|
+
}
|
|
13
|
+
for (const node of nodes) {
|
|
14
|
+
const outgoing = getOutgoing(node);
|
|
15
|
+
if (outgoing.length > 0) {
|
|
16
|
+
const outgoingSet = ( new Set());
|
|
17
|
+
for (const target of outgoing) {
|
|
18
|
+
outgoingSet.add(target);
|
|
19
|
+
}
|
|
20
|
+
graph._outgoingEdges.set(node, outgoingSet);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return graph;
|
|
24
|
+
}
|
|
25
|
+
removeCycles() {
|
|
26
|
+
const foundCycles = [];
|
|
27
|
+
const visited = ( new Set());
|
|
28
|
+
const recursionStack = ( new Set());
|
|
29
|
+
const toRemove = [];
|
|
30
|
+
const dfs = (node) => {
|
|
31
|
+
visited.add(node);
|
|
32
|
+
recursionStack.add(node);
|
|
33
|
+
const outgoing = this._outgoingEdges.get(node);
|
|
34
|
+
if (outgoing) {
|
|
35
|
+
for (const neighbor of outgoing) {
|
|
36
|
+
if (!( visited.has(neighbor))) {
|
|
37
|
+
dfs(neighbor);
|
|
38
|
+
}
|
|
39
|
+
else if (( recursionStack.has(neighbor))) {
|
|
40
|
+
foundCycles.push(neighbor);
|
|
41
|
+
toRemove.push({ from: node, to: neighbor });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
recursionStack.delete(node);
|
|
46
|
+
};
|
|
47
|
+
for (const node of this._nodes) {
|
|
48
|
+
if (!( visited.has(node))) {
|
|
49
|
+
dfs(node);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
for (const { from, to } of toRemove) {
|
|
53
|
+
const outgoingSet = this._outgoingEdges.get(from);
|
|
54
|
+
if (outgoingSet) {
|
|
55
|
+
outgoingSet.delete(to);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return { foundCycles };
|
|
59
|
+
}
|
|
60
|
+
getOutgoing(node) {
|
|
61
|
+
const outgoing = this._outgoingEdges.get(node);
|
|
62
|
+
return outgoing ? Array.from(outgoing) : [];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { DirectedGraph };
|