@codingame/monaco-vscode-api 1.79.1 → 1.79.2-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/api.js +10 -8
- package/dist/composite.d.ts +65 -0
- package/dist/configurationRegistry.d.ts +212 -0
- package/dist/contextkey.d.ts +1 -1
- package/dist/default-extensions/json.js +1 -0
- package/dist/default-extensions/theme-defaults.js +2 -2
- package/dist/editorBrowser.d.ts +272 -3
- package/dist/event.d.ts +6 -1
- package/dist/{extension-tools-0c4c1ad7.js → extension-tools-3c2bf0a4.js} +698 -507
- package/dist/extensions.d.ts +3 -2
- package/dist/extensions.d2.ts +6 -17
- package/dist/extensionsRegistry.d.ts +15 -9
- package/dist/files.d.ts +71 -7
- package/dist/jsonSchema.d.ts +1 -1
- package/dist/keybinding.d.ts +2 -2
- package/dist/languageFeatures.d.ts +703 -61
- package/dist/monaco.d.ts +5 -4
- package/dist/override/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +2 -0
- package/dist/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -1
- package/dist/platform.d.ts +11 -0
- package/dist/rollup-extension-directory-plugin.js +1 -1
- package/dist/rollup-vsix-plugin.js +2 -2
- package/dist/service-override/configuration.d.ts +5 -206
- package/dist/service-override/dialogs.js +16 -1
- package/dist/service-override/files.d.ts +2 -2
- package/dist/service-override/files.js +1 -1
- package/dist/service-override/markers.d.ts +7 -0
- package/dist/service-override/markers.js +6 -0
- package/dist/service-override/output.d.ts +7 -0
- package/dist/service-override/output.js +22 -0
- package/dist/service-override/preferences.js +7 -1
- package/dist/service-override/quickaccess.js +0 -9
- package/dist/service-override/search.d.ts +7 -0
- package/dist/service-override/search.js +19 -0
- package/dist/service-override/terminal.d.ts +607 -0
- package/dist/service-override/terminal.js +98 -0
- package/dist/service-override/tools/editor.js +1 -1
- package/dist/service-override/views.d.ts +561 -335
- package/dist/service-override/views.js +51 -11
- package/dist/services.d.ts +2627 -108
- package/dist/services.js +3 -0
- package/dist/severity.d.ts +16 -0
- package/dist/uri.d.ts +22 -11
- package/dist/views.d.ts +270 -0
- package/dist/vscode/vs/base/common/processes.js +24 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/decorations.js +20 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/delegatingEditorImpl.js +106 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorSash.js +59 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.contribution.js +41 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffEditorWidget2.js +369 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/diffModel.js +247 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/lineAlignment.js +179 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/overviewRulerPart.js +121 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/style.css.js +4 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/unchangedRanges.js +184 -0
- package/dist/vscode/vs/editor/browser/widget/diffEditorWidget2/utils.js +88 -0
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +38 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +5 -1
- package/dist/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +13 -5
- package/dist/vscode/vs/platform/files/common/fileService.js +43 -5
- package/dist/vscode/vs/platform/files/common/files.js +3 -1
- package/dist/vscode/vs/platform/languagePacks/common/languagePacks.js +4 -1
- package/dist/vscode/vs/platform/log/common/bufferLog.js +34 -0
- package/dist/vscode/vs/platform/log/common/fileLog.js +105 -0
- package/dist/vscode/vs/platform/quickinput/browser/quickPickPin.js +1 -1
- package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +20 -1
- package/dist/vscode/vs/platform/request/browser/requestService.js +1 -1
- package/dist/vscode/vs/platform/request/common/request.js +3 -3
- package/dist/vscode/vs/platform/storage/common/storage.js +3 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +39 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +565 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +27 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +46 -0
- package/dist/vscode/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +80 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariable.js +7 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
- package/dist/vscode/vs/platform/terminal/common/environmentVariableShared.js +23 -0
- package/dist/vscode/vs/platform/terminal/common/terminal.js +21 -1
- package/dist/vscode/vs/platform/terminal/common/terminalDataBuffering.js +45 -0
- package/dist/vscode/vs/platform/terminal/common/terminalEnvironment.js +37 -0
- package/dist/vscode/vs/platform/terminal/common/terminalPlatformConfiguration.js +622 -0
- package/dist/vscode/vs/platform/terminal/common/terminalProfiles.js +107 -0
- package/dist/vscode/vs/platform/terminal/common/terminalRecorder.js +66 -0
- package/dist/vscode/vs/platform/terminal/common/terminalStrings.js +16 -0
- package/dist/vscode/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +321 -0
- package/dist/vscode/vs/platform/userDataSync/common/settingsMerge.js +39 -1
- package/dist/vscode/vs/platform/userDataSync/common/userDataSync.js +19 -0
- package/dist/vscode/vs/platform/window/common/window.js +7 -1
- package/dist/vscode/vs/platform/workspace/common/canonicalUri.js +3 -0
- package/dist/vscode/vs/platform/workspace/common/virtualWorkspace.js +4 -1
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +2 -2
- package/dist/vscode/vs/workbench/api/browser/mainThreadCommands.js +2 -3
- package/dist/vscode/vs/workbench/api/browser/mainThreadEditorTabs.js +473 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +45 -38
- package/dist/vscode/vs/workbench/api/browser/mainThreadSearch.js +146 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadStatusBar.js +33 -52
- package/dist/vscode/vs/workbench/api/browser/mainThreadTerminalService.js +395 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTheming.js +22 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTreeViews.js +10 -5
- package/dist/vscode/vs/workbench/api/browser/mainThreadWindow.js +11 -4
- package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +34 -11
- package/dist/vscode/vs/workbench/api/browser/statusBarExtensionPoint.js +81 -0
- package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +7 -2
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +4 -13
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +30 -15
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemConsumer.js +20 -6
- package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +41 -8
- package/dist/vscode/vs/workbench/api/common/extHostManagedSockets.js +3 -0
- package/dist/vscode/vs/workbench/api/common/extHostSearch.js +109 -0
- package/dist/vscode/vs/workbench/api/common/extHostStatusBar.js +33 -6
- package/dist/vscode/vs/workbench/api/common/extHostTerminalService.js +879 -1
- package/dist/vscode/vs/workbench/api/common/extHostTheming.js +38 -0
- package/dist/vscode/vs/workbench/api/common/extHostTreeViews.js +8 -5
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +15 -17
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +117 -4
- package/dist/vscode/vs/workbench/api/common/extHostWindow.js +28 -6
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +28 -0
- package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +11 -14
- package/dist/vscode/vs/workbench/api/node/extHostTerminalService.js +22 -0
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +2 -1
- package/dist/vscode/vs/workbench/browser/actions/windowActions.js +2 -2
- package/dist/vscode/vs/workbench/browser/dnd.js +56 -2
- package/dist/vscode/vs/workbench/browser/parts/compositePart.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +1 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +1 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +9 -10
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupView.js +15 -9
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupWatermark.js +13 -17
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorsObserver.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/noTabsTitleControl.js +3 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/tabsTitleControl.js +60 -11
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -10
- package/dist/vscode/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +10 -0
- package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +78 -14
- package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
- package/dist/vscode/vs/workbench/browser/workbench.contribution.js +65 -6
- package/dist/vscode/vs/workbench/common/configuration.js +8 -1
- package/dist/vscode/vs/workbench/common/contextkeys.js +9 -1
- package/dist/vscode/vs/workbench/common/editor/editorGroupModel.js +5 -1
- package/dist/vscode/vs/workbench/common/editor/resourceEditorInput.js +6 -3
- package/dist/vscode/vs/workbench/common/editor/textResourceEditorInput.js +9 -6
- package/dist/vscode/vs/workbench/common/editor.js +1 -5
- package/dist/vscode/vs/workbench/common/resources.js +111 -34
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +1 -1
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +1 -1
- package/dist/vscode/vs/workbench/contrib/chat/browser/chat.js +3 -0
- package/dist/vscode/vs/workbench/contrib/chat/common/chatService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +6 -4
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +250 -0
- package/dist/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput.js +290 -0
- package/dist/vscode/vs/workbench/contrib/customEditor/common/customEditor.js +3 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems.js +1 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +2 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +20 -20
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorActions.js +5 -3
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +33 -6
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugTaskRunner.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +3 -3
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +29 -17
- package/dist/vscode/vs/workbench/contrib/debug/common/debugStorage.js +11 -10
- package/dist/vscode/vs/workbench/contrib/debug/common/debugger.js +10 -6
- package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsActions.js +2514 -0
- package/dist/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons.js +82 -0
- package/dist/vscode/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/extensions/common/extensions.js +6 -1
- package/dist/vscode/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +16 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +2 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +2 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerService.js +10 -6
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +3 -18
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +37 -2
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +65 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +3 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +3 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +41 -6
- package/dist/vscode/vs/workbench/contrib/files/browser/files.js +1 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerView.js +3 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerViewer.js +6 -2
- package/dist/vscode/vs/workbench/contrib/files/common/explorerModel.js +16 -9
- package/dist/vscode/vs/workbench/contrib/files/common/files.js +1 -6
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +200 -0
- package/dist/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markers.contribution.js +586 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersFilterOptions.js +75 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersModel.js +201 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersTable.js +451 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersTreeViewer.js +670 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersView.js +857 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/markersViewActions.js +132 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/media/markers.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/markers/browser/messages.js +171 -0
- package/dist/vscode/vs/workbench/contrib/markers/common/markers.js +15 -1
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +135 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +421 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +5 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +55 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/editing.js +54 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +108 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +334 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +606 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +307 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +36 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +165 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/telemetry.js +78 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/browser/utils.js +68 -0
- package/dist/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +2 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +70 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +158 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +6 -1
- package/dist/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/logViewer.js +64 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/output.contribution.js +378 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/outputServices.js +39 -3
- package/dist/vscode/vs/workbench/contrib/output/browser/outputView.js +220 -0
- package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModel.js +12 -3
- package/dist/vscode/vs/workbench/contrib/output/common/outputLinkComputer.js +129 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +270 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +1080 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/preferences.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferences.contribution.js +1154 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesActions.js +94 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesEditor.js +47 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesIcons.js +37 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +731 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesSearch.js +271 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +479 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditor2.js +1465 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +506 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsLayout.js +296 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +79 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTree.js +1984 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +759 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/settingsWidgets.js +1008 -0
- package/dist/vscode/vs/workbench/contrib/preferences/browser/tocTree.js +196 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/preferences.js +68 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/preferencesContribution.js +157 -0
- package/dist/vscode/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +67 -0
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +16 -16
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +1 -2
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +23 -2
- package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +5 -5
- package/dist/vscode/vs/workbench/contrib/search/browser/media/searchview.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/patternInputWidget.js +217 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replace.js +3 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replaceContributions.js +7 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/replaceService.js +222 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/search.contribution.js +54 -15
- package/dist/vscode/vs/workbench/contrib/search/browser/searchActionsBase.js +17 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchFindInput.js +41 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchIcons.js +35 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchMessage.js +58 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchModel.js +1842 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchNotebookHelpers.js +49 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchResultsView.js +379 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchView.js +1867 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/searchWidget.js +628 -0
- package/dist/vscode/vs/workbench/contrib/search/common/constants.js +30 -1
- package/dist/vscode/vs/workbench/contrib/search/common/search.js +9 -1
- package/dist/vscode/vs/workbench/contrib/search/common/searchHistoryService.js +42 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/constants.js +11 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +477 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditor.js +697 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +188 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +295 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +135 -0
- package/dist/vscode/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +268 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/tabCompletion.js +2 -2
- package/dist/vscode/vs/workbench/contrib/tasks/common/taskService.js +16 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +119 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/terminal.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/widgets.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/media/xterm.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.contribution.js +238 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.js +4 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalActions.js +1930 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalCommands.js +22 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +213 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +17 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditor.js +186 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +199 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalEditorService.js +239 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalExtensions.js +22 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroup.js +482 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalGroupService.js +372 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcon.js +60 -1
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcons.js +37 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstance.js +2123 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +79 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +82 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalMenus.js +850 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +142 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +618 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +278 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +417 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalProfileService.js +213 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +144 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +267 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalService.js +1063 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalStatusList.js +108 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +417 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTabsList.js +680 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalTooltip.js +72 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalView.js +535 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +469 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +97 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +56 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +416 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +390 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +587 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariable.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/environmentVariableService.js +94 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/history.js +356 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminal.js +266 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -16
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalConfiguration.js +965 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalContextKey.js +157 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalEnvironment.js +272 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +27 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalStrings.js +86 -0
- package/dist/vscode/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +46 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +26 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +3 -0
- package/dist/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +143 -0
- package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +85 -0
- package/dist/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +52 -0
- package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +14 -6
- package/dist/vscode/vs/workbench/services/assignment/common/assignmentService.js +3 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +13 -13
- package/dist/vscode/vs/workbench/services/configuration/common/configuration.js +2 -1
- package/dist/vscode/vs/workbench/services/configuration/common/configurationEditing.js +2 -2
- package/dist/vscode/vs/workbench/services/configuration/common/jsonEditingService.js +2 -2
- package/dist/vscode/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +302 -0
- package/dist/vscode/vs/workbench/services/dialogs/browser/simpleFileDialog.js +971 -0
- package/dist/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -2
- package/dist/vscode/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +4 -0
- package/dist/vscode/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +2 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +3 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +14 -2
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +10 -1
- package/dist/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +70 -3
- package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +1 -1
- package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +2 -1
- package/dist/vscode/vs/workbench/services/hover/browser/media/hover.css.js +1 -1
- package/dist/vscode/vs/workbench/services/keybinding/common/keybindingEditing.js +275 -0
- package/dist/vscode/vs/workbench/services/localization/common/locale.js +3 -0
- package/dist/vscode/vs/workbench/services/log/common/logConstants.js +2 -0
- package/dist/vscode/vs/workbench/services/output/common/output.js +4 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferences.js +22 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +6 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesValidation.js +37 -1
- package/dist/vscode/vs/workbench/services/remote/common/remoteAgentService.js +69 -0
- package/dist/vscode/vs/workbench/services/remote/common/remoteExplorerService.js +66 -27
- package/dist/vscode/vs/workbench/services/search/common/fileSearchManager.js +265 -0
- package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +6 -0
- package/dist/vscode/vs/workbench/services/search/common/replace.js +203 -0
- package/dist/vscode/vs/workbench/services/search/common/search.js +227 -1
- package/dist/vscode/vs/workbench/services/search/common/searchExtTypes.js +6 -0
- package/dist/vscode/vs/workbench/services/search/common/searchHelpers.js +72 -0
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +355 -0
- package/dist/vscode/vs/workbench/services/search/common/textSearchManager.js +309 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/media/suggest.css.js +4 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionItem.js +10 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleCompletionModel.js +98 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +399 -0
- package/dist/vscode/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +83 -0
- package/dist/vscode/vs/workbench/services/terminal/common/embedderTerminalService.js +3 -0
- package/dist/vscode/vs/workbench/services/textfile/browser/textFileService.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModel.js +10 -3
- package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/common/colorThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput.js +6 -4
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel.js +3 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -0
- package/dist/vscode/vs/workbench/services/userActivity/common/userActivityRegistry.js +15 -0
- package/dist/vscode/vs/workbench/services/userActivity/common/userActivityService.js +37 -0
- package/dist/vscode/vs/workbench/services/userDataSync/common/userDataSync.js +7 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.js +40 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +12 -0
- package/dist/vscode/vs/workbench/services/workspaces/common/canonicalUriService.js +19 -0
- package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/json/package.json.js +1 -1
- package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/json/syntaxes/JSONL.tmLanguage.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/perl/package.json.js +1 -1
- package/dist/vscode-default-extensions/php/snippets/php.code-snippets.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/sql/language-configuration.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/package.json.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_modern.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-defaults/themes/light_modern.json.extensionResource.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.extensionResource.js +1 -1
- package/dist/vscode-default-extensions/vb/language-configuration.json.extensionResource.js +1 -1
- package/dist/vscode-services/env.js +4 -2
- package/dist/vscode-services/extHost.js +32 -48
- package/dist/vscode-services/missing-services.js +407 -29
- package/dist/vscode-services/window.js +59 -65
- package/dist/vscode-services/workspace.js +19 -5
- package/dist/workers/outputLinkComputer.worker.d.ts +2 -0
- package/dist/workers/outputLinkComputer.worker.js +3 -0
- package/dist/workspace.d.ts +1 -1
- package/monaco-editor-treemending.patch +1305 -1184
- package/package.json +65 -19
- package/dist/activity.d.ts +0 -2802
- package/dist/collections.d.ts +0 -7
- package/dist/colorRegistry.d.ts +0 -710
- package/dist/vscode/vs/platform/product/common/product.js +0 -48
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionFollowups.js +0 -30
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart.js +0 -196
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionListRenderer.js +0 -622
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionOptions.js +0 -77
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget.js +0 -311
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/media/interactiveSession.css.js +0 -4
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys.js +0 -56
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionModel.js +0 -305
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +0 -13
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionServiceImpl.js +0 -379
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionViewModel.js +0 -207
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWidgetHistoryService.js +0 -3
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWordCounter.js +0 -25
- package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.extensionResource.js +0 -2
- package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.extensionResource.js +0 -2
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
3
|
+
import * as aria from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
4
|
+
import { KeyChord } from 'monaco-editor/esm/vs/base/common/keyCodes.js';
|
|
5
|
+
import { ModesRegistry } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
6
|
+
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
7
|
+
import { registerAction2, Action2, MenuRegistry, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
8
|
+
import { LogContentProvider } from './outputServices.js';
|
|
9
|
+
import { OUTPUT_MODE_ID, OUTPUT_MIME, LOG_MODE_ID, LOG_MIME, OUTPUT_VIEW_ID, LOG_SCHEME, IOutputService, CONTEXT_IN_OUTPUT, CONTEXT_OUTPUT_SCROLL_LOCK, CONTEXT_ACTIVE_LOG_OUTPUT, ACTIVE_OUTPUT_CHANNEL_CONTEXT, Extensions as Extensions$3 } from '../../../services/output/common/output.js';
|
|
10
|
+
import { OutputViewPane } from './outputView.js';
|
|
11
|
+
import { EditorPaneDescriptor } from '../../../browser/editor.js';
|
|
12
|
+
import { LogViewer, LogViewerInput } from './logViewer.js';
|
|
13
|
+
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
14
|
+
import { Extensions as Extensions$1 } from '../../../common/contributions.js';
|
|
15
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
16
|
+
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
17
|
+
import { Extensions, IViewsService } from '../../../common/views.js';
|
|
18
|
+
import { ViewPaneContainer } from '../../../browser/parts/views/viewPaneContainer.js';
|
|
19
|
+
import { Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
20
|
+
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
21
|
+
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
22
|
+
import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
23
|
+
import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
24
|
+
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
25
|
+
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
26
|
+
import { Categories } from 'monaco-editor/esm/vs/platform/action/common/actionCommonCategories.js';
|
|
27
|
+
import { EditorExtensions } from '../../../common/editor.js';
|
|
28
|
+
import { Disposable, toDisposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
29
|
+
ModesRegistry.registerLanguage({
|
|
30
|
+
id: OUTPUT_MODE_ID,
|
|
31
|
+
extensions: [],
|
|
32
|
+
mimetypes: [OUTPUT_MIME]
|
|
33
|
+
});
|
|
34
|
+
ModesRegistry.registerLanguage({
|
|
35
|
+
id: LOG_MODE_ID,
|
|
36
|
+
extensions: [],
|
|
37
|
+
mimetypes: [LOG_MIME]
|
|
38
|
+
});
|
|
39
|
+
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( nls.localize('outputViewIcon', 'View icon of the output view.')));
|
|
40
|
+
const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
41
|
+
id: OUTPUT_VIEW_ID,
|
|
42
|
+
title: ( nls.localize('output', "Output")),
|
|
43
|
+
icon: outputViewIcon,
|
|
44
|
+
order: 1,
|
|
45
|
+
ctorDescriptor: ( new SyncDescriptor(
|
|
46
|
+
ViewPaneContainer,
|
|
47
|
+
[OUTPUT_VIEW_ID, { mergeViewWithContainerWhenSingleView: true }]
|
|
48
|
+
)),
|
|
49
|
+
storageId: OUTPUT_VIEW_ID,
|
|
50
|
+
hideIfEmpty: true,
|
|
51
|
+
}, 1 , { doNotRegisterOpenCommand: true });
|
|
52
|
+
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
53
|
+
id: OUTPUT_VIEW_ID,
|
|
54
|
+
name: ( nls.localize('output', "Output")),
|
|
55
|
+
containerIcon: outputViewIcon,
|
|
56
|
+
canMoveView: true,
|
|
57
|
+
canToggleVisibility: false,
|
|
58
|
+
ctorDescriptor: ( new SyncDescriptor(OutputViewPane)),
|
|
59
|
+
openCommandActionDescriptor: {
|
|
60
|
+
id: 'workbench.action.output.toggleOutput',
|
|
61
|
+
mnemonicTitle: ( nls.localize({ key: 'miToggleOutput', comment: ['&& denotes a mnemonic'] }, "&&Output")),
|
|
62
|
+
keybindings: {
|
|
63
|
+
primary: 2048 | 1024 | 51 ,
|
|
64
|
+
linux: {
|
|
65
|
+
primary: KeyChord(2048 | 41 , 2048 | 38 )
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
order: 1,
|
|
69
|
+
}
|
|
70
|
+
}], VIEW_CONTAINER);
|
|
71
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(LogViewer, LogViewer.LOG_VIEWER_EDITOR_ID, ( nls.localize('logViewer', "Log Viewer"))), [
|
|
72
|
+
( new SyncDescriptor(LogViewerInput))
|
|
73
|
+
]);
|
|
74
|
+
let OutputContribution = class OutputContribution extends Disposable {
|
|
75
|
+
constructor(instantiationService, textModelService, outputService) {
|
|
76
|
+
super();
|
|
77
|
+
this.outputService = outputService;
|
|
78
|
+
textModelService.registerTextModelContentProvider(LOG_SCHEME, instantiationService.createInstance(LogContentProvider));
|
|
79
|
+
this.registerActions();
|
|
80
|
+
}
|
|
81
|
+
registerActions() {
|
|
82
|
+
this.registerSwitchOutputAction();
|
|
83
|
+
this.registerShowOutputChannelsAction();
|
|
84
|
+
this.registerClearOutputAction();
|
|
85
|
+
this.registerToggleAutoScrollAction();
|
|
86
|
+
this.registerOpenActiveLogOutputFileAction();
|
|
87
|
+
this.registerShowLogsAction();
|
|
88
|
+
this.registerOpenLogFileAction();
|
|
89
|
+
}
|
|
90
|
+
registerSwitchOutputAction() {
|
|
91
|
+
this._register(registerAction2(class extends Action2 {
|
|
92
|
+
constructor() {
|
|
93
|
+
super({
|
|
94
|
+
id: `workbench.output.action.switchBetweenOutputs`,
|
|
95
|
+
title: ( nls.localize('switchBetweenOutputs.label', "Switch Output")),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
async run(accessor, channelId) {
|
|
99
|
+
if (channelId) {
|
|
100
|
+
accessor.get(IOutputService).showChannel(channelId, true);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}));
|
|
104
|
+
const switchOutputMenu = ( new MenuId('workbench.output.menu.switchOutput'));
|
|
105
|
+
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
106
|
+
submenu: switchOutputMenu,
|
|
107
|
+
title: ( nls.localize('switchToOutput.label', "Switch Output")),
|
|
108
|
+
group: 'navigation',
|
|
109
|
+
when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
|
|
110
|
+
order: 1,
|
|
111
|
+
isSelection: true
|
|
112
|
+
}));
|
|
113
|
+
const registeredChannels = ( new Map());
|
|
114
|
+
this._register(toDisposable(() => dispose(( registeredChannels.values()))));
|
|
115
|
+
const registerOutputChannels = (channels) => {
|
|
116
|
+
for (const channel of channels) {
|
|
117
|
+
const title = channel.label;
|
|
118
|
+
const group = channel.extensionId ? '0_ext_outputchannels' : '1_core_outputchannels';
|
|
119
|
+
registeredChannels.set(channel.id, registerAction2(class extends Action2 {
|
|
120
|
+
constructor() {
|
|
121
|
+
super({
|
|
122
|
+
id: `workbench.action.output.show.${channel.id}`,
|
|
123
|
+
title,
|
|
124
|
+
toggled: ( ACTIVE_OUTPUT_CHANNEL_CONTEXT.isEqualTo(channel.id)),
|
|
125
|
+
menu: {
|
|
126
|
+
id: switchOutputMenu,
|
|
127
|
+
group,
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
async run(accessor) {
|
|
132
|
+
return accessor.get(IOutputService).showChannel(channel.id, true);
|
|
133
|
+
}
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
registerOutputChannels(this.outputService.getChannelDescriptors());
|
|
138
|
+
const outputChannelRegistry = ( Registry.as(Extensions$3.OutputChannels));
|
|
139
|
+
this._register(outputChannelRegistry.onDidRegisterChannel(e => {
|
|
140
|
+
const channel = this.outputService.getChannelDescriptor(e);
|
|
141
|
+
if (channel) {
|
|
142
|
+
registerOutputChannels([channel]);
|
|
143
|
+
}
|
|
144
|
+
}));
|
|
145
|
+
this._register(outputChannelRegistry.onDidRemoveChannel(e => {
|
|
146
|
+
registeredChannels.get(e)?.dispose();
|
|
147
|
+
registeredChannels.delete(e);
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
registerShowOutputChannelsAction() {
|
|
151
|
+
this._register(registerAction2(class extends Action2 {
|
|
152
|
+
constructor() {
|
|
153
|
+
super({
|
|
154
|
+
id: 'workbench.action.showOutputChannels',
|
|
155
|
+
title: { value: ( nls.localize('showOutputChannels', "Show Output Channels...")), original: 'Show Output Channels...' },
|
|
156
|
+
category: { value: ( nls.localize('output', "Output")), original: 'Output' },
|
|
157
|
+
f1: true
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
async run(accessor) {
|
|
161
|
+
const outputService = accessor.get(IOutputService);
|
|
162
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
163
|
+
const extensionChannels = [], coreChannels = [];
|
|
164
|
+
for (const channel of outputService.getChannelDescriptors()) {
|
|
165
|
+
if (channel.extensionId) {
|
|
166
|
+
extensionChannels.push(channel);
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
coreChannels.push(channel);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const entries = [];
|
|
173
|
+
for (const { id, label } of extensionChannels) {
|
|
174
|
+
entries.push({ id, label });
|
|
175
|
+
}
|
|
176
|
+
if (extensionChannels.length && coreChannels.length) {
|
|
177
|
+
entries.push({ type: 'separator' });
|
|
178
|
+
}
|
|
179
|
+
for (const { id, label } of coreChannels) {
|
|
180
|
+
entries.push({ id, label });
|
|
181
|
+
}
|
|
182
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( nls.localize('selectOutput', "Select Output Channel")) });
|
|
183
|
+
if (entry) {
|
|
184
|
+
return outputService.showChannel(entry.id);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}));
|
|
188
|
+
}
|
|
189
|
+
registerClearOutputAction() {
|
|
190
|
+
this._register(registerAction2(class extends Action2 {
|
|
191
|
+
constructor() {
|
|
192
|
+
super({
|
|
193
|
+
id: `workbench.output.action.clearOutput`,
|
|
194
|
+
title: { value: ( nls.localize('clearOutput.label', "Clear Output")), original: 'Clear Output' },
|
|
195
|
+
category: Categories.View,
|
|
196
|
+
menu: [{
|
|
197
|
+
id: MenuId.ViewTitle,
|
|
198
|
+
when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
|
|
199
|
+
group: 'navigation',
|
|
200
|
+
order: 2
|
|
201
|
+
}, {
|
|
202
|
+
id: MenuId.CommandPalette
|
|
203
|
+
}, {
|
|
204
|
+
id: MenuId.EditorContext,
|
|
205
|
+
when: CONTEXT_IN_OUTPUT
|
|
206
|
+
}],
|
|
207
|
+
icon: Codicon.clearAll
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
async run(accessor) {
|
|
211
|
+
const outputService = accessor.get(IOutputService);
|
|
212
|
+
const activeChannel = outputService.getActiveChannel();
|
|
213
|
+
if (activeChannel) {
|
|
214
|
+
activeChannel.clear();
|
|
215
|
+
aria.status(( nls.localize('outputCleared', "Output was cleared")));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}));
|
|
219
|
+
}
|
|
220
|
+
registerToggleAutoScrollAction() {
|
|
221
|
+
this._register(registerAction2(class extends Action2 {
|
|
222
|
+
constructor() {
|
|
223
|
+
super({
|
|
224
|
+
id: `workbench.output.action.toggleAutoScroll`,
|
|
225
|
+
title: { value: ( nls.localize('toggleAutoScroll', "Toggle Auto Scrolling")), original: 'Toggle Auto Scrolling' },
|
|
226
|
+
tooltip: ( nls.localize('outputScrollOff', "Turn Auto Scrolling Off")),
|
|
227
|
+
menu: {
|
|
228
|
+
id: MenuId.ViewTitle,
|
|
229
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)))),
|
|
230
|
+
group: 'navigation',
|
|
231
|
+
order: 3,
|
|
232
|
+
},
|
|
233
|
+
icon: Codicon.lock,
|
|
234
|
+
toggled: {
|
|
235
|
+
condition: CONTEXT_OUTPUT_SCROLL_LOCK,
|
|
236
|
+
icon: Codicon.unlock,
|
|
237
|
+
tooltip: ( nls.localize('outputScrollOn', "Turn Auto Scrolling On"))
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
async run(accessor) {
|
|
242
|
+
const outputView = accessor.get(IViewsService).getActiveViewWithId(OUTPUT_VIEW_ID);
|
|
243
|
+
outputView.scrollLock = !outputView.scrollLock;
|
|
244
|
+
}
|
|
245
|
+
}));
|
|
246
|
+
}
|
|
247
|
+
registerOpenActiveLogOutputFileAction() {
|
|
248
|
+
this._register(registerAction2(class extends Action2 {
|
|
249
|
+
constructor() {
|
|
250
|
+
super({
|
|
251
|
+
id: `workbench.action.openActiveLogOutputFile`,
|
|
252
|
+
title: { value: ( nls.localize('openActiveLogOutputFile', "Open Log Output File")), original: 'Open Log Output File' },
|
|
253
|
+
menu: [{
|
|
254
|
+
id: MenuId.ViewTitle,
|
|
255
|
+
when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
|
|
256
|
+
group: 'navigation',
|
|
257
|
+
order: 4
|
|
258
|
+
}],
|
|
259
|
+
icon: Codicon.goToFile,
|
|
260
|
+
precondition: CONTEXT_ACTIVE_LOG_OUTPUT
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
async run(accessor) {
|
|
264
|
+
const outputService = accessor.get(IOutputService);
|
|
265
|
+
const editorService = accessor.get(IEditorService);
|
|
266
|
+
const instantiationService = accessor.get(IInstantiationService);
|
|
267
|
+
const logFileOutputChannelDescriptor = this.getLogFileOutputChannelDescriptor(outputService);
|
|
268
|
+
if (logFileOutputChannelDescriptor) {
|
|
269
|
+
await editorService.openEditor(instantiationService.createInstance(LogViewerInput, logFileOutputChannelDescriptor), { pinned: true });
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
getLogFileOutputChannelDescriptor(outputService) {
|
|
273
|
+
const channel = outputService.getActiveChannel();
|
|
274
|
+
if (channel) {
|
|
275
|
+
const descriptor = outputService.getChannelDescriptors().filter(c => c.id === channel.id)[0];
|
|
276
|
+
if (descriptor && descriptor.file && descriptor.log) {
|
|
277
|
+
return descriptor;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return null;
|
|
281
|
+
}
|
|
282
|
+
}));
|
|
283
|
+
}
|
|
284
|
+
registerShowLogsAction() {
|
|
285
|
+
this._register(registerAction2(class extends Action2 {
|
|
286
|
+
constructor() {
|
|
287
|
+
super({
|
|
288
|
+
id: 'workbench.action.showLogs',
|
|
289
|
+
title: { value: ( nls.localize('showLogs', "Show Logs...")), original: 'Show Logs...' },
|
|
290
|
+
category: Categories.Developer,
|
|
291
|
+
menu: {
|
|
292
|
+
id: MenuId.CommandPalette,
|
|
293
|
+
},
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
async run(accessor) {
|
|
297
|
+
const outputService = accessor.get(IOutputService);
|
|
298
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
299
|
+
const extensionLogs = [], logs = [];
|
|
300
|
+
for (const channel of outputService.getChannelDescriptors()) {
|
|
301
|
+
if (channel.log) {
|
|
302
|
+
if (channel.extensionId) {
|
|
303
|
+
extensionLogs.push(channel);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
logs.push(channel);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
const entries = [];
|
|
311
|
+
for (const { id, label } of logs) {
|
|
312
|
+
entries.push({ id, label });
|
|
313
|
+
}
|
|
314
|
+
if (extensionLogs.length && logs.length) {
|
|
315
|
+
entries.push({ type: 'separator', label: ( nls.localize('extensionLogs', "Extension Logs")) });
|
|
316
|
+
}
|
|
317
|
+
for (const { id, label } of extensionLogs) {
|
|
318
|
+
entries.push({ id, label });
|
|
319
|
+
}
|
|
320
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( nls.localize('selectlog', "Select Log")) });
|
|
321
|
+
if (entry) {
|
|
322
|
+
return outputService.showChannel(entry.id);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}));
|
|
326
|
+
}
|
|
327
|
+
registerOpenLogFileAction() {
|
|
328
|
+
this._register(registerAction2(class extends Action2 {
|
|
329
|
+
constructor() {
|
|
330
|
+
super({
|
|
331
|
+
id: 'workbench.action.openLogFile',
|
|
332
|
+
title: { value: ( nls.localize('openLogFile', "Open Log File...")), original: 'Open Log File...' },
|
|
333
|
+
category: Categories.Developer,
|
|
334
|
+
menu: {
|
|
335
|
+
id: MenuId.CommandPalette,
|
|
336
|
+
},
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
async run(accessor) {
|
|
340
|
+
const outputService = accessor.get(IOutputService);
|
|
341
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
342
|
+
const instantiationService = accessor.get(IInstantiationService);
|
|
343
|
+
const editorService = accessor.get(IEditorService);
|
|
344
|
+
const entries = ( outputService.getChannelDescriptors().filter(c => c.file && c.log)
|
|
345
|
+
.map(channel => ({ id: channel.id, label: channel.label, channel })));
|
|
346
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( nls.localize('selectlogFile', "Select Log file")) });
|
|
347
|
+
if (entry) {
|
|
348
|
+
assertIsDefined(entry.channel.file);
|
|
349
|
+
await editorService.openEditor(instantiationService.createInstance(LogViewerInput, entry.channel), { pinned: true });
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}));
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
OutputContribution = ( __decorate([
|
|
356
|
+
( __param(0, IInstantiationService)),
|
|
357
|
+
( __param(1, ITextModelService)),
|
|
358
|
+
( __param(2, IOutputService))
|
|
359
|
+
], OutputContribution));
|
|
360
|
+
( Registry.as(Extensions$1.Workbench)).registerWorkbenchContribution(OutputContribution, 3 );
|
|
361
|
+
( Registry.as(Extensions$2.Configuration)).registerConfiguration({
|
|
362
|
+
id: 'output',
|
|
363
|
+
order: 30,
|
|
364
|
+
title: ( nls.localize('output', "Output")),
|
|
365
|
+
type: 'object',
|
|
366
|
+
properties: {
|
|
367
|
+
'output.smartScroll.enabled': {
|
|
368
|
+
type: 'boolean',
|
|
369
|
+
description: ( nls.localize(
|
|
370
|
+
'output.smartScroll.enabled',
|
|
371
|
+
"Enable/disable the ability of smart scrolling in the output view. Smart scrolling allows you to lock scrolling automatically when you click in the output view and unlocks when you click in the last line."
|
|
372
|
+
)),
|
|
373
|
+
default: true,
|
|
374
|
+
scope: 3 ,
|
|
375
|
+
tags: ['output']
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
});
|
|
@@ -5,7 +5,7 @@ import { Disposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.
|
|
|
5
5
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
6
6
|
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
7
7
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
8
|
-
import { ACTIVE_OUTPUT_CHANNEL_CONTEXT, CONTEXT_ACTIVE_LOG_OUTPUT, OUTPUT_SCHEME, OUTPUT_VIEW_ID, Extensions, LOG_MIME, OUTPUT_MIME } from '../../../services/output/common/output.js';
|
|
8
|
+
import { ACTIVE_OUTPUT_CHANNEL_CONTEXT, CONTEXT_ACTIVE_LOG_OUTPUT, OUTPUT_SCHEME, OUTPUT_VIEW_ID, Extensions, LOG_MIME, OUTPUT_MIME, LOG_SCHEME, IOutputService } from '../../../services/output/common/output.js';
|
|
9
9
|
import { OutputLinkProvider } from './outputLinkProvider.js';
|
|
10
10
|
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
11
11
|
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
@@ -147,7 +147,7 @@ let OutputService = class OutputService extends Disposable {
|
|
|
147
147
|
this.activeChannel = channel;
|
|
148
148
|
this.activeLogOutputChannelContext.set(!!channel?.outputChannelDescriptor?.file && channel?.outputChannelDescriptor?.log);
|
|
149
149
|
if (this.activeChannel) {
|
|
150
|
-
this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id, 1 ,
|
|
150
|
+
this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id, 1 , 1 );
|
|
151
151
|
}
|
|
152
152
|
else {
|
|
153
153
|
this.storageService.remove(OUTPUT_ACTIVE_CHANNEL_KEY, 1 );
|
|
@@ -163,4 +163,40 @@ OutputService = ( __decorate([
|
|
|
163
163
|
( __param(5, IViewsService)),
|
|
164
164
|
( __param(6, IContextKeyService))
|
|
165
165
|
], OutputService));
|
|
166
|
-
|
|
166
|
+
let LogContentProvider = class LogContentProvider {
|
|
167
|
+
constructor(outputService, outputChannelModelService, languageService) {
|
|
168
|
+
this.outputService = outputService;
|
|
169
|
+
this.outputChannelModelService = outputChannelModelService;
|
|
170
|
+
this.languageService = languageService;
|
|
171
|
+
this.channelModels = ( new Map());
|
|
172
|
+
}
|
|
173
|
+
provideTextContent(resource) {
|
|
174
|
+
if (resource.scheme === LOG_SCHEME) {
|
|
175
|
+
const channelModel = this.getChannelModel(resource);
|
|
176
|
+
if (channelModel) {
|
|
177
|
+
return channelModel.loadModel();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
getChannelModel(resource) {
|
|
183
|
+
const channelId = resource.path;
|
|
184
|
+
let channelModel = this.channelModels.get(channelId);
|
|
185
|
+
if (!channelModel) {
|
|
186
|
+
const channelDisposables = [];
|
|
187
|
+
const outputChannelDescriptor = this.outputService.getChannelDescriptors().filter(({ id }) => id === channelId)[0];
|
|
188
|
+
if (outputChannelDescriptor && outputChannelDescriptor.file) {
|
|
189
|
+
channelModel = this.outputChannelModelService.createOutputChannelModel(channelId, resource, outputChannelDescriptor.languageId ? this.languageService.createById(outputChannelDescriptor.languageId) : this.languageService.createByMimeType(outputChannelDescriptor.log ? LOG_MIME : OUTPUT_MIME), outputChannelDescriptor.file);
|
|
190
|
+
channelModel.onDispose(() => dispose(channelDisposables), channelDisposables);
|
|
191
|
+
this.channelModels.set(channelId, channelModel);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return channelModel;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
LogContentProvider = ( __decorate([
|
|
198
|
+
( __param(0, IOutputService)),
|
|
199
|
+
( __param(1, IOutputChannelModelService)),
|
|
200
|
+
( __param(2, ILanguageService))
|
|
201
|
+
], LogContentProvider));
|
|
202
|
+
export { LogContentProvider, OutputService };
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
3
|
+
import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
4
|
+
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
5
|
+
import { ITextResourceConfigurationService } from 'monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js';
|
|
6
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
7
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
8
|
+
import { AbstractTextResourceEditor } from '../../../browser/parts/editor/textResourceEditor.js';
|
|
9
|
+
import { CONTEXT_OUTPUT_SCROLL_LOCK, OUTPUT_VIEW_ID, CONTEXT_IN_OUTPUT } from '../../../services/output/common/output.js';
|
|
10
|
+
import { registerThemingParticipant, IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
11
|
+
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
12
|
+
import { IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.js';
|
|
13
|
+
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
14
|
+
import { ViewPane } from '../../../browser/parts/views/viewPane.js';
|
|
15
|
+
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
16
|
+
import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
17
|
+
import { IViewDescriptorService } from '../../../common/views.js';
|
|
18
|
+
import { TextResourceEditorInput } from '../../../common/editor/textResourceEditorInput.js';
|
|
19
|
+
import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
|
|
20
|
+
import { SIDE_BAR_BACKGROUND } from '../../../common/theme.js';
|
|
21
|
+
import { editorBackground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
22
|
+
import { Dimension } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
23
|
+
import { createCancelablePromise } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
24
|
+
import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
25
|
+
import { ResourceContextKey } from '../../../common/contextkeys.js';
|
|
26
|
+
import { ServiceCollection } from 'monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
27
|
+
let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
28
|
+
get scrollLock() { return !!this.scrollLockContextKey.get(); }
|
|
29
|
+
set scrollLock(scrollLock) { this.scrollLockContextKey.set(scrollLock); }
|
|
30
|
+
constructor(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService) {
|
|
31
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
32
|
+
this.editorPromise = null;
|
|
33
|
+
this.scrollLockContextKey = CONTEXT_OUTPUT_SCROLL_LOCK.bindTo(this.contextKeyService);
|
|
34
|
+
const editorInstantiationService = instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.scopedContextKeyService])));
|
|
35
|
+
this.editor = editorInstantiationService.createInstance(OutputEditor);
|
|
36
|
+
this._register(this.editor.onTitleAreaUpdate(() => {
|
|
37
|
+
this.updateTitle(this.editor.getTitle());
|
|
38
|
+
this.updateActions();
|
|
39
|
+
}));
|
|
40
|
+
this._register(this.onDidChangeBodyVisibility(() => this.onDidChangeVisibility(this.isBodyVisible())));
|
|
41
|
+
}
|
|
42
|
+
showChannel(channel, preserveFocus) {
|
|
43
|
+
if (this.channelId !== channel.id) {
|
|
44
|
+
this.setInput(channel);
|
|
45
|
+
}
|
|
46
|
+
if (!preserveFocus) {
|
|
47
|
+
this.focus();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
focus() {
|
|
51
|
+
super.focus();
|
|
52
|
+
this.editorPromise?.then(() => this.editor.focus());
|
|
53
|
+
}
|
|
54
|
+
renderBody(container) {
|
|
55
|
+
super.renderBody(container);
|
|
56
|
+
this.editor.create(container);
|
|
57
|
+
container.classList.add('output-view');
|
|
58
|
+
const codeEditor = this.editor.getControl();
|
|
59
|
+
codeEditor.setAriaOptions({ role: 'document', activeDescendant: undefined });
|
|
60
|
+
this._register(codeEditor.onDidChangeModelContent(() => {
|
|
61
|
+
if (!this.scrollLock) {
|
|
62
|
+
this.editor.revealLastLine();
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
this._register(codeEditor.onDidChangeCursorPosition((e) => {
|
|
66
|
+
if (e.reason !== 3 ) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (!this.configurationService.getValue('output.smartScroll.enabled')) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const model = codeEditor.getModel();
|
|
73
|
+
if (model) {
|
|
74
|
+
const newPositionLine = e.position.lineNumber;
|
|
75
|
+
const lastLine = model.getLineCount();
|
|
76
|
+
this.scrollLock = lastLine !== newPositionLine;
|
|
77
|
+
}
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
layoutBody(height, width) {
|
|
81
|
+
super.layoutBody(height, width);
|
|
82
|
+
this.editor.layout(( new Dimension(width, height)));
|
|
83
|
+
}
|
|
84
|
+
onDidChangeVisibility(visible) {
|
|
85
|
+
this.editor.setVisible(visible);
|
|
86
|
+
if (!visible) {
|
|
87
|
+
this.clearInput();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
setInput(channel) {
|
|
91
|
+
this.channelId = channel.id;
|
|
92
|
+
const input = this.createInput(channel);
|
|
93
|
+
if (!this.editor.input || !input.matches(this.editor.input)) {
|
|
94
|
+
this.editorPromise?.cancel();
|
|
95
|
+
this.editorPromise = createCancelablePromise(token => this.editor.setInput(this.createInput(channel), { preserveFocus: true }, Object.create(null), token)
|
|
96
|
+
.then(() => this.editor));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
clearInput() {
|
|
100
|
+
this.channelId = undefined;
|
|
101
|
+
this.editor.clearInput();
|
|
102
|
+
this.editorPromise = null;
|
|
103
|
+
}
|
|
104
|
+
createInput(channel) {
|
|
105
|
+
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( nls.localize('output model title', "{0} - Output", channel.label)), ( nls.localize('channel', "Output channel for '{0}'", channel.label)), undefined, undefined);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
OutputViewPane = ( __decorate([
|
|
109
|
+
( __param(1, IKeybindingService)),
|
|
110
|
+
( __param(2, IContextMenuService)),
|
|
111
|
+
( __param(3, IConfigurationService)),
|
|
112
|
+
( __param(4, IContextKeyService)),
|
|
113
|
+
( __param(5, IViewDescriptorService)),
|
|
114
|
+
( __param(6, IInstantiationService)),
|
|
115
|
+
( __param(7, IOpenerService)),
|
|
116
|
+
( __param(8, IThemeService)),
|
|
117
|
+
( __param(9, ITelemetryService))
|
|
118
|
+
], OutputViewPane));
|
|
119
|
+
let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
120
|
+
constructor(telemetryService, instantiationService, storageService, configurationService, textResourceConfigurationService, themeService, editorGroupService, editorService, fileService, contextKeyService) {
|
|
121
|
+
super(OUTPUT_VIEW_ID, telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorGroupService, editorService, fileService);
|
|
122
|
+
this.configurationService = configurationService;
|
|
123
|
+
this.resourceContext = this._register(instantiationService.createInstance(ResourceContextKey));
|
|
124
|
+
}
|
|
125
|
+
getId() {
|
|
126
|
+
return OUTPUT_VIEW_ID;
|
|
127
|
+
}
|
|
128
|
+
getTitle() {
|
|
129
|
+
return ( nls.localize('output', "Output"));
|
|
130
|
+
}
|
|
131
|
+
getConfigurationOverrides() {
|
|
132
|
+
const options = super.getConfigurationOverrides();
|
|
133
|
+
options.wordWrap = 'on';
|
|
134
|
+
options.lineNumbers = 'off';
|
|
135
|
+
options.glyphMargin = false;
|
|
136
|
+
options.lineDecorationsWidth = 20;
|
|
137
|
+
options.rulers = [];
|
|
138
|
+
options.folding = false;
|
|
139
|
+
options.scrollBeyondLastLine = false;
|
|
140
|
+
options.renderLineHighlight = 'none';
|
|
141
|
+
options.minimap = { enabled: false };
|
|
142
|
+
options.renderValidationDecorations = 'editable';
|
|
143
|
+
options.padding = undefined;
|
|
144
|
+
options.readOnly = true;
|
|
145
|
+
options.domReadOnly = true;
|
|
146
|
+
options.unicodeHighlight = {
|
|
147
|
+
nonBasicASCII: false,
|
|
148
|
+
invisibleCharacters: false,
|
|
149
|
+
ambiguousCharacters: false,
|
|
150
|
+
};
|
|
151
|
+
const outputConfig = this.configurationService.getValue('[Log]');
|
|
152
|
+
if (outputConfig) {
|
|
153
|
+
if (outputConfig['editor.minimap.enabled']) {
|
|
154
|
+
options.minimap = { enabled: true };
|
|
155
|
+
}
|
|
156
|
+
if ('editor.wordWrap' in outputConfig) {
|
|
157
|
+
options.wordWrap = outputConfig['editor.wordWrap'];
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return options;
|
|
161
|
+
}
|
|
162
|
+
getAriaLabel() {
|
|
163
|
+
return this.input ? this.input.getAriaLabel() : ( nls.localize('outputViewAriaLabel', "Output panel"));
|
|
164
|
+
}
|
|
165
|
+
async setInput(input, options, context, token) {
|
|
166
|
+
const focus = !(options && options.preserveFocus);
|
|
167
|
+
if (this.input && input.matches(this.input)) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
if (this.input) {
|
|
171
|
+
this.input.dispose();
|
|
172
|
+
}
|
|
173
|
+
await super.setInput(input, options, context, token);
|
|
174
|
+
this.resourceContext.set(input.resource);
|
|
175
|
+
if (focus) {
|
|
176
|
+
this.focus();
|
|
177
|
+
}
|
|
178
|
+
this.revealLastLine();
|
|
179
|
+
}
|
|
180
|
+
clearInput() {
|
|
181
|
+
if (this.input) {
|
|
182
|
+
this.input.dispose();
|
|
183
|
+
}
|
|
184
|
+
super.clearInput();
|
|
185
|
+
this.resourceContext.reset();
|
|
186
|
+
}
|
|
187
|
+
createEditor(parent) {
|
|
188
|
+
parent.setAttribute('role', 'document');
|
|
189
|
+
super.createEditor(parent);
|
|
190
|
+
const scopedContextKeyService = this.scopedContextKeyService;
|
|
191
|
+
if (scopedContextKeyService) {
|
|
192
|
+
CONTEXT_IN_OUTPUT.bindTo(scopedContextKeyService).set(true);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
OutputEditor = ( __decorate([
|
|
197
|
+
( __param(0, ITelemetryService)),
|
|
198
|
+
( __param(1, IInstantiationService)),
|
|
199
|
+
( __param(2, IStorageService)),
|
|
200
|
+
( __param(3, IConfigurationService)),
|
|
201
|
+
( __param(4, ITextResourceConfigurationService)),
|
|
202
|
+
( __param(5, IThemeService)),
|
|
203
|
+
( __param(6, IEditorGroupsService)),
|
|
204
|
+
( __param(7, IEditorService)),
|
|
205
|
+
( __param(8, IFileService)),
|
|
206
|
+
( __param(9, IContextKeyService))
|
|
207
|
+
], OutputEditor));
|
|
208
|
+
registerThemingParticipant((theme, collector) => {
|
|
209
|
+
const sidebarBackground = theme.getColor(SIDE_BAR_BACKGROUND);
|
|
210
|
+
if (sidebarBackground && sidebarBackground !== theme.getColor(editorBackground)) {
|
|
211
|
+
collector.addRule(`
|
|
212
|
+
.monaco-workbench .part.sidebar .output-view .monaco-editor,
|
|
213
|
+
.monaco-workbench .part.sidebar .output-view .monaco-editor .margin,
|
|
214
|
+
.monaco-workbench .part.sidebar .output-view .monaco-editor .monaco-editor-background {
|
|
215
|
+
background-color: ${sidebarBackground};
|
|
216
|
+
}
|
|
217
|
+
`);
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
export { OutputViewPane };
|