@codingame/monaco-vscode-api 3.2.2 → 4.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/README.md +22 -17
- package/api.js +4 -7
- package/debugProtocol.d.ts +14 -39
- package/extensions.d.ts +7 -1
- package/missing-services.js +122 -38
- package/monaco.d.ts +1 -1
- package/monaco.js +11 -1
- package/override/vs/platform/dialogs/common/dialogs.js +1 -0
- package/package.json +8 -8
- package/service-override/tools/editor.js +82 -3
- package/service-override/tools/views.d.ts +2 -1
- package/service-override/tools/views.js +5 -1
- package/services.js +7 -6
- package/vscode/src/vs/base/browser/dom.js +1 -7
- package/vscode/src/vs/base/browser/fonts.js +3 -0
- package/vscode/src/vs/base/browser/keyboardEvent.js +1 -1
- package/vscode/src/vs/base/browser/markdownRenderer.js +4 -4
- package/vscode/src/vs/base/browser/touch.js +13 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +5 -6
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +2 -2
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +4 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +16 -9
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +4 -4
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +3 -3
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +5 -0
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +4 -0
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +3 -1
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +1 -0
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +14 -3
- package/vscode/src/vs/base/browser/ui/{iconLabel/iconHoverDelegate.d.ts → hover/hoverDelegate.d.ts} +3 -6
- package/vscode/src/vs/base/browser/ui/hover/{hoverDelegate.js → hoverDelegateFactory.js} +5 -5
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/{iconLabel/iconLabelHover.d.ts → hover/updatableHoverWidget.d.ts} +6 -1
- package/vscode/src/vs/base/browser/ui/{iconLabel/iconLabelHover.js → hover/updatableHoverWidget.js} +27 -7
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +10 -9
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +11 -1
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +19 -1
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +8 -7
- package/vscode/src/vs/base/browser/ui/list/listView.js +4 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +27 -10
- package/vscode/src/vs/base/browser/ui/menu/menu.js +15 -9
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +15 -8
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +18 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +1 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +14 -7
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +6 -4
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +7 -6
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +55 -10
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +4 -1
- package/vscode/src/vs/base/browser/window.d.ts +5 -0
- package/vscode/src/vs/base/browser/window.js +1 -2
- package/vscode/src/vs/base/common/arrays.js +20 -1
- package/vscode/src/vs/base/common/cache.js +3 -2
- package/vscode/src/vs/base/common/codicons.d.ts +62 -38
- package/vscode/src/vs/base/common/codicons.js +19 -571
- package/vscode/src/vs/base/common/codiconsLibrary.js +570 -0
- package/vscode/src/vs/base/common/codiconsUtil.js +17 -0
- package/vscode/src/vs/base/common/event.js +4 -1
- package/vscode/src/vs/base/common/glob.js +1 -0
- package/vscode/src/vs/base/common/hierarchicalKind.d.ts +13 -0
- package/vscode/src/vs/base/common/hierarchicalKind.js +21 -0
- package/vscode/src/vs/base/common/labels.js +2 -2
- package/vscode/src/vs/base/common/network.js +14 -5
- package/vscode/src/vs/base/common/observableInternal/promise.js +1 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +35 -14
- package/vscode/src/vs/base/common/platform.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +7 -1
- package/vscode/src/vs/base/common/severity.js +2 -1
- package/vscode/src/vs/base/common/strings.js +16 -4
- package/vscode/src/vs/base/parts/ipc/common/ipc.js +4 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +5 -5
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +55 -43
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +5 -5
- package/vscode/src/vs/editor/browser/coreCommands.js +13 -13
- package/vscode/src/vs/editor/browser/editorDom.js +11 -1
- package/vscode/src/vs/editor/browser/editorExtensions.js +1 -1
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +10 -2
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +31 -0
- package/vscode/src/vs/editor/browser/services/{hoverService.js → hoverService/hoverService.js} +38 -27
- package/vscode/src/vs/editor/browser/{widget/hoverWidget → services/hoverService}/hoverWidget.js +13 -14
- package/vscode/src/vs/editor/browser/view/viewLayer.js +4 -4
- package/vscode/src/vs/editor/browser/view/viewOverlays.js +12 -23
- package/vscode/src/vs/editor/browser/view.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +4 -6
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.css.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +8 -14
- package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.css.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +3 -6
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +5 -1
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLine.js +4 -4
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.css.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +142 -27
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +34 -16
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +23 -20
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +25 -3
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +21 -13
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +2 -2
- package/vscode/src/vs/editor/browser/widget/{codeEditorContributions.js → codeEditor/codeEditorContributions.js} +3 -3
- package/vscode/src/vs/editor/browser/widget/{codeEditorWidget.js → codeEditor/codeEditorWidget.js} +81 -70
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +4 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +44 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +281 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +4 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +15 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +2 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +9 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +33 -246
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +22 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +71 -41
- package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +36 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +227 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +22 -19
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +15 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +13 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +11 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/style.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +104 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +8 -15
- package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/colors.js +14 -4
- package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/diffEditorItemTemplate.js +6 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/model.js +14 -0
- package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorViewModel.js +5 -2
- package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorWidget.js +5 -3
- package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/multiDiffEditorWidgetImpl.js +9 -10
- package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/style.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/utils.js +2 -1
- package/vscode/src/vs/editor/common/commands/trimTrailingWhitespaceCommand.js +14 -3
- package/vscode/src/vs/editor/common/config/diffEditor.js +1 -0
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +10 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +23 -0
- package/vscode/src/vs/editor/common/config/editorOptions.js +115 -33
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +32 -2
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/lineRange.js +12 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.js +43 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +169 -0
- package/vscode/src/vs/editor/common/core/textLength.js +110 -0
- package/vscode/src/vs/editor/common/core/wordCharacterClassifier.d.ts +14 -2
- package/vscode/src/vs/editor/common/core/wordCharacterClassifier.js +66 -10
- package/vscode/src/vs/editor/common/core/wordHelper.js +1 -0
- package/vscode/src/vs/editor/common/cursor/cursor.js +17 -4
- package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +1 -1
- package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +22 -3
- package/vscode/src/vs/editor/common/cursorCommon.js +7 -5
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +7 -4
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +1 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +2 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +10 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +25 -0
- package/vscode/src/vs/editor/common/languages.d.ts +43 -11
- package/vscode/src/vs/editor/common/languages.js +15 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +1 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js +3 -58
- package/vscode/src/vs/editor/common/model/textModel.js +2 -0
- package/vscode/src/vs/editor/common/model/textModelSearch.js +1 -1
- package/vscode/src/vs/editor/common/model/textModelText.js +17 -0
- package/vscode/src/vs/editor/common/model/textModelTokens.js +4 -0
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +10 -0
- package/vscode/src/vs/editor/common/model.d.ts +17 -2
- package/vscode/src/vs/editor/common/model.js +1 -6
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +8 -0
- package/vscode/src/vs/editor/common/services/editorWorker.d.ts +2 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.d.ts +28 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +71 -0
- package/vscode/src/vs/editor/common/services/markerDecorationsService.js +15 -5
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +32 -20
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +2 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +5 -5
- package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.js +1 -0
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +1 -1
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +10 -7
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +11 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +6 -5
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +5 -4
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +25 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +3 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +3 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +13 -2
- package/vscode/src/vs/editor/contrib/codeAction/common/types.js +18 -33
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +11 -1
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -9
- package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +5 -3
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +40 -20
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +83 -47
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +40 -31
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +16 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +5 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -6
- package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +14 -4
- package/vscode/src/vs/editor/contrib/find/browser/findModel.js +6 -6
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +16 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +23 -3
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +12 -3
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +11 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +5 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +12 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +3 -91
- package/vscode/src/vs/editor/contrib/indentation/common/indentation.js +92 -0
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +14 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostText.js +18 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +6 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +28 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +7 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/provideInlineCompletions.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +64 -72
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +11 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +5 -85
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/commands.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +6 -4
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +4 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +28 -17
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -4
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +53 -6
- package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +1 -1
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +11 -1
- package/vscode/src/vs/editor/contrib/links/browser/links.js +2 -2
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +7 -7
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +11 -1
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +12 -2
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +27 -33
- package/vscode/src/vs/editor/contrib/rename/browser/{renameInputField.js → renameWidget.js} +282 -194
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +154 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +60 -61
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +23 -14
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +12 -2
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +11 -1
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +1 -1
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +16 -6
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +2 -2
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +12 -12
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +2 -2
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +2 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +12 -12
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +11 -1
- package/vscode/src/vs/editor/standalone/common/themes.js +11 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +16 -9
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +42 -18
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +16 -5
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +11 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +13 -5
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +3 -1
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +11 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +11 -1
- package/vscode/src/vs/platform/actions/common/actions.d.ts +7 -0
- package/vscode/src/vs/platform/actions/common/actions.js +7 -0
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +1 -0
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +12 -15
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +4 -2
- package/vscode/src/vs/platform/editor/common/editor.d.ts +12 -0
- package/vscode/src/vs/platform/environment/common/environmentService.js +6 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +19 -7
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +7 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +333 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +901 -0
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +3 -4
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +16 -16
- package/vscode/src/vs/platform/extensions/common/extensions.js +5 -1
- package/vscode/src/vs/platform/files/common/files.d.ts +1 -11
- package/vscode/src/vs/platform/files/common/files.js +2 -0
- package/vscode/src/vs/platform/files/common/watcher.js +2 -0
- package/vscode/src/vs/platform/hover/browser/hover.d.ts +1 -1
- package/vscode/src/vs/platform/hover/browser/hover.js +21 -6
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +1 -0
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +5 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +8 -6
- package/vscode/src/vs/platform/log/browser/log.js +1 -0
- package/vscode/src/vs/platform/log/common/log.js +13 -1
- package/vscode/src/vs/platform/markers/common/markerService.js +1 -1
- package/vscode/src/vs/platform/markers/common/markers.js +9 -9
- package/vscode/src/vs/platform/opener/browser/link.js +16 -4
- package/vscode/src/vs/platform/policy/common/policy.js +2 -0
- package/vscode/src/vs/platform/product/common/product.js +2 -1
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +36 -33
- package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +5 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +38 -9
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +7 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +22 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +13 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1348 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +14 -0
- package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +2 -2
- package/vscode/src/vs/platform/remote/common/remoteHosts.js +1 -4
- package/vscode/src/vs/platform/secrets/common/secrets.js +5 -0
- package/vscode/src/vs/platform/severityIcon/browser/severityIcon.js +5 -5
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +3 -9
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -1
- package/vscode/src/vs/platform/terminal/common/terminal.js +1 -0
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +4 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +11 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +187 -0
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +89 -0
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +46 -0
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +469 -0
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +196 -0
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +166 -0
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +41 -0
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +61 -0
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +45 -0
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +51 -0
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +19 -0
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +2 -1
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
- package/vscode/src/vs/platform/tunnel/common/tunnel.js +2 -0
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +2 -2
- package/vscode/src/vs/platform/update/common/update.js +1 -1
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +1 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileIpc.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +69 -32
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +6 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +12 -5
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -8
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +58 -88
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +8 -4
- package/vscode/src/vs/workbench/api/common/extHostComments.js +49 -13
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +16 -17
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +17 -4
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +57 -40
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +305 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +26 -6
- package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +9 -9
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +34 -3
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTask.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +32 -18
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +214 -0
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +85 -98
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +119 -70
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +90 -28
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +4 -4
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +3 -3
- package/vscode/src/vs/workbench/browser/codeeditor.js +1 -1
- package/vscode/src/vs/workbench/browser/composite.d.ts +3 -5
- package/vscode/src/vs/workbench/browser/composite.js +2 -10
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +2 -1
- package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
- package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
- package/vscode/src/vs/workbench/browser/part.d.ts +25 -3
- package/vscode/src/vs/workbench/browser/part.js +84 -9
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +67 -10
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +92 -14
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +5 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +13 -3
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +13 -5
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +12 -0
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +8 -7
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +16 -8
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +217 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +14 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +8 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +4 -202
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +11 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +92 -23
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +15 -3
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +7 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.js +7 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +12 -32
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +11 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +27 -28
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +19 -20
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +12 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +14 -17
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +11 -1
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +36 -13
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +22 -22
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +29 -21
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +13 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +11 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +122 -33
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +14 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +15 -2
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +37 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +36 -18
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +7 -4
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +6 -4
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +13 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +6 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +28 -11
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +19 -15
- package/vscode/src/vs/workbench/browser/quickaccess.js +42 -15
- package/vscode/src/vs/workbench/browser/style.js +52 -3
- package/vscode/src/vs/workbench/browser/web.api.d.ts +6 -0
- package/vscode/src/vs/workbench/browser/window.js +28 -20
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +83 -9
- package/vscode/src/vs/workbench/common/component.js +0 -1
- package/vscode/src/vs/workbench/common/contextkeys.js +4 -4
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +59 -5
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +10 -0
- package/vscode/src/vs/workbench/common/editor/editorInput.js +3 -0
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +1 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +3 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +7 -3
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +3 -3
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
- package/vscode/src/vs/workbench/common/editor.d.ts +33 -13
- package/vscode/src/vs/workbench/common/editor.js +6 -7
- package/vscode/src/vs/workbench/common/theme.js +45 -5
- package/vscode/src/vs/workbench/common/views.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +59 -184
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +140 -13
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +4 -2
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +35 -36
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +1 -1
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +21 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +70 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +118 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +154 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +186 -224
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +6 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +158 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +84 -175
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +38 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +105 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +137 -43
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +17 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +82 -34
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +17 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +20 -22
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +68 -9
- package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +115 -0
- package/vscode/src/vs/workbench/contrib/chat/common/{chatProvider.js → languageModels.js} +9 -9
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +5 -4
- package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +33 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +11 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +9 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +13 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/{browser → common}/languageConfigurationExtensionPoint.js +79 -74
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +11 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +11 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +25 -18
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +14 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +80 -52
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +12 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +33 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +129 -57
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +15 -15
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +145 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +61 -95
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +4 -3
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +18 -11
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +6 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +62 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +6 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +34 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +48 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +216 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +11 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +6 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +23 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +24 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +30 -6
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +106 -37
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +8 -11
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +23 -24
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +17 -12
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +10 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +11 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +11 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +1 -3
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +15 -6
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +674 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +154 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -344
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +223 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +8 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +427 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +45 -160
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +358 -702
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +165 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +16 -27
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +19 -4
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +9 -9
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.js +17 -2
- package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +236 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +9 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +8 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +8 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +2 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +4 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +11 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +5 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +5 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +6 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +5 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +7 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +23 -19
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +4 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +5 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +9 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +303 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +655 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.js +101 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +56 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +11 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +11 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +888 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +88 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +60 -46
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +42 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +18 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +28 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +11 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +48 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +13 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +57 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +11 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +161 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +4 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +21 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +5 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +14 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +14 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +25 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +27 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +8 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +7 -14
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +10 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +16 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +17 -4
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +11 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +26 -8
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +16 -6
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +11 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +18 -8
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +235 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +182 -69
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +2 -0
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +203 -1
- package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +3 -0
- package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +58 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +12 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +11 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +53 -57
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +11 -26
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +12 -12
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +8 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +2 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +30 -7
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +12 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +50 -41
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +4 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +20 -22
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +4 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -3
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +2 -0
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +6 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.js +69 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +69 -811
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.js +50 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -1
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +50 -25
- package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +21 -17
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.d.ts +12 -0
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +144 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +10 -6
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +3 -3
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +16 -4
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +12 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +46 -121
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +5 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +6 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +9 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +4 -4
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +2 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +8 -1
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +44 -36
- package/vscode/src/vs/workbench/services/history/common/history.d.ts +0 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +4 -3
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -1
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +2 -1
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +8 -6
- package/vscode/src/vs/workbench/services/output/common/output.js +4 -1
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +2 -2
- package/vscode/src/vs/workbench/services/search/common/search.js +1 -0
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +15 -5
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +6 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +11 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +5 -3
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +1 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +7 -7
- package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +261 -0
- package/vscode-dts/vscode.proposed.authLearnMore.d.ts +16 -0
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +49 -78
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +13 -16
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +32 -0
- package/vscode-dts/vscode.proposed.commentingRangeHint.d.ts +16 -0
- package/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +15 -23
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +10 -0
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +115 -30
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +19 -14
- package/vscode-dts/vscode.proposed.fileComments.d.ts +2 -4
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +18 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +0 -16
- package/vscode-dts/vscode.proposed.languageModels.d.ts +115 -53
- package/vscode-dts/vscode.proposed.notebookCellExecution.d.ts +44 -0
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +3 -0
- package/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts +22 -0
- package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +2 -0
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +207 -0
- package/vscode/src/vs/editor/browser/services/hoverService.d.ts +0 -30
- package/vscode/src/vs/editor/browser/widget/embeddedCodeEditorWidget.js +0 -74
- package/vscode/src/vs/editor/browser/widget/media/editor.css.js +0 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +0 -881
- package/vscode/src/vs/platform/theme/common/colorRegistry.js +0 -1316
- package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +0 -253
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +0 -74
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +0 -424
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +0 -222
- /package/vscode/src/vs/base/browser/ui/hover/{hover.css.js → hoverWidget.css.js} +0 -0
- /package/vscode/src/vs/editor/browser/{widget/hoverWidget → services/hoverService}/hover.css.js +0 -0
- /package/vscode/src/vs/editor/browser/widget/{multiDiffEditorWidget → multiDiffEditor}/objectPool.js +0 -0
- /package/vscode/src/vs/editor/contrib/indentation/{browser → common}/indentUtils.js +0 -0
- /package/vscode/src/vs/editor/contrib/rename/browser/{renameInputField.css.js → renameWidget.css.js} +0 -0
- /package/vscode/src/vs/platform/theme/common/{colorRegistry.d.ts → colorUtils.d.ts} +0 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { localize2WithPath, localizeWithPath } from '../../../../nls.js';
|
|
2
|
+
import { MenuRegistry, MenuId } from '../../../../platform/actions/common/actions.js';
|
|
3
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
4
|
+
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
5
|
+
import { KeybindingsRegistry } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
6
|
+
import { TextDiffEditor } from './textDiffEditor.js';
|
|
7
|
+
import { TextCompareEditorVisibleContext, TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext } from '../../../common/contextkeys.js';
|
|
8
|
+
import { DiffEditorInput } from '../../../common/editor/diffEditorInput.js';
|
|
9
|
+
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
10
|
+
const TOGGLE_DIFF_SIDE_BY_SIDE = 'toggle.diff.renderSideBySide';
|
|
11
|
+
const GOTO_NEXT_CHANGE = 'workbench.action.compareEditor.nextChange';
|
|
12
|
+
const GOTO_PREVIOUS_CHANGE = 'workbench.action.compareEditor.previousChange';
|
|
13
|
+
const DIFF_FOCUS_PRIMARY_SIDE = 'workbench.action.compareEditor.focusPrimarySide';
|
|
14
|
+
const DIFF_FOCUS_SECONDARY_SIDE = 'workbench.action.compareEditor.focusSecondarySide';
|
|
15
|
+
const DIFF_FOCUS_OTHER_SIDE = 'workbench.action.compareEditor.focusOtherSide';
|
|
16
|
+
const DIFF_OPEN_SIDE = 'workbench.action.compareEditor.openSide';
|
|
17
|
+
const TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE = 'toggle.diff.ignoreTrimWhitespace';
|
|
18
|
+
const DIFF_SWAP_SIDES = 'workbench.action.compareEditor.swapSides';
|
|
19
|
+
function registerDiffEditorCommands() {
|
|
20
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
21
|
+
id: GOTO_NEXT_CHANGE,
|
|
22
|
+
weight: 200 ,
|
|
23
|
+
when: TextCompareEditorVisibleContext,
|
|
24
|
+
primary: 512 | 63 ,
|
|
25
|
+
handler: accessor => navigateInDiffEditor(accessor, true)
|
|
26
|
+
});
|
|
27
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
28
|
+
command: {
|
|
29
|
+
id: GOTO_NEXT_CHANGE,
|
|
30
|
+
title: ( localize2WithPath(
|
|
31
|
+
'vs/workbench/browser/parts/editor/diffEditorCommands',
|
|
32
|
+
'compare.nextChange',
|
|
33
|
+
'Go to Next Change'
|
|
34
|
+
)),
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
38
|
+
id: GOTO_PREVIOUS_CHANGE,
|
|
39
|
+
weight: 200 ,
|
|
40
|
+
when: TextCompareEditorVisibleContext,
|
|
41
|
+
primary: 512 | 1024 | 63 ,
|
|
42
|
+
handler: accessor => navigateInDiffEditor(accessor, false)
|
|
43
|
+
});
|
|
44
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
45
|
+
command: {
|
|
46
|
+
id: GOTO_PREVIOUS_CHANGE,
|
|
47
|
+
title: ( localize2WithPath(
|
|
48
|
+
'vs/workbench/browser/parts/editor/diffEditorCommands',
|
|
49
|
+
'compare.previousChange',
|
|
50
|
+
'Go to Previous Change'
|
|
51
|
+
)),
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
function getActiveTextDiffEditor(accessor) {
|
|
55
|
+
const editorService = accessor.get(IEditorService);
|
|
56
|
+
for (const editor of [editorService.activeEditorPane, ...editorService.visibleEditorPanes]) {
|
|
57
|
+
if (editor instanceof TextDiffEditor) {
|
|
58
|
+
return editor;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
function navigateInDiffEditor(accessor, next) {
|
|
64
|
+
const activeTextDiffEditor = getActiveTextDiffEditor(accessor);
|
|
65
|
+
if (activeTextDiffEditor) {
|
|
66
|
+
activeTextDiffEditor.getControl()?.goToDiff(next ? 'next' : 'previous');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
let FocusTextDiffEditorMode;
|
|
70
|
+
( (function(FocusTextDiffEditorMode) {
|
|
71
|
+
FocusTextDiffEditorMode[FocusTextDiffEditorMode["Original"] = 0] = "Original";
|
|
72
|
+
FocusTextDiffEditorMode[FocusTextDiffEditorMode["Modified"] = 1] = "Modified";
|
|
73
|
+
FocusTextDiffEditorMode[FocusTextDiffEditorMode["Toggle"] = 2] = "Toggle";
|
|
74
|
+
})(FocusTextDiffEditorMode || (FocusTextDiffEditorMode = {})));
|
|
75
|
+
function focusInDiffEditor(accessor, mode) {
|
|
76
|
+
const activeTextDiffEditor = getActiveTextDiffEditor(accessor);
|
|
77
|
+
if (activeTextDiffEditor) {
|
|
78
|
+
switch (mode) {
|
|
79
|
+
case FocusTextDiffEditorMode.Original:
|
|
80
|
+
activeTextDiffEditor.getControl()?.getOriginalEditor().focus();
|
|
81
|
+
break;
|
|
82
|
+
case FocusTextDiffEditorMode.Modified:
|
|
83
|
+
activeTextDiffEditor.getControl()?.getModifiedEditor().focus();
|
|
84
|
+
break;
|
|
85
|
+
case FocusTextDiffEditorMode.Toggle:
|
|
86
|
+
if (activeTextDiffEditor.getControl()?.getModifiedEditor().hasWidgetFocus()) {
|
|
87
|
+
return focusInDiffEditor(accessor, FocusTextDiffEditorMode.Original);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return focusInDiffEditor(accessor, FocusTextDiffEditorMode.Modified);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function toggleDiffSideBySide(accessor) {
|
|
96
|
+
const configurationService = accessor.get(IConfigurationService);
|
|
97
|
+
const newValue = !configurationService.getValue('diffEditor.renderSideBySide');
|
|
98
|
+
configurationService.updateValue('diffEditor.renderSideBySide', newValue);
|
|
99
|
+
}
|
|
100
|
+
function toggleDiffIgnoreTrimWhitespace(accessor) {
|
|
101
|
+
const configurationService = accessor.get(IConfigurationService);
|
|
102
|
+
const newValue = !configurationService.getValue('diffEditor.ignoreTrimWhitespace');
|
|
103
|
+
configurationService.updateValue('diffEditor.ignoreTrimWhitespace', newValue);
|
|
104
|
+
}
|
|
105
|
+
async function swapDiffSides(accessor) {
|
|
106
|
+
const editorService = accessor.get(IEditorService);
|
|
107
|
+
const diffEditor = getActiveTextDiffEditor(accessor);
|
|
108
|
+
const activeGroup = diffEditor?.group;
|
|
109
|
+
const diffInput = diffEditor?.input;
|
|
110
|
+
if (!diffEditor || typeof activeGroup === 'undefined' || !(diffInput instanceof DiffEditorInput) || !diffInput.modified.resource) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const untypedDiffInput = diffInput.toUntyped({ preserveViewState: activeGroup.id, preserveResource: true });
|
|
114
|
+
if (!untypedDiffInput) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
if (diffInput.modified.isModified() && editorService.findEditors({ resource: diffInput.modified.resource, typeId: diffInput.modified.typeId, editorId: diffInput.modified.editorId }).length === 0) {
|
|
118
|
+
await editorService.openEditor({
|
|
119
|
+
...untypedDiffInput.modified,
|
|
120
|
+
options: {
|
|
121
|
+
...untypedDiffInput.modified.options,
|
|
122
|
+
pinned: true,
|
|
123
|
+
inactive: true
|
|
124
|
+
}
|
|
125
|
+
}, activeGroup);
|
|
126
|
+
}
|
|
127
|
+
await editorService.replaceEditors([
|
|
128
|
+
{
|
|
129
|
+
editor: diffInput,
|
|
130
|
+
replacement: {
|
|
131
|
+
...untypedDiffInput,
|
|
132
|
+
original: untypedDiffInput.modified,
|
|
133
|
+
modified: untypedDiffInput.original,
|
|
134
|
+
options: {
|
|
135
|
+
...untypedDiffInput.options,
|
|
136
|
+
pinned: true
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
], activeGroup);
|
|
141
|
+
}
|
|
142
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
143
|
+
id: TOGGLE_DIFF_SIDE_BY_SIDE,
|
|
144
|
+
weight: 200 ,
|
|
145
|
+
when: undefined,
|
|
146
|
+
primary: undefined,
|
|
147
|
+
handler: accessor => toggleDiffSideBySide(accessor)
|
|
148
|
+
});
|
|
149
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
150
|
+
id: DIFF_FOCUS_PRIMARY_SIDE,
|
|
151
|
+
weight: 200 ,
|
|
152
|
+
when: undefined,
|
|
153
|
+
primary: undefined,
|
|
154
|
+
handler: accessor => focusInDiffEditor(accessor, FocusTextDiffEditorMode.Modified)
|
|
155
|
+
});
|
|
156
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
157
|
+
id: DIFF_FOCUS_SECONDARY_SIDE,
|
|
158
|
+
weight: 200 ,
|
|
159
|
+
when: undefined,
|
|
160
|
+
primary: undefined,
|
|
161
|
+
handler: accessor => focusInDiffEditor(accessor, FocusTextDiffEditorMode.Original)
|
|
162
|
+
});
|
|
163
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
164
|
+
id: DIFF_FOCUS_OTHER_SIDE,
|
|
165
|
+
weight: 200 ,
|
|
166
|
+
when: undefined,
|
|
167
|
+
primary: undefined,
|
|
168
|
+
handler: accessor => focusInDiffEditor(accessor, FocusTextDiffEditorMode.Toggle)
|
|
169
|
+
});
|
|
170
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
171
|
+
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
172
|
+
weight: 200 ,
|
|
173
|
+
when: undefined,
|
|
174
|
+
primary: undefined,
|
|
175
|
+
handler: accessor => toggleDiffIgnoreTrimWhitespace(accessor)
|
|
176
|
+
});
|
|
177
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
178
|
+
id: DIFF_SWAP_SIDES,
|
|
179
|
+
weight: 200 ,
|
|
180
|
+
when: undefined,
|
|
181
|
+
primary: undefined,
|
|
182
|
+
handler: accessor => swapDiffSides(accessor)
|
|
183
|
+
});
|
|
184
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
185
|
+
command: {
|
|
186
|
+
id: TOGGLE_DIFF_SIDE_BY_SIDE,
|
|
187
|
+
title: ( localize2WithPath(
|
|
188
|
+
'vs/workbench/browser/parts/editor/diffEditorCommands',
|
|
189
|
+
'toggleInlineView',
|
|
190
|
+
"Toggle Inline View"
|
|
191
|
+
)),
|
|
192
|
+
category: ( localizeWithPath(
|
|
193
|
+
'vs/workbench/browser/parts/editor/diffEditorCommands',
|
|
194
|
+
'compare',
|
|
195
|
+
"Compare"
|
|
196
|
+
))
|
|
197
|
+
},
|
|
198
|
+
when: TextCompareEditorActiveContext
|
|
199
|
+
});
|
|
200
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
201
|
+
command: {
|
|
202
|
+
id: DIFF_SWAP_SIDES,
|
|
203
|
+
title: ( localize2WithPath(
|
|
204
|
+
'vs/workbench/browser/parts/editor/diffEditorCommands',
|
|
205
|
+
'swapDiffSides',
|
|
206
|
+
"Swap Left and Right Editor Side"
|
|
207
|
+
)),
|
|
208
|
+
category: ( localizeWithPath(
|
|
209
|
+
'vs/workbench/browser/parts/editor/diffEditorCommands',
|
|
210
|
+
'compare',
|
|
211
|
+
"Compare"
|
|
212
|
+
))
|
|
213
|
+
},
|
|
214
|
+
when: ( ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext))
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
export { DIFF_FOCUS_OTHER_SIDE, DIFF_FOCUS_PRIMARY_SIDE, DIFF_FOCUS_SECONDARY_SIDE, DIFF_OPEN_SIDE, DIFF_SWAP_SIDES, GOTO_NEXT_CHANGE, GOTO_PREVIOUS_CHANGE, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE, TOGGLE_DIFF_SIDE_BY_SIDE, registerDiffEditorCommands };
|
|
@@ -2,7 +2,7 @@ import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
|
2
2
|
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
3
3
|
import { EditorPaneDescriptor } from '../../editor.js';
|
|
4
4
|
import { EditorExtensions } from '../../../common/editor.js';
|
|
5
|
-
import { IsAuxiliaryEditorPartContext, ActiveEditorGroupLockedContext, EditorPartMultipleEditorGroupsContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, TextCompareEditorActiveContext, ActiveEditorDirtyContext,
|
|
5
|
+
import { IsAuxiliaryEditorPartContext, ActiveEditorGroupLockedContext, EditorPartMultipleEditorGroupsContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, TextCompareEditorActiveContext, ActiveEditorDirtyContext, ActiveCompareEditorCanSwapContext } from '../../../common/contextkeys.js';
|
|
6
6
|
import { SideBySideEditorInput, SideBySideEditorInputSerializer } from '../../../common/editor/sideBySideEditorInput.js';
|
|
7
7
|
import { TextResourceEditor } from './textResourceEditor.js';
|
|
8
8
|
import { SideBySideEditor } from './sideBySideEditor.js';
|
|
@@ -16,7 +16,8 @@ import { Categories } from '../../../../platform/action/common/actionCommonCateg
|
|
|
16
16
|
import { registerAction2, MenuRegistry, MenuId } from '../../../../platform/actions/common/actions.js';
|
|
17
17
|
import { SyncDescriptor } from '../../../../platform/instantiation/common/descriptors.js';
|
|
18
18
|
import { ShowEditorsInActiveGroupByMostRecentlyUsedAction, ShowAllEditorsByAppearanceAction, ShowAllEditorsByMostRecentlyUsedAction, NavigateBackwardsAction, NavigateForwardAction, ReopenClosedEditorAction, ClearRecentFilesAction, EditorLayoutSingleAction, EditorLayoutTwoColumnsAction, EditorLayoutThreeColumnsAction, EditorLayoutTwoRowsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoRowsRightAction, EditorLayoutTwoColumnsBottomAction, OpenNextEditor, OpenPreviousEditor, OpenNextEditorInGroup, OpenPreviousEditorInGroup, OpenFirstEditorInGroup, OpenLastEditorInGroup, OpenNextRecentlyUsedEditorAction, OpenPreviousRecentlyUsedEditorAction, OpenNextRecentlyUsedEditorInGroupAction, OpenPreviousRecentlyUsedEditorInGroupAction, CloseAllEditorsAction, CloseAllEditorGroupsAction, CloseLeftEditorsInGroupAction, CloseEditorsInOtherGroupsAction, CloseEditorInAllGroupsAction, RevertAndCloseEditorAction, SplitEditorAction, SplitEditorOrthogonalAction, SplitEditorLeftAction, SplitEditorRightAction, SplitEditorUpAction, SplitEditorDownAction, JoinTwoGroupsAction, JoinAllGroupsAction, NavigateBetweenGroupsAction, ResetGroupSizesAction, ToggleGroupSizesAction, MaximizeGroupHideSidebarAction, ToggleMaximizeEditorGroupAction, MinimizeOtherGroupsAction, MinimizeOtherGroupsHideSidebarAction, MoveEditorLeftInGroupAction, MoveEditorRightInGroupAction, MoveGroupLeftAction, MoveGroupRightAction, MoveGroupUpAction, MoveGroupDownAction, DuplicateGroupLeftAction, DuplicateGroupRightAction, DuplicateGroupUpAction, DuplicateGroupDownAction, MoveEditorToPreviousGroupAction, MoveEditorToNextGroupAction, MoveEditorToFirstGroupAction, MoveEditorToLastGroupAction, MoveEditorToLeftGroupAction, MoveEditorToRightGroupAction, MoveEditorToAboveGroupAction, MoveEditorToBelowGroupAction, SplitEditorToPreviousGroupAction, SplitEditorToNextGroupAction, SplitEditorToFirstGroupAction, SplitEditorToLastGroupAction, SplitEditorToLeftGroupAction, SplitEditorToRightGroupAction, SplitEditorToAboveGroupAction, SplitEditorToBelowGroupAction, FocusActiveGroupAction, FocusFirstGroupAction, FocusLastGroupAction, FocusPreviousGroup, FocusNextGroup, FocusLeftGroup, FocusRightGroup, FocusAboveGroup, FocusBelowGroup, NewEditorGroupLeftAction, NewEditorGroupRightAction, NewEditorGroupAboveAction, NewEditorGroupBelowAction, NavigatePreviousAction, NavigateForwardInEditsAction, NavigateBackwardsInEditsAction, NavigatePreviousInEditsAction, NavigateToLastEditLocationAction, NavigateForwardInNavigationsAction, NavigateBackwardsInNavigationsAction, NavigatePreviousInNavigationsAction, NavigateToLastNavigationLocationAction, ClearEditorHistoryAction, ToggleEditorTypeAction, ReOpenInTextEditorAction, QuickAccessPreviousRecentlyUsedEditorAction, QuickAccessLeastRecentlyUsedEditorAction, QuickAccessPreviousRecentlyUsedEditorInGroupAction, QuickAccessLeastRecentlyUsedEditorInGroupAction, QuickAccessPreviousEditorFromHistoryAction, MoveEditorToNewWindowAction, CopyEditorToNewindowAction, MoveEditorGroupToNewWindowAction, CopyEditorGroupToNewWindowAction, RestoreEditorsToMainWindowAction, NewEmptyEditorWindowAction } from './editorActions.js';
|
|
19
|
-
import { setup, LOCK_GROUP_COMMAND_ID, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, TOGGLE_LOCK_GROUP_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, REOPEN_WITH_COMMAND_ID, KEEP_EDITOR_COMMAND_ID, PIN_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, SPLIT_EDITOR_IN_GROUP, JOIN_EDITOR_IN_GROUP, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
19
|
+
import { setup, LOCK_GROUP_COMMAND_ID, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, TOGGLE_LOCK_GROUP_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, REOPEN_WITH_COMMAND_ID, KEEP_EDITOR_COMMAND_ID, PIN_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, SPLIT_EDITOR_IN_GROUP, JOIN_EDITOR_IN_GROUP, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_MAXIMIZE_EDITOR_GROUP, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_SECOND_SIDE_EDITOR, SPLIT_EDITOR, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT } from './editorCommands.js';
|
|
20
|
+
import { TOGGLE_DIFF_SIDE_BY_SIDE, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE, DIFF_SWAP_SIDES } from './diffEditorCommands.js';
|
|
20
21
|
import { getQuickNavigateHandler, inQuickPickContext } from '../../quickaccess.js';
|
|
21
22
|
import { KeybindingsRegistry } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
22
23
|
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
@@ -644,16 +645,6 @@ const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.a
|
|
|
644
645
|
'previousChangeIcon',
|
|
645
646
|
'Icon for the previous change action in the diff editor.'
|
|
646
647
|
)));
|
|
647
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localizeWithPath(
|
|
648
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
649
|
-
'nextChangeIcon',
|
|
650
|
-
'Icon for the next change action in the diff editor.'
|
|
651
|
-
)));
|
|
652
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localizeWithPath(
|
|
653
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
654
|
-
'toggleWhitespace',
|
|
655
|
-
'Icon for the toggle whitespace action in the diff editor.'
|
|
656
|
-
)));
|
|
657
648
|
appendEditorToolItem({
|
|
658
649
|
id: GOTO_PREVIOUS_CHANGE,
|
|
659
650
|
title: ( localizeWithPath(
|
|
@@ -663,6 +654,11 @@ appendEditorToolItem({
|
|
|
663
654
|
)),
|
|
664
655
|
icon: previousChangeIcon
|
|
665
656
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges);
|
|
657
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localizeWithPath(
|
|
658
|
+
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
659
|
+
'nextChangeIcon',
|
|
660
|
+
'Icon for the next change action in the diff editor.'
|
|
661
|
+
)));
|
|
666
662
|
appendEditorToolItem({
|
|
667
663
|
id: GOTO_NEXT_CHANGE,
|
|
668
664
|
title: ( localizeWithPath(
|
|
@@ -680,10 +676,12 @@ appendEditorToolItem({
|
|
|
680
676
|
"Swap Left and Right Side"
|
|
681
677
|
)),
|
|
682
678
|
icon: Codicon.arrowSwap
|
|
683
|
-
}, ( ContextKeyExpr.and(
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
679
|
+
}, ( ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext)), 15, undefined, undefined);
|
|
680
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localizeWithPath(
|
|
681
|
+
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
682
|
+
'toggleWhitespace',
|
|
683
|
+
'Icon for the toggle whitespace action in the diff editor.'
|
|
684
|
+
)));
|
|
687
685
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
688
686
|
command: {
|
|
689
687
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize2WithPath, localizeWithPath } from '../../../../nls.js';
|
|
3
3
|
import { Action } from '../../../../base/common/actions.js';
|
|
4
4
|
import { firstOrDefault } from '../../../../base/common/arrays.js';
|
|
5
5
|
import { EditorResourceAccessor, DEFAULT_EDITOR_ASSOCIATION } from '../../../common/editor.js';
|
|
@@ -8,7 +8,7 @@ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layout
|
|
|
8
8
|
import { IHistoryService } from '../../../services/history/common/history.js';
|
|
9
9
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
10
10
|
import { ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
11
|
-
import {
|
|
11
|
+
import { SPLIT_EDITOR, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, CLOSE_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, COPY_ACTIVE_EDITOR_COMMAND_ID, LAYOUT_EDITOR_GROUPS_COMMAND_ID, splitEditor, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, TOGGLE_MAXIMIZE_EDITOR_GROUP, resolveCommandsContext, getCommandsContext, MOVE_ACTIVE_EDITOR_COMMAND_ID, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID } from './editorCommands.js';
|
|
12
12
|
import { IEditorGroupsService, preferredSideBySideGroupDirection } from '../../../services/editor/common/editorGroupsService.js';
|
|
13
13
|
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
14
14
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
@@ -49,7 +49,7 @@ let EditorAutoSave = class EditorAutoSave extends Disposable {
|
|
|
49
49
|
const workingCopyResult = this.waitingOnConditionAutoSaveWorkingCopies.get(resource);
|
|
50
50
|
if (workingCopyResult?.condition === condition) {
|
|
51
51
|
if (workingCopyResult.workingCopy.isDirty() &&
|
|
52
|
-
this.filesConfigurationService.getAutoSaveMode(workingCopyResult.workingCopy.resource).mode !== 0 ) {
|
|
52
|
+
this.filesConfigurationService.getAutoSaveMode(workingCopyResult.workingCopy.resource, workingCopyResult.reason).mode !== 0 ) {
|
|
53
53
|
this.discardAutoSave(workingCopyResult.workingCopy);
|
|
54
54
|
this.logService.info(`[editor auto save] running auto save from condition change event`, ( workingCopyResult.workingCopy.resource.toString()), workingCopyResult.workingCopy.typeId);
|
|
55
55
|
workingCopyResult.workingCopy.save({ reason: workingCopyResult.reason });
|
|
@@ -60,7 +60,7 @@ let EditorAutoSave = class EditorAutoSave extends Disposable {
|
|
|
60
60
|
if (editorResult?.condition === condition &&
|
|
61
61
|
!editorResult.editor.editor.isDisposed() &&
|
|
62
62
|
editorResult.editor.editor.isDirty() &&
|
|
63
|
-
this.filesConfigurationService.getAutoSaveMode(editorResult.editor.editor).mode !== 0 ) {
|
|
63
|
+
this.filesConfigurationService.getAutoSaveMode(editorResult.editor.editor, editorResult.reason).mode !== 0 ) {
|
|
64
64
|
this.waitingOnConditionAutoSaveEditors.delete(resource);
|
|
65
65
|
this.logService.info(`[editor auto save] running auto save from condition change event with reason ${editorResult.reason}`);
|
|
66
66
|
this.editorService.save(editorResult.editor, { reason: editorResult.reason });
|
|
@@ -98,7 +98,7 @@ let EditorAutoSave = class EditorAutoSave extends Disposable {
|
|
|
98
98
|
editorIdentifier.editor.hasCapability(4 )) {
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
|
-
const autoSaveMode = this.filesConfigurationService.getAutoSaveMode(editorIdentifier.editor);
|
|
101
|
+
const autoSaveMode = this.filesConfigurationService.getAutoSaveMode(editorIdentifier.editor, reason);
|
|
102
102
|
if (autoSaveMode.mode !== 0 ) {
|
|
103
103
|
if ((reason === 4 && ((autoSaveMode.mode === 3 || autoSaveMode.mode === 4) )) ||
|
|
104
104
|
((reason === 3 && autoSaveMode.mode === 3) )) {
|
|
@@ -137,7 +137,7 @@ let EditorAutoSave = class EditorAutoSave extends Disposable {
|
|
|
137
137
|
if (workingCopy.capabilities & 2 ) {
|
|
138
138
|
continue;
|
|
139
139
|
}
|
|
140
|
-
const autoSaveMode = this.filesConfigurationService.getAutoSaveMode(workingCopy.resource);
|
|
140
|
+
const autoSaveMode = this.filesConfigurationService.getAutoSaveMode(workingCopy.resource, reason);
|
|
141
141
|
if (autoSaveMode.mode !== 0 ) {
|
|
142
142
|
workingCopy.save({ reason });
|
|
143
143
|
}
|
|
@@ -180,13 +180,14 @@ let EditorAutoSave = class EditorAutoSave extends Disposable {
|
|
|
180
180
|
const handle = setTimeout(() => {
|
|
181
181
|
this.discardAutoSave(workingCopy);
|
|
182
182
|
if (workingCopy.isDirty()) {
|
|
183
|
-
const
|
|
183
|
+
const reason = 2 ;
|
|
184
|
+
const autoSaveMode = this.filesConfigurationService.getAutoSaveMode(workingCopy.resource, reason);
|
|
184
185
|
if (autoSaveMode.mode !== 0 ) {
|
|
185
186
|
this.logService.trace(`[editor auto save] running auto save`, ( workingCopy.resource.toString()), workingCopy.typeId);
|
|
186
|
-
workingCopy.save({ reason
|
|
187
|
+
workingCopy.save({ reason });
|
|
187
188
|
}
|
|
188
189
|
else if (autoSaveMode.reason === 3 || autoSaveMode.reason === 4 ) {
|
|
189
|
-
this.waitingOnConditionAutoSaveWorkingCopies.set(workingCopy.resource, { workingCopy, reason
|
|
190
|
+
this.waitingOnConditionAutoSaveWorkingCopies.set(workingCopy.resource, { workingCopy, reason, condition: autoSaveMode.reason });
|
|
190
191
|
}
|
|
191
192
|
}
|
|
192
193
|
}, autoSaveAfterDelay);
|
|
@@ -10,7 +10,7 @@ import { isDiffEditor } from '../../../../editor/browser/editorBrowser.js';
|
|
|
10
10
|
import { EditorContextKeys } from '../../../../editor/common/editorContextKeys.js';
|
|
11
11
|
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
12
12
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
13
|
-
import {
|
|
13
|
+
import { registerAction2, Action2 } from '../../../../platform/actions/common/actions.js';
|
|
14
14
|
import { CommandsRegistry, ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
15
15
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
16
16
|
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
@@ -24,7 +24,7 @@ import { ITelemetryService } from '../../../../platform/telemetry/common/telemet
|
|
|
24
24
|
import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess } from './editorQuickAccess.js';
|
|
25
25
|
import { SideBySideEditor } from './sideBySideEditor.js';
|
|
26
26
|
import { TextDiffEditor } from './textDiffEditor.js';
|
|
27
|
-
import {
|
|
27
|
+
import { ActiveEditorGroupEmptyContext, MultipleEditorGroupsContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, TextCompareEditorActiveContext, ActiveEditorGroupLockedContext, ActiveEditorStickyContext } from '../../../common/contextkeys.js';
|
|
28
28
|
import { isEditorInputWithOptionsAndGroup, isEditorIdentifier } from '../../../common/editor.js';
|
|
29
29
|
import { DiffEditorInput } from '../../../common/editor/diffEditorInput.js';
|
|
30
30
|
import { SideBySideEditorInput } from '../../../common/editor/sideBySideEditorInput.js';
|
|
@@ -34,6 +34,7 @@ import { IEditorResolverService } from '../../../services/editor/common/editorRe
|
|
|
34
34
|
import { IEditorService, SIDE_GROUP } from '../../../services/editor/common/editorService.js';
|
|
35
35
|
import { IPathService } from '../../../services/path/common/pathService.js';
|
|
36
36
|
import { IUntitledTextEditorService } from '../../../services/untitled/common/untitledTextEditorService.js';
|
|
37
|
+
import { registerDiffEditorCommands, DIFF_FOCUS_SECONDARY_SIDE, DIFF_FOCUS_PRIMARY_SIDE, DIFF_FOCUS_OTHER_SIDE, DIFF_OPEN_SIDE } from './diffEditorCommands.js';
|
|
37
38
|
const CLOSE_SAVED_EDITORS_COMMAND_ID = 'workbench.action.closeUnmodifiedEditors';
|
|
38
39
|
const CLOSE_EDITORS_IN_GROUP_COMMAND_ID = 'workbench.action.closeEditorsInGroup';
|
|
39
40
|
const CLOSE_EDITORS_AND_GROUP_COMMAND_ID = 'workbench.action.closeEditorsAndGroup';
|
|
@@ -54,15 +55,6 @@ const SHOW_EDITORS_IN_GROUP = 'workbench.action.showEditorsInGroup';
|
|
|
54
55
|
const REOPEN_WITH_COMMAND_ID = 'workbench.action.reopenWithEditor';
|
|
55
56
|
const PIN_EDITOR_COMMAND_ID = 'workbench.action.pinEditor';
|
|
56
57
|
const UNPIN_EDITOR_COMMAND_ID = 'workbench.action.unpinEditor';
|
|
57
|
-
const TOGGLE_DIFF_SIDE_BY_SIDE = 'toggle.diff.renderSideBySide';
|
|
58
|
-
const GOTO_NEXT_CHANGE = 'workbench.action.compareEditor.nextChange';
|
|
59
|
-
const GOTO_PREVIOUS_CHANGE = 'workbench.action.compareEditor.previousChange';
|
|
60
|
-
const DIFF_FOCUS_PRIMARY_SIDE = 'workbench.action.compareEditor.focusPrimarySide';
|
|
61
|
-
const DIFF_FOCUS_SECONDARY_SIDE = 'workbench.action.compareEditor.focusSecondarySide';
|
|
62
|
-
const DIFF_FOCUS_OTHER_SIDE = 'workbench.action.compareEditor.focusOtherSide';
|
|
63
|
-
const DIFF_OPEN_SIDE = 'workbench.action.compareEditor.openSide';
|
|
64
|
-
const TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE = 'toggle.diff.ignoreTrimWhitespace';
|
|
65
|
-
const DIFF_SWAP_SIDES = 'workbench.action.compareEditor.swapSides';
|
|
66
58
|
const SPLIT_EDITOR = 'workbench.action.splitEditor';
|
|
67
59
|
const SPLIT_EDITOR_UP = 'workbench.action.splitEditorUp';
|
|
68
60
|
const SPLIT_EDITOR_DOWN = 'workbench.action.splitEditorDown';
|
|
@@ -344,196 +336,6 @@ function registerEditorGroupsLayoutCommands() {
|
|
|
344
336
|
}
|
|
345
337
|
});
|
|
346
338
|
}
|
|
347
|
-
function registerDiffEditorCommands() {
|
|
348
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
349
|
-
id: GOTO_NEXT_CHANGE,
|
|
350
|
-
weight: 200 ,
|
|
351
|
-
when: TextCompareEditorVisibleContext,
|
|
352
|
-
primary: 512 | 63 ,
|
|
353
|
-
handler: accessor => navigateInDiffEditor(accessor, true)
|
|
354
|
-
});
|
|
355
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
356
|
-
command: {
|
|
357
|
-
id: GOTO_NEXT_CHANGE,
|
|
358
|
-
title: ( localize2WithPath(
|
|
359
|
-
'vs/workbench/browser/parts/editor/editorCommands',
|
|
360
|
-
'compare.nextChange',
|
|
361
|
-
'Go to Next Change'
|
|
362
|
-
)),
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
366
|
-
id: GOTO_PREVIOUS_CHANGE,
|
|
367
|
-
weight: 200 ,
|
|
368
|
-
when: TextCompareEditorVisibleContext,
|
|
369
|
-
primary: 512 | 1024 | 63 ,
|
|
370
|
-
handler: accessor => navigateInDiffEditor(accessor, false)
|
|
371
|
-
});
|
|
372
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
373
|
-
command: {
|
|
374
|
-
id: GOTO_PREVIOUS_CHANGE,
|
|
375
|
-
title: ( localize2WithPath(
|
|
376
|
-
'vs/workbench/browser/parts/editor/editorCommands',
|
|
377
|
-
'compare.previousChange',
|
|
378
|
-
'Go to Previous Change'
|
|
379
|
-
)),
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
function getActiveTextDiffEditor(accessor) {
|
|
383
|
-
const editorService = accessor.get(IEditorService);
|
|
384
|
-
for (const editor of [editorService.activeEditorPane, ...editorService.visibleEditorPanes]) {
|
|
385
|
-
if (editor instanceof TextDiffEditor) {
|
|
386
|
-
return editor;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
return undefined;
|
|
390
|
-
}
|
|
391
|
-
function navigateInDiffEditor(accessor, next) {
|
|
392
|
-
const activeTextDiffEditor = getActiveTextDiffEditor(accessor);
|
|
393
|
-
if (activeTextDiffEditor) {
|
|
394
|
-
activeTextDiffEditor.getControl()?.goToDiff(next ? 'next' : 'previous');
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
let FocusTextDiffEditorMode;
|
|
398
|
-
( (function(FocusTextDiffEditorMode) {
|
|
399
|
-
FocusTextDiffEditorMode[FocusTextDiffEditorMode["Original"] = 0] = "Original";
|
|
400
|
-
FocusTextDiffEditorMode[FocusTextDiffEditorMode["Modified"] = 1] = "Modified";
|
|
401
|
-
FocusTextDiffEditorMode[FocusTextDiffEditorMode["Toggle"] = 2] = "Toggle";
|
|
402
|
-
})(FocusTextDiffEditorMode || (FocusTextDiffEditorMode = {})));
|
|
403
|
-
function focusInDiffEditor(accessor, mode) {
|
|
404
|
-
const activeTextDiffEditor = getActiveTextDiffEditor(accessor);
|
|
405
|
-
if (activeTextDiffEditor) {
|
|
406
|
-
switch (mode) {
|
|
407
|
-
case FocusTextDiffEditorMode.Original:
|
|
408
|
-
activeTextDiffEditor.getControl()?.getOriginalEditor().focus();
|
|
409
|
-
break;
|
|
410
|
-
case FocusTextDiffEditorMode.Modified:
|
|
411
|
-
activeTextDiffEditor.getControl()?.getModifiedEditor().focus();
|
|
412
|
-
break;
|
|
413
|
-
case FocusTextDiffEditorMode.Toggle:
|
|
414
|
-
if (activeTextDiffEditor.getControl()?.getModifiedEditor().hasWidgetFocus()) {
|
|
415
|
-
return focusInDiffEditor(accessor, FocusTextDiffEditorMode.Original);
|
|
416
|
-
}
|
|
417
|
-
else {
|
|
418
|
-
return focusInDiffEditor(accessor, FocusTextDiffEditorMode.Modified);
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
function toggleDiffSideBySide(accessor) {
|
|
424
|
-
const configurationService = accessor.get(IConfigurationService);
|
|
425
|
-
const newValue = !configurationService.getValue('diffEditor.renderSideBySide');
|
|
426
|
-
configurationService.updateValue('diffEditor.renderSideBySide', newValue);
|
|
427
|
-
}
|
|
428
|
-
function toggleDiffIgnoreTrimWhitespace(accessor) {
|
|
429
|
-
const configurationService = accessor.get(IConfigurationService);
|
|
430
|
-
const newValue = !configurationService.getValue('diffEditor.ignoreTrimWhitespace');
|
|
431
|
-
configurationService.updateValue('diffEditor.ignoreTrimWhitespace', newValue);
|
|
432
|
-
}
|
|
433
|
-
async function swapDiffSides(accessor) {
|
|
434
|
-
const editorService = accessor.get(IEditorService);
|
|
435
|
-
const diffEditor = getActiveTextDiffEditor(accessor);
|
|
436
|
-
const activeGroup = diffEditor?.group;
|
|
437
|
-
const diffInput = diffEditor?.input;
|
|
438
|
-
if (!diffEditor || typeof activeGroup === 'undefined' || !(diffInput instanceof DiffEditorInput) || !diffInput.modified.resource) {
|
|
439
|
-
return;
|
|
440
|
-
}
|
|
441
|
-
const untypedDiffInput = diffInput.toUntyped({ preserveViewState: activeGroup.id, preserveResource: true });
|
|
442
|
-
if (!untypedDiffInput) {
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
if (diffInput.modified.isModified() && editorService.findEditors({ resource: diffInput.modified.resource, typeId: diffInput.modified.typeId, editorId: diffInput.modified.editorId }).length === 0) {
|
|
446
|
-
await editorService.openEditor({
|
|
447
|
-
...untypedDiffInput.modified,
|
|
448
|
-
options: {
|
|
449
|
-
...untypedDiffInput.modified.options,
|
|
450
|
-
pinned: true,
|
|
451
|
-
inactive: true
|
|
452
|
-
}
|
|
453
|
-
}, activeGroup);
|
|
454
|
-
}
|
|
455
|
-
await editorService.replaceEditors([
|
|
456
|
-
{
|
|
457
|
-
editor: diffInput,
|
|
458
|
-
replacement: {
|
|
459
|
-
...untypedDiffInput,
|
|
460
|
-
original: untypedDiffInput.modified,
|
|
461
|
-
modified: untypedDiffInput.original,
|
|
462
|
-
options: {
|
|
463
|
-
...untypedDiffInput.options,
|
|
464
|
-
pinned: true
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
], activeGroup);
|
|
469
|
-
}
|
|
470
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
471
|
-
id: TOGGLE_DIFF_SIDE_BY_SIDE,
|
|
472
|
-
weight: 200 ,
|
|
473
|
-
when: undefined,
|
|
474
|
-
primary: undefined,
|
|
475
|
-
handler: accessor => toggleDiffSideBySide(accessor)
|
|
476
|
-
});
|
|
477
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
478
|
-
id: DIFF_FOCUS_PRIMARY_SIDE,
|
|
479
|
-
weight: 200 ,
|
|
480
|
-
when: undefined,
|
|
481
|
-
primary: undefined,
|
|
482
|
-
handler: accessor => focusInDiffEditor(accessor, FocusTextDiffEditorMode.Modified)
|
|
483
|
-
});
|
|
484
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
485
|
-
id: DIFF_FOCUS_SECONDARY_SIDE,
|
|
486
|
-
weight: 200 ,
|
|
487
|
-
when: undefined,
|
|
488
|
-
primary: undefined,
|
|
489
|
-
handler: accessor => focusInDiffEditor(accessor, FocusTextDiffEditorMode.Original)
|
|
490
|
-
});
|
|
491
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
492
|
-
id: DIFF_FOCUS_OTHER_SIDE,
|
|
493
|
-
weight: 200 ,
|
|
494
|
-
when: undefined,
|
|
495
|
-
primary: undefined,
|
|
496
|
-
handler: accessor => focusInDiffEditor(accessor, FocusTextDiffEditorMode.Toggle)
|
|
497
|
-
});
|
|
498
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
499
|
-
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
500
|
-
weight: 200 ,
|
|
501
|
-
when: undefined,
|
|
502
|
-
primary: undefined,
|
|
503
|
-
handler: accessor => toggleDiffIgnoreTrimWhitespace(accessor)
|
|
504
|
-
});
|
|
505
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
506
|
-
id: DIFF_SWAP_SIDES,
|
|
507
|
-
weight: 200 ,
|
|
508
|
-
when: undefined,
|
|
509
|
-
primary: undefined,
|
|
510
|
-
handler: accessor => swapDiffSides(accessor)
|
|
511
|
-
});
|
|
512
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
513
|
-
command: {
|
|
514
|
-
id: TOGGLE_DIFF_SIDE_BY_SIDE,
|
|
515
|
-
title: ( localize2WithPath(
|
|
516
|
-
'vs/workbench/browser/parts/editor/editorCommands',
|
|
517
|
-
'toggleInlineView',
|
|
518
|
-
"Toggle Inline View"
|
|
519
|
-
)),
|
|
520
|
-
category: ( localizeWithPath('vs/workbench/browser/parts/editor/editorCommands', 'compare', "Compare"))
|
|
521
|
-
},
|
|
522
|
-
when: TextCompareEditorActiveContext
|
|
523
|
-
});
|
|
524
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
525
|
-
command: {
|
|
526
|
-
id: DIFF_SWAP_SIDES,
|
|
527
|
-
title: ( localize2WithPath(
|
|
528
|
-
'vs/workbench/browser/parts/editor/editorCommands',
|
|
529
|
-
'swapDiffSides',
|
|
530
|
-
"Swap Left and Right Editor Side"
|
|
531
|
-
)),
|
|
532
|
-
category: ( localizeWithPath('vs/workbench/browser/parts/editor/editorCommands', 'compare', "Compare"))
|
|
533
|
-
},
|
|
534
|
-
when: TextCompareEditorActiveContext
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
339
|
function registerOpenEditorAPICommands() {
|
|
538
340
|
function mixinContext(context, options, column) {
|
|
539
341
|
if (!context) {
|
|
@@ -1459,4 +1261,4 @@ function setup() {
|
|
|
1459
1261
|
registerSplitEditorCommands();
|
|
1460
1262
|
registerFocusEditorGroupWihoutWrapCommands();
|
|
1461
1263
|
}
|
|
1462
|
-
export { API_OPEN_DIFF_EDITOR_COMMAND_ID, API_OPEN_EDITOR_COMMAND_ID, API_OPEN_WITH_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, COPY_ACTIVE_EDITOR_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
1264
|
+
export { API_OPEN_DIFF_EDITOR_COMMAND_ID, API_OPEN_EDITOR_COMMAND_ID, API_OPEN_WITH_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, COPY_ACTIVE_EDITOR_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, EDITOR_CORE_NAVIGATION_COMMANDS, FOCUS_ABOVE_GROUP_WITHOUT_WRAP_COMMAND_ID, FOCUS_BELOW_GROUP_WITHOUT_WRAP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_LEFT_GROUP_WITHOUT_WRAP_COMMAND_ID, FOCUS_OTHER_SIDE_EDITOR, FOCUS_RIGHT_GROUP_WITHOUT_WRAP_COMMAND_ID, FOCUS_SECOND_SIDE_EDITOR, JOIN_EDITOR_IN_GROUP, KEEP_EDITOR_COMMAND_ID, LAYOUT_EDITOR_GROUPS_COMMAND_ID, LOCK_GROUP_COMMAND_ID, MOVE_ACTIVE_EDITOR_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, OPEN_EDITOR_AT_INDEX_COMMAND_ID, PIN_EDITOR_COMMAND_ID, REOPEN_WITH_COMMAND_ID, SHOW_EDITORS_IN_GROUP, SPLIT_EDITOR, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_IN_GROUP, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, SPLIT_EDITOR_UP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_LOCK_GROUP_COMMAND_ID, TOGGLE_MAXIMIZE_EDITOR_GROUP, TOGGLE_SPLIT_EDITOR_IN_GROUP, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT, UNLOCK_GROUP_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, getCommandsContext, getMultiSelectedEditorContexts, resolveCommandsContext, setup, splitEditor };
|
|
@@ -74,7 +74,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
74
74
|
})();
|
|
75
75
|
}
|
|
76
76
|
registerListeners() {
|
|
77
|
-
Event.debounce(this.editorResolverService.onDidChangeEditorRegistrations, (_, e) => e)(() => this.updateDynamicEditorConfigurations());
|
|
77
|
+
this._register(Event.debounce(this.editorResolverService.onDidChangeEditorRegistrations, (_, e) => e)(() => this.updateDynamicEditorConfigurations()));
|
|
78
78
|
}
|
|
79
79
|
updateDynamicEditorConfigurations() {
|
|
80
80
|
const lockableEditors = [...this.editorResolverService.getEditors(), ...DynamicEditorConfigurations_1.AUTO_LOCK_EXTRA_EDITORS].filter(e => !( DynamicEditorConfigurations_1.AUTO_LOCK_REMOVE_EDITORS.has(e.id)));
|
|
@@ -11,7 +11,17 @@ import { localizeWithPath } from '../../../../nls.js';
|
|
|
11
11
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
12
12
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
13
13
|
import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
14
|
-
import
|
|
14
|
+
import '../../../../platform/theme/common/colorUtils.js';
|
|
15
|
+
import { activeContrastBorder } from '../../../../platform/theme/common/colors/baseColors.js';
|
|
16
|
+
import '../../../../platform/theme/common/colors/chartsColors.js';
|
|
17
|
+
import '../../../../platform/theme/common/colors/editorColors.js';
|
|
18
|
+
import '../../../../platform/theme/common/colors/inputColors.js';
|
|
19
|
+
import '../../../../platform/theme/common/colors/listColors.js';
|
|
20
|
+
import '../../../../platform/theme/common/colors/menuColors.js';
|
|
21
|
+
import '../../../../platform/theme/common/colors/minimapColors.js';
|
|
22
|
+
import '../../../../platform/theme/common/colors/miscColors.js';
|
|
23
|
+
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
24
|
+
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
15
25
|
import { Themable, IThemeService } from '../../../../platform/theme/common/themeService.js';
|
|
16
26
|
import { isTemporaryWorkspace, IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.js';
|
|
17
27
|
import { LocalSelectionTransfer, Extensions, containsDragType, CodeDataTransfers } from '../../../../platform/dnd/browser/dnd.js';
|