@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,670 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
3
|
+
import * as network from 'monaco-editor/esm/vs/base/common/network.js';
|
|
4
|
+
import * as path from 'monaco-editor/esm/vs/base/common/path.js';
|
|
5
|
+
import { CountBadge } from 'monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.js';
|
|
6
|
+
import { HighlightedLabel } from 'monaco-editor/esm/vs/base/browser/ui/highlightedlabel/highlightedLabel.js';
|
|
7
|
+
import { MarkerSeverity } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
8
|
+
import { ResourceMarkers, Marker, MarkerTableItem, RelatedInformation } from './markersModel.js';
|
|
9
|
+
import Messages$1 from './messages.js';
|
|
10
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
11
|
+
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
12
|
+
import { DisposableStore, Disposable, toDisposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
13
|
+
import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
|
|
14
|
+
import { QuickFixAction, QuickFixActionViewItem } from './markersViewActions.js';
|
|
15
|
+
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
16
|
+
import { dirname, basename, isEqual } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
17
|
+
import { FilterOptions } from './markersFilterOptions.js';
|
|
18
|
+
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
19
|
+
import { isUndefinedOrNull } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
20
|
+
import { Action } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
21
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
22
|
+
import { Delayer, createCancelablePromise } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
23
|
+
import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
24
|
+
import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
25
|
+
import { getCodeActions, applyCodeAction, ApplyCodeActionReason } from 'monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.js';
|
|
26
|
+
import { CodeActionTriggerSource, CodeActionKind } from 'monaco-editor/esm/vs/editor/contrib/codeAction/common/types.js';
|
|
27
|
+
import { ACTIVE_GROUP, IEditorService } from '../../../services/editor/common/editorService.js';
|
|
28
|
+
import { SeverityIcon } from 'monaco-editor/esm/vs/platform/severityIcon/browser/severityIcon.js';
|
|
29
|
+
import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
|
|
30
|
+
import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
31
|
+
import { Progress } from 'monaco-editor/esm/vs/platform/progress/common/progress.js';
|
|
32
|
+
import { ActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js';
|
|
33
|
+
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
34
|
+
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
35
|
+
import { Link } from 'monaco-editor/esm/vs/platform/opener/browser/link.js';
|
|
36
|
+
import { ILanguageFeaturesService } from 'monaco-editor/esm/vs/editor/common/services/languageFeatures.js';
|
|
37
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
38
|
+
import { MarkersContextKeys } from '../common/markers.js';
|
|
39
|
+
import { unsupportedSchemas } from 'monaco-editor/esm/vs/platform/markers/common/markerService.js';
|
|
40
|
+
import { defaultCountBadgeStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
41
|
+
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
42
|
+
let MarkersWidgetAccessibilityProvider = class MarkersWidgetAccessibilityProvider {
|
|
43
|
+
constructor(labelService) {
|
|
44
|
+
this.labelService = labelService;
|
|
45
|
+
}
|
|
46
|
+
getWidgetAriaLabel() {
|
|
47
|
+
return (
|
|
48
|
+
(localize('problemsView', "Problems View"))
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
getAriaLabel(element) {
|
|
52
|
+
if (element instanceof ResourceMarkers) {
|
|
53
|
+
const path$1 = this.labelService.getUriLabel(element.resource, { relative: true }) || element.resource.fsPath;
|
|
54
|
+
return Messages$1.MARKERS_TREE_ARIA_LABEL_RESOURCE(element.markers.length, element.name, path.dirname(path$1));
|
|
55
|
+
}
|
|
56
|
+
if (element instanceof Marker || element instanceof MarkerTableItem) {
|
|
57
|
+
return Messages$1.MARKERS_TREE_ARIA_LABEL_MARKER(element);
|
|
58
|
+
}
|
|
59
|
+
if (element instanceof RelatedInformation) {
|
|
60
|
+
return Messages$1.MARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION(element.raw);
|
|
61
|
+
}
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
MarkersWidgetAccessibilityProvider = ( (__decorate([
|
|
66
|
+
( (__param(0, ILabelService)))
|
|
67
|
+
], MarkersWidgetAccessibilityProvider)));
|
|
68
|
+
class VirtualDelegate {
|
|
69
|
+
constructor(markersViewState) {
|
|
70
|
+
this.markersViewState = markersViewState;
|
|
71
|
+
}
|
|
72
|
+
getHeight(element) {
|
|
73
|
+
if (element instanceof Marker) {
|
|
74
|
+
const viewModel = this.markersViewState.getViewModel(element);
|
|
75
|
+
const noOfLines = !viewModel || viewModel.multiline ? element.lines.length : 1;
|
|
76
|
+
return noOfLines * VirtualDelegate.LINE_HEIGHT;
|
|
77
|
+
}
|
|
78
|
+
return VirtualDelegate.LINE_HEIGHT;
|
|
79
|
+
}
|
|
80
|
+
getTemplateId(element) {
|
|
81
|
+
if (element instanceof ResourceMarkers) {
|
|
82
|
+
return "rm" ;
|
|
83
|
+
}
|
|
84
|
+
else if (element instanceof Marker) {
|
|
85
|
+
return "m" ;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return "ri" ;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
VirtualDelegate.LINE_HEIGHT = 22;
|
|
93
|
+
let ResourceMarkersRenderer = class ResourceMarkersRenderer {
|
|
94
|
+
constructor(labels, onDidChangeRenderNodeCount, labelService, fileService) {
|
|
95
|
+
this.labels = labels;
|
|
96
|
+
this.labelService = labelService;
|
|
97
|
+
this.fileService = fileService;
|
|
98
|
+
this.renderedNodes = ( (new Map()));
|
|
99
|
+
this.disposables = ( (new DisposableStore()));
|
|
100
|
+
this.templateId = "rm" ;
|
|
101
|
+
onDidChangeRenderNodeCount(this.onDidChangeRenderNodeCount, this, this.disposables);
|
|
102
|
+
}
|
|
103
|
+
renderTemplate(container) {
|
|
104
|
+
const resourceLabelContainer = dom.append(container, dom.$('.resource-label-container'));
|
|
105
|
+
const resourceLabel = this.labels.create(resourceLabelContainer, { supportHighlights: true });
|
|
106
|
+
const badgeWrapper = dom.append(container, dom.$('.count-badge-wrapper'));
|
|
107
|
+
const count = ( (new CountBadge(badgeWrapper, {}, defaultCountBadgeStyles)));
|
|
108
|
+
return { count, resourceLabel };
|
|
109
|
+
}
|
|
110
|
+
renderElement(node, _, templateData) {
|
|
111
|
+
const resourceMarkers = node.element;
|
|
112
|
+
const uriMatches = node.filterData && node.filterData.uriMatches || [];
|
|
113
|
+
if (this.fileService.hasProvider(resourceMarkers.resource) || resourceMarkers.resource.scheme === network.Schemas.untitled) {
|
|
114
|
+
templateData.resourceLabel.setFile(resourceMarkers.resource, { matches: uriMatches });
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
templateData.resourceLabel.setResource({ name: resourceMarkers.name, description: this.labelService.getUriLabel(dirname(resourceMarkers.resource), { relative: true }), resource: resourceMarkers.resource }, { matches: uriMatches });
|
|
118
|
+
}
|
|
119
|
+
this.updateCount(node, templateData);
|
|
120
|
+
this.renderedNodes.set(node, templateData);
|
|
121
|
+
}
|
|
122
|
+
disposeElement(node) {
|
|
123
|
+
this.renderedNodes.delete(node);
|
|
124
|
+
}
|
|
125
|
+
disposeTemplate(templateData) {
|
|
126
|
+
templateData.resourceLabel.dispose();
|
|
127
|
+
}
|
|
128
|
+
onDidChangeRenderNodeCount(node) {
|
|
129
|
+
const templateData = this.renderedNodes.get(node);
|
|
130
|
+
if (!templateData) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
this.updateCount(node, templateData);
|
|
134
|
+
}
|
|
135
|
+
updateCount(node, templateData) {
|
|
136
|
+
templateData.count.setCount(node.children.reduce((r, n) => r + (n.visible ? 1 : 0), 0));
|
|
137
|
+
}
|
|
138
|
+
dispose() {
|
|
139
|
+
this.disposables.dispose();
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
ResourceMarkersRenderer = ( (__decorate([
|
|
143
|
+
( (__param(2, ILabelService))),
|
|
144
|
+
( (__param(3, IFileService)))
|
|
145
|
+
], ResourceMarkersRenderer)));
|
|
146
|
+
let MarkerRenderer = class MarkerRenderer {
|
|
147
|
+
constructor(markersViewState, instantiationService, openerService) {
|
|
148
|
+
this.markersViewState = markersViewState;
|
|
149
|
+
this.instantiationService = instantiationService;
|
|
150
|
+
this.openerService = openerService;
|
|
151
|
+
this.templateId = "m" ;
|
|
152
|
+
}
|
|
153
|
+
renderTemplate(container) {
|
|
154
|
+
const data = Object.create(null);
|
|
155
|
+
data.markerWidget = ( (new MarkerWidget(
|
|
156
|
+
container,
|
|
157
|
+
this.markersViewState,
|
|
158
|
+
this.openerService,
|
|
159
|
+
this.instantiationService
|
|
160
|
+
)));
|
|
161
|
+
return data;
|
|
162
|
+
}
|
|
163
|
+
renderElement(node, _, templateData) {
|
|
164
|
+
templateData.markerWidget.render(node.element, node.filterData);
|
|
165
|
+
}
|
|
166
|
+
disposeTemplate(templateData) {
|
|
167
|
+
templateData.markerWidget.dispose();
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
MarkerRenderer = ( (__decorate([
|
|
171
|
+
( (__param(1, IInstantiationService))),
|
|
172
|
+
( (__param(2, IOpenerService)))
|
|
173
|
+
], MarkerRenderer)));
|
|
174
|
+
const expandedIcon = registerIcon('markers-view-multi-line-expanded', Codicon.chevronUp, ( (localize(
|
|
175
|
+
'expandedIcon',
|
|
176
|
+
'Icon indicating that multiple lines are shown in the markers view.'
|
|
177
|
+
))));
|
|
178
|
+
const collapsedIcon = registerIcon('markers-view-multi-line-collapsed', Codicon.chevronDown, ( (localize(
|
|
179
|
+
'collapsedIcon',
|
|
180
|
+
'Icon indicating that multiple lines are collapsed in the markers view.'
|
|
181
|
+
))));
|
|
182
|
+
const toggleMultilineAction = 'problems.action.toggleMultiline';
|
|
183
|
+
class ToggleMultilineActionViewItem extends ActionViewItem {
|
|
184
|
+
render(container) {
|
|
185
|
+
super.render(container);
|
|
186
|
+
this.updateExpandedAttribute();
|
|
187
|
+
}
|
|
188
|
+
updateClass() {
|
|
189
|
+
super.updateClass();
|
|
190
|
+
this.updateExpandedAttribute();
|
|
191
|
+
}
|
|
192
|
+
updateExpandedAttribute() {
|
|
193
|
+
this.element?.setAttribute('aria-expanded', `${this._action.class === ThemeIcon.asClassName(expandedIcon)}`);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
class MarkerWidget extends Disposable {
|
|
197
|
+
constructor(parent, markersViewModel, _openerService, _instantiationService) {
|
|
198
|
+
super();
|
|
199
|
+
this.parent = parent;
|
|
200
|
+
this.markersViewModel = markersViewModel;
|
|
201
|
+
this._openerService = _openerService;
|
|
202
|
+
this.disposables = this._register(( (new DisposableStore())));
|
|
203
|
+
this.actionBar = this._register(( (new ActionBar(dom.append(parent, dom.$('.actions')), {
|
|
204
|
+
actionViewItemProvider: (action) => action.id === QuickFixAction.ID ? _instantiationService.createInstance(QuickFixActionViewItem, action) : undefined
|
|
205
|
+
}))));
|
|
206
|
+
this.iconContainer = dom.append(parent, dom.$(''));
|
|
207
|
+
this.icon = dom.append(this.iconContainer, dom.$(''));
|
|
208
|
+
this.messageAndDetailsContainer = dom.append(parent, dom.$('.marker-message-details-container'));
|
|
209
|
+
}
|
|
210
|
+
render(element, filterData) {
|
|
211
|
+
this.actionBar.clear();
|
|
212
|
+
this.disposables.clear();
|
|
213
|
+
dom.clearNode(this.messageAndDetailsContainer);
|
|
214
|
+
this.iconContainer.className = `marker-icon ${( ( Severity.toString(MarkerSeverity.toSeverity(element.marker.severity))))}`;
|
|
215
|
+
this.icon.className = `codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(element.marker.severity))}`;
|
|
216
|
+
this.renderQuickfixActionbar(element);
|
|
217
|
+
this.renderMessageAndDetails(element, filterData);
|
|
218
|
+
this.disposables.add(dom.addDisposableListener(this.parent, dom.EventType.MOUSE_OVER, () => this.markersViewModel.onMarkerMouseHover(element)));
|
|
219
|
+
this.disposables.add(dom.addDisposableListener(this.parent, dom.EventType.MOUSE_LEAVE, () => this.markersViewModel.onMarkerMouseLeave(element)));
|
|
220
|
+
}
|
|
221
|
+
renderQuickfixActionbar(marker) {
|
|
222
|
+
const viewModel = this.markersViewModel.getViewModel(marker);
|
|
223
|
+
if (viewModel) {
|
|
224
|
+
const quickFixAction = viewModel.quickFixAction;
|
|
225
|
+
this.actionBar.push([quickFixAction], { icon: true, label: false });
|
|
226
|
+
this.iconContainer.classList.toggle('quickFix', quickFixAction.enabled);
|
|
227
|
+
quickFixAction.onDidChange(({ enabled }) => {
|
|
228
|
+
if (!isUndefinedOrNull(enabled)) {
|
|
229
|
+
this.iconContainer.classList.toggle('quickFix', enabled);
|
|
230
|
+
}
|
|
231
|
+
}, this, this.disposables);
|
|
232
|
+
quickFixAction.onShowQuickFixes(() => {
|
|
233
|
+
const quickFixActionViewItem = this.actionBar.viewItems[0];
|
|
234
|
+
if (quickFixActionViewItem) {
|
|
235
|
+
quickFixActionViewItem.showQuickFixes();
|
|
236
|
+
}
|
|
237
|
+
}, this, this.disposables);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
renderMultilineActionbar(marker, parent) {
|
|
241
|
+
const multilineActionbar = this.disposables.add(( (new ActionBar(dom.append(parent, dom.$('.multiline-actions')), {
|
|
242
|
+
actionViewItemProvider: (action) => {
|
|
243
|
+
if (action.id === toggleMultilineAction) {
|
|
244
|
+
return (
|
|
245
|
+
(new ToggleMultilineActionViewItem(undefined, action, { icon: true }))
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
return undefined;
|
|
249
|
+
}
|
|
250
|
+
}))));
|
|
251
|
+
this.disposables.add(toDisposable(() => multilineActionbar.dispose()));
|
|
252
|
+
const viewModel = this.markersViewModel.getViewModel(marker);
|
|
253
|
+
const multiline = viewModel && viewModel.multiline;
|
|
254
|
+
const action = ( (new Action(toggleMultilineAction)));
|
|
255
|
+
action.enabled = !!viewModel && marker.lines.length > 1;
|
|
256
|
+
action.tooltip = multiline ? ( (localize('single line', "Show message in single line"))) : ( (localize('multi line', "Show message in multiple lines")));
|
|
257
|
+
action.class = ThemeIcon.asClassName(multiline ? expandedIcon : collapsedIcon);
|
|
258
|
+
action.run = () => { if (viewModel) {
|
|
259
|
+
viewModel.multiline = !viewModel.multiline;
|
|
260
|
+
} return Promise.resolve(); };
|
|
261
|
+
multilineActionbar.push([action], { icon: true, label: false });
|
|
262
|
+
}
|
|
263
|
+
renderMessageAndDetails(element, filterData) {
|
|
264
|
+
const { marker, lines } = element;
|
|
265
|
+
const viewState = this.markersViewModel.getViewModel(element);
|
|
266
|
+
const multiline = !viewState || viewState.multiline;
|
|
267
|
+
const lineMatches = filterData && filterData.lineMatches || [];
|
|
268
|
+
this.messageAndDetailsContainer.title = element.marker.message;
|
|
269
|
+
const lineElements = [];
|
|
270
|
+
for (let index = 0; index < (multiline ? lines.length : 1); index++) {
|
|
271
|
+
const lineElement = dom.append(this.messageAndDetailsContainer, dom.$('.marker-message-line'));
|
|
272
|
+
const messageElement = dom.append(lineElement, dom.$('.marker-message'));
|
|
273
|
+
const highlightedLabel = ( (new HighlightedLabel(messageElement)));
|
|
274
|
+
highlightedLabel.set(lines[index].length > 1000 ? `${lines[index].substring(0, 1000)}...` : lines[index], lineMatches[index]);
|
|
275
|
+
if (lines[index] === '') {
|
|
276
|
+
lineElement.style.height = `${VirtualDelegate.LINE_HEIGHT}px`;
|
|
277
|
+
}
|
|
278
|
+
lineElements.push(lineElement);
|
|
279
|
+
}
|
|
280
|
+
this.renderDetails(marker, filterData, lineElements[0]);
|
|
281
|
+
this.renderMultilineActionbar(element, lineElements[0]);
|
|
282
|
+
}
|
|
283
|
+
renderDetails(marker, filterData, parent) {
|
|
284
|
+
parent.classList.add('details-container');
|
|
285
|
+
if (marker.source || marker.code) {
|
|
286
|
+
const source = ( (new HighlightedLabel(dom.append(parent, dom.$('.marker-source')))));
|
|
287
|
+
const sourceMatches = filterData && filterData.sourceMatches || [];
|
|
288
|
+
source.set(marker.source, sourceMatches);
|
|
289
|
+
if (marker.code) {
|
|
290
|
+
if (typeof marker.code === 'string') {
|
|
291
|
+
const code = ( (new HighlightedLabel(dom.append(parent, dom.$('.marker-code')))));
|
|
292
|
+
const codeMatches = filterData && filterData.codeMatches || [];
|
|
293
|
+
code.set(marker.code, codeMatches);
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
const container = dom.$('.marker-code');
|
|
297
|
+
const code = ( (new HighlightedLabel(container)));
|
|
298
|
+
const link = ( (marker.code.target.toString(true)));
|
|
299
|
+
this.disposables.add(( (new Link(
|
|
300
|
+
parent,
|
|
301
|
+
{ href: link, label: container, title: link },
|
|
302
|
+
undefined,
|
|
303
|
+
this._openerService
|
|
304
|
+
))));
|
|
305
|
+
const codeMatches = filterData && filterData.codeMatches || [];
|
|
306
|
+
code.set(marker.code.value, codeMatches);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
const lnCol = dom.append(parent, dom.$('span.marker-line'));
|
|
311
|
+
lnCol.textContent = Messages$1.MARKERS_PANEL_AT_LINE_COL_NUMBER(marker.startLineNumber, marker.startColumn);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
let RelatedInformationRenderer = class RelatedInformationRenderer {
|
|
315
|
+
constructor(labelService) {
|
|
316
|
+
this.labelService = labelService;
|
|
317
|
+
this.templateId = "ri" ;
|
|
318
|
+
}
|
|
319
|
+
renderTemplate(container) {
|
|
320
|
+
const data = Object.create(null);
|
|
321
|
+
dom.append(container, dom.$('.actions'));
|
|
322
|
+
dom.append(container, dom.$('.icon'));
|
|
323
|
+
data.resourceLabel = ( (new HighlightedLabel(dom.append(container, dom.$('.related-info-resource')))));
|
|
324
|
+
data.lnCol = dom.append(container, dom.$('span.marker-line'));
|
|
325
|
+
const separator = dom.append(container, dom.$('span.related-info-resource-separator'));
|
|
326
|
+
separator.textContent = ':';
|
|
327
|
+
separator.style.paddingRight = '4px';
|
|
328
|
+
data.description = ( (new HighlightedLabel(dom.append(container, dom.$('.marker-description')))));
|
|
329
|
+
return data;
|
|
330
|
+
}
|
|
331
|
+
renderElement(node, _, templateData) {
|
|
332
|
+
const relatedInformation = node.element.raw;
|
|
333
|
+
const uriMatches = node.filterData && node.filterData.uriMatches || [];
|
|
334
|
+
const messageMatches = node.filterData && node.filterData.messageMatches || [];
|
|
335
|
+
templateData.resourceLabel.set(basename(relatedInformation.resource), uriMatches);
|
|
336
|
+
templateData.resourceLabel.element.title = this.labelService.getUriLabel(relatedInformation.resource, { relative: true });
|
|
337
|
+
templateData.lnCol.textContent = Messages$1.MARKERS_PANEL_AT_LINE_COL_NUMBER(relatedInformation.startLineNumber, relatedInformation.startColumn);
|
|
338
|
+
templateData.description.set(relatedInformation.message, messageMatches);
|
|
339
|
+
templateData.description.element.title = relatedInformation.message;
|
|
340
|
+
}
|
|
341
|
+
disposeTemplate(templateData) {
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
RelatedInformationRenderer = ( (__decorate([
|
|
345
|
+
( (__param(0, ILabelService)))
|
|
346
|
+
], RelatedInformationRenderer)));
|
|
347
|
+
class Filter {
|
|
348
|
+
constructor(options) {
|
|
349
|
+
this.options = options;
|
|
350
|
+
}
|
|
351
|
+
filter(element, parentVisibility) {
|
|
352
|
+
if (element instanceof ResourceMarkers) {
|
|
353
|
+
return this.filterResourceMarkers(element);
|
|
354
|
+
}
|
|
355
|
+
else if (element instanceof Marker) {
|
|
356
|
+
return this.filterMarker(element, parentVisibility);
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
return this.filterRelatedInformation(element, parentVisibility);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
filterResourceMarkers(resourceMarkers) {
|
|
363
|
+
if (( (unsupportedSchemas.has(resourceMarkers.resource.scheme)))) {
|
|
364
|
+
return false;
|
|
365
|
+
}
|
|
366
|
+
if (this.options.excludesMatcher.matches(resourceMarkers.resource)) {
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
if (this.options.includesMatcher.matches(resourceMarkers.resource)) {
|
|
370
|
+
return true;
|
|
371
|
+
}
|
|
372
|
+
if (this.options.textFilter.text && !this.options.textFilter.negate) {
|
|
373
|
+
const uriMatches = FilterOptions._filter(this.options.textFilter.text, basename(resourceMarkers.resource));
|
|
374
|
+
if (uriMatches) {
|
|
375
|
+
return { visibility: true, data: { type: 0 , uriMatches: uriMatches || [] } };
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return 2 ;
|
|
379
|
+
}
|
|
380
|
+
filterMarker(marker, parentVisibility) {
|
|
381
|
+
const matchesSeverity = this.options.showErrors && MarkerSeverity.Error === marker.marker.severity ||
|
|
382
|
+
this.options.showWarnings && MarkerSeverity.Warning === marker.marker.severity ||
|
|
383
|
+
this.options.showInfos && MarkerSeverity.Info === marker.marker.severity;
|
|
384
|
+
if (!matchesSeverity) {
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
if (!this.options.textFilter.text) {
|
|
388
|
+
return true;
|
|
389
|
+
}
|
|
390
|
+
const lineMatches = [];
|
|
391
|
+
for (const line of marker.lines) {
|
|
392
|
+
const lineMatch = FilterOptions._messageFilter(this.options.textFilter.text, line);
|
|
393
|
+
lineMatches.push(lineMatch || []);
|
|
394
|
+
}
|
|
395
|
+
const sourceMatches = marker.marker.source ? FilterOptions._filter(this.options.textFilter.text, marker.marker.source) : undefined;
|
|
396
|
+
const codeMatches = marker.marker.code ? FilterOptions._filter(this.options.textFilter.text, typeof marker.marker.code === 'string' ? marker.marker.code : marker.marker.code.value) : undefined;
|
|
397
|
+
const matched = sourceMatches || codeMatches || ( (lineMatches.some(lineMatch => lineMatch.length > 0)));
|
|
398
|
+
if (matched && !this.options.textFilter.negate) {
|
|
399
|
+
return { visibility: true, data: { type: 1 , lineMatches, sourceMatches: sourceMatches || [], codeMatches: codeMatches || [] } };
|
|
400
|
+
}
|
|
401
|
+
if (matched && this.options.textFilter.negate && parentVisibility === 2 ) {
|
|
402
|
+
return false;
|
|
403
|
+
}
|
|
404
|
+
if (!matched && this.options.textFilter.negate && parentVisibility === 2 ) {
|
|
405
|
+
return true;
|
|
406
|
+
}
|
|
407
|
+
return parentVisibility;
|
|
408
|
+
}
|
|
409
|
+
filterRelatedInformation(relatedInformation, parentVisibility) {
|
|
410
|
+
if (!this.options.textFilter.text) {
|
|
411
|
+
return true;
|
|
412
|
+
}
|
|
413
|
+
const uriMatches = FilterOptions._filter(this.options.textFilter.text, basename(relatedInformation.raw.resource));
|
|
414
|
+
const messageMatches = FilterOptions._messageFilter(this.options.textFilter.text, path.basename(relatedInformation.raw.message));
|
|
415
|
+
const matched = uriMatches || messageMatches;
|
|
416
|
+
if (matched && !this.options.textFilter.negate) {
|
|
417
|
+
return { visibility: true, data: { type: 2 , uriMatches: uriMatches || [], messageMatches: messageMatches || [] } };
|
|
418
|
+
}
|
|
419
|
+
if (matched && this.options.textFilter.negate && parentVisibility === 2 ) {
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
if (!matched && this.options.textFilter.negate && parentVisibility === 2 ) {
|
|
423
|
+
return true;
|
|
424
|
+
}
|
|
425
|
+
return parentVisibility;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
let MarkerViewModel = class MarkerViewModel extends Disposable {
|
|
429
|
+
constructor(marker, modelService, instantiationService, editorService, languageFeaturesService) {
|
|
430
|
+
super();
|
|
431
|
+
this.marker = marker;
|
|
432
|
+
this.modelService = modelService;
|
|
433
|
+
this.instantiationService = instantiationService;
|
|
434
|
+
this.editorService = editorService;
|
|
435
|
+
this.languageFeaturesService = languageFeaturesService;
|
|
436
|
+
this._onDidChange = this._register(( (new Emitter())));
|
|
437
|
+
this.onDidChange = this._onDidChange.event;
|
|
438
|
+
this.modelPromise = null;
|
|
439
|
+
this.codeActionsPromise = null;
|
|
440
|
+
this._multiline = true;
|
|
441
|
+
this._quickFixAction = null;
|
|
442
|
+
this._register(toDisposable(() => {
|
|
443
|
+
if (this.modelPromise) {
|
|
444
|
+
this.modelPromise.cancel();
|
|
445
|
+
}
|
|
446
|
+
if (this.codeActionsPromise) {
|
|
447
|
+
this.codeActionsPromise.cancel();
|
|
448
|
+
}
|
|
449
|
+
}));
|
|
450
|
+
}
|
|
451
|
+
get multiline() {
|
|
452
|
+
return this._multiline;
|
|
453
|
+
}
|
|
454
|
+
set multiline(value) {
|
|
455
|
+
if (this._multiline !== value) {
|
|
456
|
+
this._multiline = value;
|
|
457
|
+
this._onDidChange.fire();
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
get quickFixAction() {
|
|
461
|
+
if (!this._quickFixAction) {
|
|
462
|
+
this._quickFixAction = this._register(this.instantiationService.createInstance(QuickFixAction, this.marker));
|
|
463
|
+
}
|
|
464
|
+
return this._quickFixAction;
|
|
465
|
+
}
|
|
466
|
+
showLightBulb() {
|
|
467
|
+
this.setQuickFixes(true);
|
|
468
|
+
}
|
|
469
|
+
async setQuickFixes(waitForModel) {
|
|
470
|
+
const codeActions = await this.getCodeActions(waitForModel);
|
|
471
|
+
this.quickFixAction.quickFixes = codeActions ? this.toActions(codeActions) : [];
|
|
472
|
+
this.quickFixAction.autoFixable(!!codeActions && codeActions.hasAutoFix);
|
|
473
|
+
}
|
|
474
|
+
getCodeActions(waitForModel) {
|
|
475
|
+
if (this.codeActionsPromise !== null) {
|
|
476
|
+
return this.codeActionsPromise;
|
|
477
|
+
}
|
|
478
|
+
return this.getModel(waitForModel)
|
|
479
|
+
.then(model => {
|
|
480
|
+
if (model) {
|
|
481
|
+
if (!this.codeActionsPromise) {
|
|
482
|
+
this.codeActionsPromise = createCancelablePromise(cancellationToken => {
|
|
483
|
+
return getCodeActions(this.languageFeaturesService.codeActionProvider, model, ( (new Range(
|
|
484
|
+
this.marker.range.startLineNumber,
|
|
485
|
+
this.marker.range.startColumn,
|
|
486
|
+
this.marker.range.endLineNumber,
|
|
487
|
+
this.marker.range.endColumn
|
|
488
|
+
))), {
|
|
489
|
+
type: 1 , triggerAction: CodeActionTriggerSource.ProblemsView, filter: { include: CodeActionKind.QuickFix }
|
|
490
|
+
}, Progress.None, cancellationToken).then(actions => {
|
|
491
|
+
return this._register(actions);
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
return this.codeActionsPromise;
|
|
496
|
+
}
|
|
497
|
+
return null;
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
toActions(codeActions) {
|
|
501
|
+
return (
|
|
502
|
+
(codeActions.validActions.map(item => ( (new Action(
|
|
503
|
+
item.action.command ? item.action.command.id : item.action.title,
|
|
504
|
+
item.action.title,
|
|
505
|
+
undefined,
|
|
506
|
+
true,
|
|
507
|
+
() => {
|
|
508
|
+
return this.openFileAtMarker(this.marker)
|
|
509
|
+
.then(() => this.instantiationService.invokeFunction(applyCodeAction, item, ApplyCodeActionReason.FromProblemsView));
|
|
510
|
+
}
|
|
511
|
+
)))))
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
openFileAtMarker(element) {
|
|
515
|
+
const { resource, selection } = { resource: element.resource, selection: element.range };
|
|
516
|
+
return this.editorService.openEditor({
|
|
517
|
+
resource,
|
|
518
|
+
options: {
|
|
519
|
+
selection,
|
|
520
|
+
preserveFocus: true,
|
|
521
|
+
pinned: false,
|
|
522
|
+
revealIfVisible: true
|
|
523
|
+
},
|
|
524
|
+
}, ACTIVE_GROUP).then(() => undefined);
|
|
525
|
+
}
|
|
526
|
+
getModel(waitForModel) {
|
|
527
|
+
const model = this.modelService.getModel(this.marker.resource);
|
|
528
|
+
if (model) {
|
|
529
|
+
return Promise.resolve(model);
|
|
530
|
+
}
|
|
531
|
+
if (waitForModel) {
|
|
532
|
+
if (!this.modelPromise) {
|
|
533
|
+
this.modelPromise = createCancelablePromise(cancellationToken => {
|
|
534
|
+
return (
|
|
535
|
+
(new Promise((c) => {
|
|
536
|
+
this._register(this.modelService.onModelAdded(model => {
|
|
537
|
+
if (isEqual(model.uri, this.marker.resource)) {
|
|
538
|
+
c(model);
|
|
539
|
+
}
|
|
540
|
+
}));
|
|
541
|
+
}))
|
|
542
|
+
);
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
return this.modelPromise;
|
|
546
|
+
}
|
|
547
|
+
return Promise.resolve(null);
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
MarkerViewModel = ( (__decorate([
|
|
551
|
+
( (__param(1, IModelService))),
|
|
552
|
+
( (__param(2, IInstantiationService))),
|
|
553
|
+
( (__param(3, IEditorService))),
|
|
554
|
+
( (__param(4, ILanguageFeaturesService)))
|
|
555
|
+
], MarkerViewModel)));
|
|
556
|
+
let MarkersViewModel = class MarkersViewModel extends Disposable {
|
|
557
|
+
constructor(multiline = true, viewMode = "tree" , contextKeyService, instantiationService) {
|
|
558
|
+
super();
|
|
559
|
+
this.contextKeyService = contextKeyService;
|
|
560
|
+
this.instantiationService = instantiationService;
|
|
561
|
+
this._onDidChange = this._register(( (new Emitter())));
|
|
562
|
+
this.onDidChange = this._onDidChange.event;
|
|
563
|
+
this._onDidChangeViewMode = this._register(( (new Emitter())));
|
|
564
|
+
this.onDidChangeViewMode = this._onDidChangeViewMode.event;
|
|
565
|
+
this.markersViewStates = ( (new Map()));
|
|
566
|
+
this.markersPerResource = ( (new Map()));
|
|
567
|
+
this.bulkUpdate = false;
|
|
568
|
+
this.hoveredMarker = null;
|
|
569
|
+
this.hoverDelayer = ( (new Delayer(300)));
|
|
570
|
+
this._multiline = true;
|
|
571
|
+
this._viewMode = "tree" ;
|
|
572
|
+
this._multiline = multiline;
|
|
573
|
+
this._viewMode = viewMode;
|
|
574
|
+
this.viewModeContextKey = MarkersContextKeys.MarkersViewModeContextKey.bindTo(this.contextKeyService);
|
|
575
|
+
this.viewModeContextKey.set(viewMode);
|
|
576
|
+
}
|
|
577
|
+
add(marker) {
|
|
578
|
+
if (!( (this.markersViewStates.has(marker.id)))) {
|
|
579
|
+
const viewModel = this.instantiationService.createInstance(MarkerViewModel, marker);
|
|
580
|
+
const disposables = [viewModel];
|
|
581
|
+
viewModel.multiline = this.multiline;
|
|
582
|
+
viewModel.onDidChange(() => {
|
|
583
|
+
if (!this.bulkUpdate) {
|
|
584
|
+
this._onDidChange.fire(marker);
|
|
585
|
+
}
|
|
586
|
+
}, this, disposables);
|
|
587
|
+
this.markersViewStates.set(marker.id, { viewModel, disposables });
|
|
588
|
+
const markers = this.markersPerResource.get(( (marker.resource.toString()))) || [];
|
|
589
|
+
markers.push(marker);
|
|
590
|
+
this.markersPerResource.set(( (marker.resource.toString())), markers);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
remove(resource) {
|
|
594
|
+
const markers = this.markersPerResource.get(( (resource.toString()))) || [];
|
|
595
|
+
for (const marker of markers) {
|
|
596
|
+
const value = this.markersViewStates.get(marker.id);
|
|
597
|
+
if (value) {
|
|
598
|
+
dispose(value.disposables);
|
|
599
|
+
}
|
|
600
|
+
this.markersViewStates.delete(marker.id);
|
|
601
|
+
if (this.hoveredMarker === marker) {
|
|
602
|
+
this.hoveredMarker = null;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
this.markersPerResource.delete(( (resource.toString())));
|
|
606
|
+
}
|
|
607
|
+
getViewModel(marker) {
|
|
608
|
+
const value = this.markersViewStates.get(marker.id);
|
|
609
|
+
return value ? value.viewModel : null;
|
|
610
|
+
}
|
|
611
|
+
onMarkerMouseHover(marker) {
|
|
612
|
+
this.hoveredMarker = marker;
|
|
613
|
+
this.hoverDelayer.trigger(() => {
|
|
614
|
+
if (this.hoveredMarker) {
|
|
615
|
+
const model = this.getViewModel(this.hoveredMarker);
|
|
616
|
+
if (model) {
|
|
617
|
+
model.showLightBulb();
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
onMarkerMouseLeave(marker) {
|
|
623
|
+
if (this.hoveredMarker === marker) {
|
|
624
|
+
this.hoveredMarker = null;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
get multiline() {
|
|
628
|
+
return this._multiline;
|
|
629
|
+
}
|
|
630
|
+
set multiline(value) {
|
|
631
|
+
let changed = false;
|
|
632
|
+
if (this._multiline !== value) {
|
|
633
|
+
this._multiline = value;
|
|
634
|
+
changed = true;
|
|
635
|
+
}
|
|
636
|
+
this.bulkUpdate = true;
|
|
637
|
+
this.markersViewStates.forEach(({ viewModel }) => {
|
|
638
|
+
if (viewModel.multiline !== value) {
|
|
639
|
+
viewModel.multiline = value;
|
|
640
|
+
changed = true;
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
this.bulkUpdate = false;
|
|
644
|
+
if (changed) {
|
|
645
|
+
this._onDidChange.fire(undefined);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
get viewMode() {
|
|
649
|
+
return this._viewMode;
|
|
650
|
+
}
|
|
651
|
+
set viewMode(value) {
|
|
652
|
+
if (this._viewMode === value) {
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
655
|
+
this._viewMode = value;
|
|
656
|
+
this._onDidChangeViewMode.fire(value);
|
|
657
|
+
this.viewModeContextKey.set(value);
|
|
658
|
+
}
|
|
659
|
+
dispose() {
|
|
660
|
+
this.markersViewStates.forEach(({ disposables }) => dispose(disposables));
|
|
661
|
+
this.markersViewStates.clear();
|
|
662
|
+
this.markersPerResource.clear();
|
|
663
|
+
super.dispose();
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
MarkersViewModel = ( (__decorate([
|
|
667
|
+
( (__param(2, IContextKeyService))),
|
|
668
|
+
( (__param(3, IInstantiationService)))
|
|
669
|
+
], MarkersViewModel)));
|
|
670
|
+
export { Filter, MarkerRenderer, MarkerViewModel, MarkersViewModel, MarkersWidgetAccessibilityProvider, RelatedInformationRenderer, ResourceMarkersRenderer, VirtualDelegate };
|