@codingame/monaco-vscode-api 1.85.0 → 1.85.2
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 +31 -13
- package/contributions.js +1 -0
- package/missing-services.js +396 -68
- package/monaco-editor-treemending.patch +957 -950
- package/package.json +8 -7
- package/service-override/tools/editor.js +1 -1
- package/services.js +10 -6
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +14 -0
- package/vscode/src/vs/base/common/jsonFormatter.js +8 -1
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +128 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +140 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -1
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1062 -93
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +220 -0
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +58 -0
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +102 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +56 -1
- package/vscode/src/vs/platform/userDataSync/common/content.js +9 -0
- package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +514 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +154 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.js +43 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +177 -0
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebview.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +186 -4
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +105 -0
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +1614 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +191 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +238 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +205 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +168 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +340 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +1195 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +81 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +583 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +290 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +167 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +562 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +31 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +24 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +193 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +22 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +52 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +258 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +25 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +388 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +61 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +49 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +647 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +300 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +60 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +249 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +107 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +333 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +99 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +55 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +2 -0
- package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +20 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +855 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +410 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1591 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +178 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1485 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +125 -0
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +29 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +41 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +102 -0
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +73 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +988 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +431 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +417 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +806 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +915 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +19 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +129 -10
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +205 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +150 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +480 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +90 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +258 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +614 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +44 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +169 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +64 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/cellOutputClipboard.js +49 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +120 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +416 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +663 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +593 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +72 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +326 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +539 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +265 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +348 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +95 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +437 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2730 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +139 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +564 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +119 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +135 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +178 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +35 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +377 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +97 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +194 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +71 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +85 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +652 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +59 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +303 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +228 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +302 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +438 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +45 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +435 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +95 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +107 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +59 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +67 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +430 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +54 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +1131 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +1591 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +341 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +2155 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +65 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +95 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +507 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +85 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +47 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +40 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +435 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +31 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +257 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +239 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +103 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +211 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +808 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +381 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +527 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +163 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +651 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +173 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +98 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +62 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +101 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +346 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +152 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +39 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +296 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +261 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKeymapService.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookLoggingService.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +16 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +66 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +4 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +130 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +847 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +89 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +1942 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +107 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +49 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +387 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +66 -0
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +24 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +95 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +12 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +712 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +130 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -1
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/featuredExtensionService.js +159 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +375 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +563 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +932 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +20 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +205 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +11 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +9 -9
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +1 -1
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +2 -2
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.js +24 -1
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +15 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +41 -0
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +588 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +43 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +190 -2
- package/vscode/src/vs/workbench/services/search/common/search.js +3 -3
- package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.js +75 -1
- package/vscode/src/vs/workbench/services/timer/browser/timerService.js +240 -1
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +31 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +25 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +75 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +74 -4
- package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +77 -0
- package/assets/break.mp3 +0 -0
- package/assets/chatRequestSent.mp3 +0 -0
- package/assets/chatResponsePending.mp3 +0 -0
- package/assets/chatResponseReceived1.mp3 +0 -0
- package/assets/chatResponseReceived2.mp3 +0 -0
- package/assets/chatResponseReceived3.mp3 +0 -0
- package/assets/chatResponseReceived4.mp3 +0 -0
- package/assets/clear.mp3 +0 -0
- package/assets/defaultIcon.png +0 -0
- package/assets/diffLineDeleted.mp3 +0 -0
- package/assets/diffLineInserted.mp3 +0 -0
- package/assets/diffLineModified.mp3 +0 -0
- package/assets/error.mp3 +0 -0
- package/assets/fake.html +0 -10
- package/assets/foldedAreas.mp3 +0 -0
- package/assets/format.mp3 +0 -0
- package/assets/index-no-csp.html +0 -1226
- package/assets/index.html +0 -1227
- package/assets/quickFixes.mp3 +0 -0
- package/assets/save.mp3 +0 -0
- package/assets/service-worker.js +0 -457
- package/assets/taskCompleted.mp3 +0 -0
- package/assets/taskFailed.mp3 +0 -0
- package/assets/terminalBell.mp3 +0 -0
- package/assets/warning.mp3 +0 -0
- package/assets/webWorkerExtensionHostIframe.html +0 -123
- package/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -2
- package/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2
- package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -5
- package/vscode/src/vs/base/parts/request/browser/request.js +0 -60
- package/vscode/src/vs/platform/request/browser/requestService.js +0 -28
- package/vscode/src/vs/platform/request/common/requestIpc.js +0 -17
- package/vscode/src/vs/platform/url/common/urlService.js +0 -17
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +0 -120
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +0 -319
- package/vscode/src/vs/workbench/services/files/browser/elevatedFileService.js +0 -9
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +0 -408
- package/vscode/src/vs/workbench/services/request/browser/requestService.js +0 -48
- package/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +0 -56
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +0 -639
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +0 -402
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +0 -62
- package/vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +0 -38
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +0 -295
- package/vscode/src/vs/workbench/services/url/browser/urlService.js +0 -47
- package/vscode/src/vs/workbench/services/views/common/treeViewsService.js +0 -20
- package/vscode/src/vs/workbench/services/workspaces/common/canonicalUriService.js +0 -19
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
2
|
+
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
3
|
+
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
|
+
import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
5
|
+
import { newWriteableStream } from 'monaco-editor/esm/vs/base/common/stream.js';
|
|
6
|
+
import { createFileSystemProviderError, FileSystemProviderErrorCode, FileType } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
7
|
+
class File {
|
|
8
|
+
constructor(name) {
|
|
9
|
+
this.type = FileType.File;
|
|
10
|
+
this.ctime = Date.now();
|
|
11
|
+
this.mtime = Date.now();
|
|
12
|
+
this.size = 0;
|
|
13
|
+
this.name = name;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class Directory {
|
|
17
|
+
constructor(name) {
|
|
18
|
+
this.type = FileType.Directory;
|
|
19
|
+
this.ctime = Date.now();
|
|
20
|
+
this.mtime = Date.now();
|
|
21
|
+
this.size = 0;
|
|
22
|
+
this.name = name;
|
|
23
|
+
this.entries = ( new Map());
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
class InMemoryFileSystemProvider extends Disposable {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
this.memoryFdCounter = 0;
|
|
30
|
+
this.fdMemory = ( new Map());
|
|
31
|
+
this._onDidChangeCapabilities = this._register(( new Emitter()));
|
|
32
|
+
this.onDidChangeCapabilities = this._onDidChangeCapabilities.event;
|
|
33
|
+
this._capabilities = 2 | 1024 ;
|
|
34
|
+
this.root = ( new Directory(''));
|
|
35
|
+
this._onDidChangeFile = this._register(( new Emitter()));
|
|
36
|
+
this.onDidChangeFile = this._onDidChangeFile.event;
|
|
37
|
+
this._bufferedChanges = [];
|
|
38
|
+
}
|
|
39
|
+
get capabilities() { return this._capabilities; }
|
|
40
|
+
setReadOnly(readonly) {
|
|
41
|
+
const isReadonly = !!((this._capabilities & 2048) );
|
|
42
|
+
if (readonly !== isReadonly) {
|
|
43
|
+
this._capabilities = readonly ? 2048 | 1024 | 2
|
|
44
|
+
: 2 | 1024 ;
|
|
45
|
+
this._onDidChangeCapabilities.fire();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async stat(resource) {
|
|
49
|
+
return this._lookup(resource, false);
|
|
50
|
+
}
|
|
51
|
+
async readdir(resource) {
|
|
52
|
+
const entry = this._lookupAsDirectory(resource, false);
|
|
53
|
+
const result = [];
|
|
54
|
+
entry.entries.forEach((child, name) => result.push([name, child.type]));
|
|
55
|
+
return result;
|
|
56
|
+
}
|
|
57
|
+
async readFile(resource) {
|
|
58
|
+
const data = this._lookupAsFile(resource, false).data;
|
|
59
|
+
if (data) {
|
|
60
|
+
return data;
|
|
61
|
+
}
|
|
62
|
+
throw createFileSystemProviderError('file not found', FileSystemProviderErrorCode.FileNotFound);
|
|
63
|
+
}
|
|
64
|
+
readFileStream(resource) {
|
|
65
|
+
const data = this._lookupAsFile(resource, false).data;
|
|
66
|
+
const stream = newWriteableStream(data => VSBuffer.concat(( data.map(data => VSBuffer.wrap(data)))).buffer);
|
|
67
|
+
stream.end(data);
|
|
68
|
+
return stream;
|
|
69
|
+
}
|
|
70
|
+
async writeFile(resource, content, opts) {
|
|
71
|
+
const basename = resources.basename(resource);
|
|
72
|
+
const parent = this._lookupParentDirectory(resource);
|
|
73
|
+
let entry = parent.entries.get(basename);
|
|
74
|
+
if (entry instanceof Directory) {
|
|
75
|
+
throw createFileSystemProviderError('file is directory', FileSystemProviderErrorCode.FileIsADirectory);
|
|
76
|
+
}
|
|
77
|
+
if (!entry && !opts.create) {
|
|
78
|
+
throw createFileSystemProviderError('file not found', FileSystemProviderErrorCode.FileNotFound);
|
|
79
|
+
}
|
|
80
|
+
if (entry && opts.create && !opts.overwrite) {
|
|
81
|
+
throw createFileSystemProviderError('file exists already', FileSystemProviderErrorCode.FileExists);
|
|
82
|
+
}
|
|
83
|
+
if (!entry) {
|
|
84
|
+
entry = ( new File(basename));
|
|
85
|
+
parent.entries.set(basename, entry);
|
|
86
|
+
this._fireSoon({ type: 1 , resource });
|
|
87
|
+
}
|
|
88
|
+
entry.mtime = Date.now();
|
|
89
|
+
entry.size = content.byteLength;
|
|
90
|
+
entry.data = content;
|
|
91
|
+
this._fireSoon({ type: 0 , resource });
|
|
92
|
+
}
|
|
93
|
+
open(resource, opts) {
|
|
94
|
+
const data = this._lookupAsFile(resource, false).data;
|
|
95
|
+
if (data) {
|
|
96
|
+
const fd = this.memoryFdCounter++;
|
|
97
|
+
this.fdMemory.set(fd, data);
|
|
98
|
+
return Promise.resolve(fd);
|
|
99
|
+
}
|
|
100
|
+
throw createFileSystemProviderError('file not found', FileSystemProviderErrorCode.FileNotFound);
|
|
101
|
+
}
|
|
102
|
+
close(fd) {
|
|
103
|
+
this.fdMemory.delete(fd);
|
|
104
|
+
return Promise.resolve();
|
|
105
|
+
}
|
|
106
|
+
read(fd, pos, data, offset, length) {
|
|
107
|
+
const memory = this.fdMemory.get(fd);
|
|
108
|
+
if (!memory) {
|
|
109
|
+
throw createFileSystemProviderError(`No file with that descriptor open`, FileSystemProviderErrorCode.Unavailable);
|
|
110
|
+
}
|
|
111
|
+
const toWrite = VSBuffer.wrap(memory).slice(pos, pos + length);
|
|
112
|
+
data.set(toWrite.buffer, offset);
|
|
113
|
+
return Promise.resolve(toWrite.byteLength);
|
|
114
|
+
}
|
|
115
|
+
write(fd, pos, data, offset, length) {
|
|
116
|
+
const memory = this.fdMemory.get(fd);
|
|
117
|
+
if (!memory) {
|
|
118
|
+
throw createFileSystemProviderError(`No file with that descriptor open`, FileSystemProviderErrorCode.Unavailable);
|
|
119
|
+
}
|
|
120
|
+
const toWrite = VSBuffer.wrap(data).slice(offset, offset + length);
|
|
121
|
+
memory.set(toWrite.buffer, pos);
|
|
122
|
+
return Promise.resolve(toWrite.byteLength);
|
|
123
|
+
}
|
|
124
|
+
async rename(from, to, opts) {
|
|
125
|
+
if (!opts.overwrite && this._lookup(to, true)) {
|
|
126
|
+
throw createFileSystemProviderError('file exists already', FileSystemProviderErrorCode.FileExists);
|
|
127
|
+
}
|
|
128
|
+
const entry = this._lookup(from, false);
|
|
129
|
+
const oldParent = this._lookupParentDirectory(from);
|
|
130
|
+
const newParent = this._lookupParentDirectory(to);
|
|
131
|
+
const newName = resources.basename(to);
|
|
132
|
+
oldParent.entries.delete(entry.name);
|
|
133
|
+
entry.name = newName;
|
|
134
|
+
newParent.entries.set(newName, entry);
|
|
135
|
+
this._fireSoon({ type: 2 , resource: from }, { type: 1 , resource: to });
|
|
136
|
+
}
|
|
137
|
+
async delete(resource, opts) {
|
|
138
|
+
const dirname = resources.dirname(resource);
|
|
139
|
+
const basename = resources.basename(resource);
|
|
140
|
+
const parent = this._lookupAsDirectory(dirname, false);
|
|
141
|
+
if (( parent.entries.has(basename))) {
|
|
142
|
+
parent.entries.delete(basename);
|
|
143
|
+
parent.mtime = Date.now();
|
|
144
|
+
parent.size -= 1;
|
|
145
|
+
this._fireSoon({ type: 0 , resource: dirname }, { resource, type: 2 });
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async mkdir(resource) {
|
|
149
|
+
if (this._lookup(resource, true)) {
|
|
150
|
+
throw createFileSystemProviderError('file exists already', FileSystemProviderErrorCode.FileExists);
|
|
151
|
+
}
|
|
152
|
+
const basename = resources.basename(resource);
|
|
153
|
+
const dirname = resources.dirname(resource);
|
|
154
|
+
const parent = this._lookupAsDirectory(dirname, false);
|
|
155
|
+
const entry = ( new Directory(basename));
|
|
156
|
+
parent.entries.set(entry.name, entry);
|
|
157
|
+
parent.mtime = Date.now();
|
|
158
|
+
parent.size += 1;
|
|
159
|
+
this._fireSoon({ type: 0 , resource: dirname }, { type: 1 , resource });
|
|
160
|
+
}
|
|
161
|
+
_lookup(uri, silent) {
|
|
162
|
+
const parts = uri.path.split('/');
|
|
163
|
+
let entry = this.root;
|
|
164
|
+
for (const part of parts) {
|
|
165
|
+
if (!part) {
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
let child;
|
|
169
|
+
if (entry instanceof Directory) {
|
|
170
|
+
child = entry.entries.get(part);
|
|
171
|
+
}
|
|
172
|
+
if (!child) {
|
|
173
|
+
if (!silent) {
|
|
174
|
+
throw createFileSystemProviderError('file not found', FileSystemProviderErrorCode.FileNotFound);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
return undefined;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
entry = child;
|
|
181
|
+
}
|
|
182
|
+
return entry;
|
|
183
|
+
}
|
|
184
|
+
_lookupAsDirectory(uri, silent) {
|
|
185
|
+
const entry = this._lookup(uri, silent);
|
|
186
|
+
if (entry instanceof Directory) {
|
|
187
|
+
return entry;
|
|
188
|
+
}
|
|
189
|
+
throw createFileSystemProviderError('file not a directory', FileSystemProviderErrorCode.FileNotADirectory);
|
|
190
|
+
}
|
|
191
|
+
_lookupAsFile(uri, silent) {
|
|
192
|
+
const entry = this._lookup(uri, silent);
|
|
193
|
+
if (entry instanceof File) {
|
|
194
|
+
return entry;
|
|
195
|
+
}
|
|
196
|
+
throw createFileSystemProviderError('file is a directory', FileSystemProviderErrorCode.FileIsADirectory);
|
|
197
|
+
}
|
|
198
|
+
_lookupParentDirectory(uri) {
|
|
199
|
+
const dirname = resources.dirname(uri);
|
|
200
|
+
return this._lookupAsDirectory(dirname, false);
|
|
201
|
+
}
|
|
202
|
+
watch(resource, opts) {
|
|
203
|
+
return Disposable.None;
|
|
204
|
+
}
|
|
205
|
+
_fireSoon(...changes) {
|
|
206
|
+
this._bufferedChanges.push(...changes);
|
|
207
|
+
if (this._fireSoonHandle) {
|
|
208
|
+
clearTimeout(this._fireSoonHandle);
|
|
209
|
+
}
|
|
210
|
+
this._fireSoonHandle = setTimeout(() => {
|
|
211
|
+
this._onDidChangeFile.fire(this._bufferedChanges);
|
|
212
|
+
this._bufferedChanges.length = 0;
|
|
213
|
+
}, 5);
|
|
214
|
+
}
|
|
215
|
+
dispose() {
|
|
216
|
+
super.dispose();
|
|
217
|
+
this.fdMemory.clear();
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
export { InMemoryFileSystemProvider };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createStyleSheet, clearNode, createCSSRule } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
2
|
+
import { RunOnceScheduler } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
3
|
+
var ZIndex;
|
|
4
|
+
( (function(ZIndex) {
|
|
5
|
+
ZIndex[ZIndex["Base"] = 0] = "Base";
|
|
6
|
+
ZIndex[ZIndex["Sash"] = 35] = "Sash";
|
|
7
|
+
ZIndex[ZIndex["SuggestWidget"] = 40] = "SuggestWidget";
|
|
8
|
+
ZIndex[ZIndex["Hover"] = 50] = "Hover";
|
|
9
|
+
ZIndex[ZIndex["DragImage"] = 1000] = "DragImage";
|
|
10
|
+
ZIndex[ZIndex["MenubarMenuItemsHolder"] = 2000] = "MenubarMenuItemsHolder";
|
|
11
|
+
ZIndex[ZIndex["ContextView"] = 2500] = "ContextView";
|
|
12
|
+
ZIndex[ZIndex["ModalDialog"] = 2600] = "ModalDialog";
|
|
13
|
+
ZIndex[ZIndex["PaneDropOverlay"] = 10000] = "PaneDropOverlay";
|
|
14
|
+
})(ZIndex || (ZIndex = {})));
|
|
15
|
+
const ZIndexValues = ( ( Object.keys(ZIndex)).filter(key => !isNaN(Number(key))).map(key => Number(key))).sort((a, b) => b - a);
|
|
16
|
+
function findBase(z) {
|
|
17
|
+
for (const zi of ZIndexValues) {
|
|
18
|
+
if (z >= zi) {
|
|
19
|
+
return zi;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return -1;
|
|
23
|
+
}
|
|
24
|
+
class ZIndexRegistry {
|
|
25
|
+
constructor() {
|
|
26
|
+
this.styleSheet = createStyleSheet();
|
|
27
|
+
this.zIndexMap = ( new Map());
|
|
28
|
+
this.scheduler = ( new RunOnceScheduler(() => this.updateStyleElement(), 200));
|
|
29
|
+
}
|
|
30
|
+
registerZIndex(relativeLayer, z, name) {
|
|
31
|
+
if (this.zIndexMap.get(name)) {
|
|
32
|
+
throw new Error(`z-index with name ${name} has already been registered.`);
|
|
33
|
+
}
|
|
34
|
+
const proposedZValue = relativeLayer + z;
|
|
35
|
+
if (findBase(proposedZValue) !== relativeLayer) {
|
|
36
|
+
throw new Error(`Relative layer: ${relativeLayer} + z-index: ${z} exceeds next layer ${proposedZValue}.`);
|
|
37
|
+
}
|
|
38
|
+
this.zIndexMap.set(name, proposedZValue);
|
|
39
|
+
this.scheduler.schedule();
|
|
40
|
+
return this.getVarName(name);
|
|
41
|
+
}
|
|
42
|
+
getVarName(name) {
|
|
43
|
+
return `--z-index-${name}`;
|
|
44
|
+
}
|
|
45
|
+
updateStyleElement() {
|
|
46
|
+
clearNode(this.styleSheet);
|
|
47
|
+
let ruleBuilder = '';
|
|
48
|
+
this.zIndexMap.forEach((zIndex, name) => {
|
|
49
|
+
ruleBuilder += `${this.getVarName(name)}: ${zIndex};\n`;
|
|
50
|
+
});
|
|
51
|
+
createCSSRule(':root', ruleBuilder, this.styleSheet);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const zIndexRegistry = ( new ZIndexRegistry());
|
|
55
|
+
function registerZIndex(relativeLayer, z, name) {
|
|
56
|
+
return zIndexRegistry.registerZIndex(relativeLayer, z, name);
|
|
57
|
+
}
|
|
58
|
+
export { ZIndex, registerZIndex };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
|
+
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
4
|
+
const pinButtonClass = ThemeIcon.asClassName(Codicon.pin);
|
|
5
|
+
const pinnedButtonClass = ThemeIcon.asClassName(Codicon.pinned);
|
|
6
|
+
const buttonClasses = [pinButtonClass, pinnedButtonClass];
|
|
7
|
+
async function showWithPinnedItems(storageService, storageKey, quickPick, filterDuplicates) {
|
|
8
|
+
const itemsWithoutPinned = quickPick.items;
|
|
9
|
+
let itemsWithPinned = _formatPinnedItems(storageKey, quickPick, storageService, undefined, filterDuplicates);
|
|
10
|
+
quickPick.onDidTriggerItemButton(async (buttonEvent) => {
|
|
11
|
+
const expectedButton = buttonEvent.button.iconClass && buttonClasses.includes(buttonEvent.button.iconClass);
|
|
12
|
+
if (expectedButton) {
|
|
13
|
+
quickPick.items = itemsWithoutPinned;
|
|
14
|
+
itemsWithPinned = _formatPinnedItems(storageKey, quickPick, storageService, buttonEvent.item, filterDuplicates);
|
|
15
|
+
quickPick.items = quickPick.value ? itemsWithoutPinned : itemsWithPinned;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
quickPick.onDidChangeValue(async (value) => {
|
|
19
|
+
if (quickPick.items === itemsWithPinned && value) {
|
|
20
|
+
quickPick.items = itemsWithoutPinned;
|
|
21
|
+
}
|
|
22
|
+
else if (quickPick.items === itemsWithoutPinned && !value) {
|
|
23
|
+
quickPick.items = itemsWithPinned;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
quickPick.items = quickPick.value ? itemsWithoutPinned : itemsWithPinned;
|
|
27
|
+
quickPick.show();
|
|
28
|
+
}
|
|
29
|
+
function _formatPinnedItems(storageKey, quickPick, storageService, changedItem, filterDuplicates) {
|
|
30
|
+
const formattedItems = [];
|
|
31
|
+
let pinnedItems;
|
|
32
|
+
if (changedItem) {
|
|
33
|
+
pinnedItems = updatePinnedItems(storageKey, changedItem, storageService);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
pinnedItems = getPinnedItems(storageKey, storageService);
|
|
37
|
+
}
|
|
38
|
+
if (pinnedItems.length) {
|
|
39
|
+
formattedItems.push({ type: 'separator', label: ( localizeWithPath(
|
|
40
|
+
'vs/platform/quickinput/browser/quickPickPin',
|
|
41
|
+
"terminal.commands.pinned",
|
|
42
|
+
'pinned'
|
|
43
|
+
)) });
|
|
44
|
+
}
|
|
45
|
+
const pinnedIds = ( new Set());
|
|
46
|
+
for (const itemToFind of pinnedItems) {
|
|
47
|
+
const itemToPin = quickPick.items.find(item => itemsMatch(item, itemToFind));
|
|
48
|
+
if (itemToPin) {
|
|
49
|
+
const pinnedItemId = getItemIdentifier(itemToPin);
|
|
50
|
+
const pinnedItem = Object.assign({}, itemToPin);
|
|
51
|
+
if (!filterDuplicates || !( pinnedIds.has(pinnedItemId))) {
|
|
52
|
+
pinnedIds.add(pinnedItemId);
|
|
53
|
+
updateButtons(pinnedItem, false);
|
|
54
|
+
formattedItems.push(pinnedItem);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
for (const item of quickPick.items) {
|
|
59
|
+
updateButtons(item, true);
|
|
60
|
+
formattedItems.push(item);
|
|
61
|
+
}
|
|
62
|
+
return formattedItems;
|
|
63
|
+
}
|
|
64
|
+
function getItemIdentifier(item) {
|
|
65
|
+
return item.type === 'separator' ? '' : item.id || `${item.label}${item.description}${item.detail}}`;
|
|
66
|
+
}
|
|
67
|
+
function updateButtons(item, removePin) {
|
|
68
|
+
if (item.type === 'separator') {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const newButtons = item.buttons?.filter(button => button.iconClass && !buttonClasses.includes(button.iconClass)) ?? [];
|
|
72
|
+
newButtons.unshift({
|
|
73
|
+
iconClass: removePin ? pinButtonClass : pinnedButtonClass,
|
|
74
|
+
tooltip: removePin ? ( localizeWithPath('vs/platform/quickinput/browser/quickPickPin', 'pinCommand', "Pin command")) : ( localizeWithPath(
|
|
75
|
+
'vs/platform/quickinput/browser/quickPickPin',
|
|
76
|
+
'pinnedCommand',
|
|
77
|
+
"Pinned command"
|
|
78
|
+
)),
|
|
79
|
+
alwaysVisible: false
|
|
80
|
+
});
|
|
81
|
+
item.buttons = newButtons;
|
|
82
|
+
}
|
|
83
|
+
function itemsMatch(itemA, itemB) {
|
|
84
|
+
return getItemIdentifier(itemA) === getItemIdentifier(itemB);
|
|
85
|
+
}
|
|
86
|
+
function updatePinnedItems(storageKey, changedItem, storageService) {
|
|
87
|
+
const removePin = changedItem.buttons?.find(b => b.iconClass === pinnedButtonClass);
|
|
88
|
+
let items = getPinnedItems(storageKey, storageService);
|
|
89
|
+
if (removePin) {
|
|
90
|
+
items = items.filter(item => getItemIdentifier(item) !== getItemIdentifier(changedItem));
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
items.push(changedItem);
|
|
94
|
+
}
|
|
95
|
+
storageService.store(storageKey, JSON.stringify(items), 1 , 1 );
|
|
96
|
+
return items;
|
|
97
|
+
}
|
|
98
|
+
function getPinnedItems(storageKey, storageService) {
|
|
99
|
+
const items = storageService.get(storageKey, 1 );
|
|
100
|
+
return items ? JSON.parse(items) : [];
|
|
101
|
+
}
|
|
102
|
+
export { showWithPinnedItems };
|
|
@@ -645,7 +645,62 @@ let WindowsPtyHeuristics = class WindowsPtyHeuristics extends Disposable {
|
|
|
645
645
|
WindowsPtyHeuristics = ( __decorate([
|
|
646
646
|
( __param(3, ILogService))
|
|
647
647
|
], WindowsPtyHeuristics));
|
|
648
|
+
function getLinesForCommand(buffer, command, cols, outputMatcher) {
|
|
649
|
+
if (!outputMatcher) {
|
|
650
|
+
return undefined;
|
|
651
|
+
}
|
|
652
|
+
const executedMarker = command.executedMarker;
|
|
653
|
+
const endMarker = command.endMarker;
|
|
654
|
+
if (!executedMarker || !endMarker) {
|
|
655
|
+
return undefined;
|
|
656
|
+
}
|
|
657
|
+
const startLine = executedMarker.line;
|
|
658
|
+
const endLine = endMarker.line;
|
|
659
|
+
const linesToCheck = outputMatcher.length;
|
|
660
|
+
const lines = [];
|
|
661
|
+
if (outputMatcher.anchor === 'bottom') {
|
|
662
|
+
for (let i = endLine - (outputMatcher.offset || 0); i >= startLine; i--) {
|
|
663
|
+
let wrappedLineStart = i;
|
|
664
|
+
const wrappedLineEnd = i;
|
|
665
|
+
while (wrappedLineStart >= startLine && buffer.getLine(wrappedLineStart)?.isWrapped) {
|
|
666
|
+
wrappedLineStart--;
|
|
667
|
+
}
|
|
668
|
+
i = wrappedLineStart;
|
|
669
|
+
lines.unshift(getXtermLineContent(buffer, wrappedLineStart, wrappedLineEnd, cols));
|
|
670
|
+
if (lines.length > linesToCheck) {
|
|
671
|
+
lines.pop();
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
else {
|
|
676
|
+
for (let i = startLine + (outputMatcher.offset || 0); i < endLine; i++) {
|
|
677
|
+
const wrappedLineStart = i;
|
|
678
|
+
let wrappedLineEnd = i;
|
|
679
|
+
while (wrappedLineEnd + 1 < endLine && buffer.getLine(wrappedLineEnd + 1)?.isWrapped) {
|
|
680
|
+
wrappedLineEnd++;
|
|
681
|
+
}
|
|
682
|
+
i = wrappedLineEnd;
|
|
683
|
+
lines.push(getXtermLineContent(buffer, wrappedLineStart, wrappedLineEnd, cols));
|
|
684
|
+
if (lines.length === linesToCheck) {
|
|
685
|
+
lines.shift();
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
return lines;
|
|
690
|
+
}
|
|
691
|
+
function getXtermLineContent(buffer, lineStart, lineEnd, cols) {
|
|
692
|
+
const maxLineLength = Math.max(2048 / cols * 2);
|
|
693
|
+
lineEnd = Math.min(lineEnd, lineStart + maxLineLength);
|
|
694
|
+
let content = '';
|
|
695
|
+
for (let i = lineStart; i <= lineEnd; i++) {
|
|
696
|
+
const line = buffer.getLine(i);
|
|
697
|
+
if (line) {
|
|
698
|
+
content += line.translateToString(true, 0, cols);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
return content;
|
|
702
|
+
}
|
|
648
703
|
function cloneMarker(xterm, marker, offset = 0) {
|
|
649
704
|
return xterm.registerMarker(marker.line - (xterm.buffer.active.baseY + xterm.buffer.active.cursorY) + offset);
|
|
650
705
|
}
|
|
651
|
-
export { CommandDetectionCapability };
|
|
706
|
+
export { CommandDetectionCapability, getLinesForCommand };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { setProperty } from '../../../base/common/jsonEdit.js';
|
|
2
|
+
function edit(content, originalPath, value, formattingOptions) {
|
|
3
|
+
const edit = setProperty(content, originalPath, value, formattingOptions)[0];
|
|
4
|
+
if (edit) {
|
|
5
|
+
content = content.substring(0, edit.offset) + edit.content + content.substring(edit.offset + edit.length);
|
|
6
|
+
}
|
|
7
|
+
return content;
|
|
8
|
+
}
|
|
9
|
+
export { edit };
|