@codingame/monaco-vscode-api 1.79.0 → 1.79.2-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -6
- package/dist/api.js +12 -10
- package/dist/composite.d.ts +65 -0
- package/dist/configurationRegistry.d.ts +212 -0
- package/dist/contextkey.d.ts +2 -2
- package/dist/default-extension.js +23 -0
- package/dist/default-extensions/json.js +1 -0
- package/dist/default-extensions/theme-defaults.js +2 -2
- package/dist/editor.d.ts +4 -320
- package/dist/editorBrowser.d.ts +597 -11
- package/dist/event.d.ts +6 -1
- package/dist/{extension-tools-d0cfdea1.js → extension-tools-3c2bf0a4.js} +1032 -706
- package/dist/extensions.d.ts +6 -6
- package/dist/extensions.d2.ts +6 -17
- package/dist/extensions.js +4 -37
- package/dist/extensionsRegistry.d.ts +15 -9
- package/dist/files.d.ts +73 -9
- package/dist/jsonSchema.d.ts +1 -1
- package/dist/keybinding.d.ts +3 -3
- package/dist/languageFeatures.d.ts +706 -65
- package/dist/log.d.ts +1 -1
- package/dist/monaco.d.ts +33 -33
- package/dist/monaco.js +62 -6
- package/dist/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js +2 -0
- 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 +5 -0
- package/dist/platform.d.ts +11 -0
- package/dist/rollup-extension-directory-plugin.js +1 -2
- package/dist/rollup-vsix-plugin.js +1 -2
- package/dist/service-override/configuration.d.ts +7 -208
- package/dist/service-override/editor.d.ts +13 -0
- package/dist/service-override/{modelEditor.js → editor.js} +6 -62
- package/dist/service-override/files.d.ts +4 -4
- package/dist/service-override/files.js +14 -2
- package/dist/service-override/keybindings.js +3 -79
- package/dist/service-override/layout.js +6 -2
- package/dist/service-override/markers.d.ts +7 -0
- package/dist/service-override/markers.js +6 -0
- package/dist/service-override/model.d.ts +7 -0
- package/dist/service-override/model.js +10 -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.d.ts +7 -0
- package/dist/service-override/quickaccess.js +71 -0
- package/dist/service-override/search.d.ts +7 -0
- package/dist/service-override/search.js +19 -0
- package/dist/service-override/snippets.js +5 -1
- package/dist/service-override/terminal.d.ts +607 -0
- package/dist/service-override/terminal.js +98 -0
- package/dist/service-override/textmate.js +7 -2
- package/dist/service-override/theme.d.ts +1 -1
- package/dist/service-override/tools/editor.js +73 -0
- package/dist/service-override/views.d.ts +569 -481
- package/dist/service-override/views.js +149 -15
- package/dist/services.d.ts +2819 -203
- 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/browser/ui/centered/centeredViewLayout.js +178 -0
- package/dist/vscode/vs/base/browser/ui/grid/grid.js +452 -0
- package/dist/vscode/vs/base/browser/ui/grid/gridview.css.js +4 -0
- package/dist/vscode/vs/base/browser/ui/grid/gridview.js +999 -0
- package/dist/vscode/vs/base/browser/ui/iconLabel/simpleIconLabel.js +14 -0
- package/dist/vscode/vs/base/browser/ui/menu/menubar.css.js +4 -0
- package/dist/vscode/vs/base/browser/ui/menu/menubar.js +1 -1
- package/dist/vscode/vs/base/browser/ui/splitview/paneview.css.js +4 -0
- package/dist/vscode/vs/base/browser/ui/splitview/paneview.js +1 -1
- 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 +39 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +5 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionStorage.js +1 -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 +94 -0
- 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 +23 -0
- 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/update/common/update.js +11 -1
- 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/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/mainThreadDocumentsAndEditors.js +1 -1
- 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 +49 -0
- 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 +261 -0
- 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 +122 -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 +22 -18
- package/dist/vscode/vs/workbench/browser/actions/quickAccessActions.js +204 -0
- package/dist/vscode/vs/workbench/browser/actions/windowActions.js +2 -2
- package/dist/vscode/vs/workbench/browser/dnd.js +82 -3
- package/dist/vscode/vs/workbench/browser/editor.js +94 -0
- package/dist/vscode/vs/workbench/browser/labels.js +23 -2
- package/dist/vscode/vs/workbench/browser/media/part.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/part.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/activitybar/activitybarActions.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/activitybar/activitybarPart.js +3 -3
- package/dist/vscode/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +14 -26
- package/dist/vscode/vs/workbench/browser/parts/compositePart.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/editor/binaryDiffEditor.js +43 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/binaryEditor.js +55 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/breadcrumbs.js +330 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/breadcrumbsControl.js +690 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/breadcrumbsModel.js +142 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +414 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +801 -6
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +57 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +1484 -107
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +1125 -9
- package/dist/vscode/vs/workbench/browser/parts/editor/editorDropTarget.js +499 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupView.js +1225 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupWatermark.js +133 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +242 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPanes.js +297 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPart.js +841 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPlaceholder.js +235 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +1152 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +139 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorsObserver.js +339 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/editorplaceholder.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/editorquickaccess.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/editorstatus.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/notabstitlecontrol.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/sidebysideeditor.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/media/titlecontrol.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/noTabsTitleControl.js +245 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/sideBySideEditor.js +387 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/tabFocus.js +77 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/tabsTitleControl.js +1553 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/textCodeEditor.js +79 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +310 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/textEditor.js +220 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/textResourceEditor.js +149 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/titleControl.js +284 -0
- package/dist/vscode/vs/workbench/browser/parts/media/compositepart.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsActions.js +8 -8
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsCenter.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsList.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsToasts.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/panel/media/basepanelpart.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/panel/media/panelpart.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +19 -5
- package/dist/vscode/vs/workbench/browser/parts/panel/panelPart.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/statusbar/statusbarActions.js +109 -0
- package/dist/vscode/vs/workbench/browser/parts/statusbar/statusbarItem.js +224 -0
- package/dist/vscode/vs/workbench/browser/parts/statusbar/statusbarModel.js +251 -0
- package/dist/vscode/vs/workbench/browser/parts/statusbar/statusbarPart.js +439 -0
- package/dist/vscode/vs/workbench/browser/parts/titlebar/media/menubarControl.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/titlebar/menubarControl.js +76 -3
- package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +10 -0
- package/dist/vscode/vs/workbench/browser/parts/views/media/paneviewlet.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/views/media/views.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +79 -15
- package/dist/vscode/vs/workbench/browser/parts/views/viewPane.js +5 -5
- package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +2 -2
- package/dist/vscode/vs/workbench/browser/parts/views/viewsService.js +4 -4
- package/dist/vscode/vs/workbench/browser/quickaccess.js +6 -2
- package/dist/vscode/vs/workbench/browser/workbench.contribution.js +1167 -0
- package/dist/vscode/vs/workbench/common/configuration.js +8 -1
- package/dist/vscode/vs/workbench/common/contextkeys.js +42 -1
- package/dist/vscode/vs/workbench/common/editor/editorGroupModel.js +678 -0
- 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 +57 -5
- package/dist/vscode/vs/workbench/common/resources.js +111 -34
- package/dist/vscode/vs/workbench/common/theme.js +35 -35
- package/dist/vscode/vs/workbench/common/views.js +1 -1
- 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/callHierarchy/browser/callHierarchy.contribution.js +4 -4
- package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +1 -1
- package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +4 -0
- 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/quickaccess/gotoLineQuickAccess.js +77 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +217 -0
- 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/codeEditor/browser/workbenchReferenceSearch.js +24 -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/breakpointWidget.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debug.contribution.js +30 -4
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems.js +1 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +15 -2
- 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/debugIcons.js +77 -127
- 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/debugToolBar.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugViewlet.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/disassemblyView.js +620 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/exceptionWidget.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/media/debugHover.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/media/repl.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +4 -4
- package/dist/vscode/vs/workbench/contrib/debug/common/debug.js +2 -1
- 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/binaryFileEditor.js +71 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +2 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/textFileEditor.js +225 -0
- 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 +8 -22
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +306 -5
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +68 -3
- package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +27 -9
- package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +10 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +51 -6
- package/dist/vscode/vs/workbench/contrib/files/browser/files.js +1 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/media/explorerviewlet.css.js +4 -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/browser/views/media/openeditors.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/views/openEditorsView.js +608 -0
- package/dist/vscode/vs/workbench/contrib/files/common/explorerModel.js +16 -9
- package/dist/vscode/vs/workbench/contrib/files/common/files.js +2 -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 +8 -3
- 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 +1 -8
- 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 +49 -17
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +129 -0
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +225 -0
- package/dist/vscode/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +23 -2
- package/dist/vscode/vs/workbench/contrib/remote/browser/remoteIcons.js +21 -17
- package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +6 -6
- package/dist/vscode/vs/workbench/contrib/search/browser/anythingQuickAccess.js +757 -0
- package/dist/vscode/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +4 -0
- 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 +467 -0
- 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/browser/symbolsQuickAccess.js +219 -0
- package/dist/vscode/vs/workbench/contrib/search/common/cacheState.js +85 -0
- package/dist/vscode/vs/workbench/contrib/search/common/constants.js +31 -0
- package/dist/vscode/vs/workbench/contrib/search/common/search.js +127 -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/browser/taskQuickPick.js +385 -0
- package/dist/vscode/vs/workbench/contrib/tasks/browser/tasksQuickAccess.js +108 -0
- package/dist/vscode/vs/workbench/contrib/tasks/common/taskService.js +16 -1
- package/dist/vscode/vs/workbench/contrib/tasks/common/tasks.js +351 -0
- 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 +7 -0
- 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 +103 -0
- 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 +169 -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/typeHierarchy/browser/media/typeHierarchy.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +1 -1
- 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/editor/browser/editorDropService.js +3 -0
- package/dist/vscode/vs/workbench/services/editor/browser/editorResolverService.js +619 -0
- package/dist/vscode/vs/workbench/services/editor/browser/editorService.js +720 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorGroupFinder.js +116 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorGroupsService.js +6 -1
- package/dist/vscode/vs/workbench/services/editor/common/editorResolverService.js +34 -1
- 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/history/browser/historyService.js +1451 -0
- package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +2 -2
- package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +2 -1
- package/dist/vscode/vs/workbench/services/hover/browser/media/hover.css.js +4 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/keybindingEditing.js +275 -0
- package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +2 -1
- 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/outline/browser/outline.js +3 -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/progress/browser/progressIndicator.js +72 -1
- package/dist/vscode/vs/workbench/services/quickinput/browser/quickInputService.js +67 -0
- 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 +117 -1
- package/dist/vscode/vs/workbench/services/search/common/searchExtTypes.js +6 -0
- package/dist/vscode/vs/workbench/services/search/common/textSearchManager.js +309 -0
- package/dist/vscode/vs/workbench/services/semanticSimilarity/common/semanticSimilarityService.js +54 -1
- package/dist/vscode/vs/workbench/services/statusbar/browser/statusbar.js +15 -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/textMate/browser/worker/textMate.worker.js +90 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/worker/textMateWorkerModel.js +133 -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 +114 -3
- 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/userDataProfile/common/userDataProfile.js +1 -1
- 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 +41 -50
- package/dist/vscode-services/missing-services.js +504 -12
- package/dist/vscode-services/window.js +80 -67
- package/dist/vscode-services/workspace.js +19 -4
- package/dist/workbenchThemeService.d.ts +1 -1
- package/dist/workers/outputLinkComputer.worker.d.ts +2 -0
- package/dist/workers/outputLinkComputer.worker.js +3 -0
- package/dist/workers/textMate.worker.d.ts +2 -0
- package/dist/workers/textMate.worker.js +3 -0
- package/dist/workspace.d.ts +1 -1
- package/monaco-editor-treemending.patch +1305 -1184
- package/package.json +98 -32
- package/dist/activity.d.ts +0 -2902
- package/dist/assets/activityaction.css +0 -224
- package/dist/assets/activitybarpart.css +0 -65
- package/dist/assets/basepanelpart.css +0 -221
- package/dist/assets/breakpointWidget.css +0 -31
- package/dist/assets/callHierarchy.css +0 -62
- package/dist/assets/callStackEditorContribution.css +0 -12
- package/dist/assets/compositepart.css +0 -17
- package/dist/assets/debug.contribution.css +0 -138
- package/dist/assets/debugHover.css +0 -80
- package/dist/assets/debugToolBar.css +0 -49
- package/dist/assets/debugViewlet.css +0 -337
- package/dist/assets/editorquickaccess.css +0 -8
- package/dist/assets/exceptionWidget.css +0 -52
- package/dist/assets/explorerviewlet.css +0 -129
- package/dist/assets/hover.css +0 -127
- package/dist/assets/interactiveSession.css +0 -340
- package/dist/assets/menubar.css +0 -111
- package/dist/assets/menubarControl.css +0 -61
- package/dist/assets/notificationsActions.css +0 -14
- package/dist/assets/notificationsCenter.css +0 -69
- package/dist/assets/notificationsList.css +0 -152
- package/dist/assets/notificationsToasts.css +0 -63
- package/dist/assets/panelpart.css +0 -75
- package/dist/assets/paneview.css +0 -148
- package/dist/assets/paneviewlet.css +0 -79
- package/dist/assets/part.css +0 -109
- package/dist/assets/repl.css +0 -145
- package/dist/assets/sidebarpart.css +0 -61
- package/dist/assets/tunnelView.css +0 -107
- package/dist/assets/typeHierarchy.css +0 -62
- package/dist/assets/views.css +0 -297
- package/dist/collections.d.ts +0 -7
- package/dist/colorRegistry.d.ts +0 -710
- package/dist/override/vs/workbench/browser/parts/editor/textEditor.js +0 -2
- package/dist/override/vs/workbench/contrib/files/browser/views/openEditorsView.js +0 -2
- package/dist/service-override/modelEditor.d.ts +0 -14
- 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/common/interactiveSessionContextKeys.js +0 -48
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +0 -8
- 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/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -249
- 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,201 @@
|
|
|
1
|
+
import { basename, extUri } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
2
|
+
import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
3
|
+
import { MarkerSeverity, IMarkerData } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
4
|
+
import { flatten, isNonEmptyArray } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
5
|
+
import { ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
6
|
+
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
7
|
+
import { Hasher } from 'monaco-editor/esm/vs/base/common/hash.js';
|
|
8
|
+
import { withUndefinedAsNull } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
9
|
+
import { splitLines } from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
10
|
+
import { unsupportedSchemas } from 'monaco-editor/esm/vs/platform/markers/common/markerService.js';
|
|
11
|
+
function compareMarkersByUri(a, b) {
|
|
12
|
+
return extUri.compare(a.resource, b.resource);
|
|
13
|
+
}
|
|
14
|
+
function compareResourceMarkers(a, b) {
|
|
15
|
+
const [firstMarkerOfA] = a.markers;
|
|
16
|
+
const [firstMarkerOfB] = b.markers;
|
|
17
|
+
let res = 0;
|
|
18
|
+
if (firstMarkerOfA && firstMarkerOfB) {
|
|
19
|
+
res = MarkerSeverity.compare(firstMarkerOfA.marker.severity, firstMarkerOfB.marker.severity);
|
|
20
|
+
}
|
|
21
|
+
if (res === 0) {
|
|
22
|
+
res = a.path.localeCompare(b.path) || a.name.localeCompare(b.name);
|
|
23
|
+
}
|
|
24
|
+
return res;
|
|
25
|
+
}
|
|
26
|
+
class ResourceMarkers {
|
|
27
|
+
constructor(id, resource) {
|
|
28
|
+
this.id = id;
|
|
29
|
+
this.resource = resource;
|
|
30
|
+
this._markersMap = ( new ResourceMap());
|
|
31
|
+
this._total = 0;
|
|
32
|
+
this.path = this.resource.fsPath;
|
|
33
|
+
this.name = basename(this.resource);
|
|
34
|
+
}
|
|
35
|
+
get markers() {
|
|
36
|
+
if (!this._cachedMarkers) {
|
|
37
|
+
this._cachedMarkers = flatten([...( this._markersMap.values())]).sort(ResourceMarkers._compareMarkers);
|
|
38
|
+
}
|
|
39
|
+
return this._cachedMarkers;
|
|
40
|
+
}
|
|
41
|
+
has(uri) {
|
|
42
|
+
return ( this._markersMap.has(uri));
|
|
43
|
+
}
|
|
44
|
+
set(uri, marker) {
|
|
45
|
+
this.delete(uri);
|
|
46
|
+
if (isNonEmptyArray(marker)) {
|
|
47
|
+
this._markersMap.set(uri, marker);
|
|
48
|
+
this._total += marker.length;
|
|
49
|
+
this._cachedMarkers = undefined;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
delete(uri) {
|
|
53
|
+
const array = this._markersMap.get(uri);
|
|
54
|
+
if (array) {
|
|
55
|
+
this._total -= array.length;
|
|
56
|
+
this._cachedMarkers = undefined;
|
|
57
|
+
this._markersMap.delete(uri);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
get total() {
|
|
61
|
+
return this._total;
|
|
62
|
+
}
|
|
63
|
+
static _compareMarkers(a, b) {
|
|
64
|
+
return MarkerSeverity.compare(a.marker.severity, b.marker.severity)
|
|
65
|
+
|| extUri.compare(a.resource, b.resource)
|
|
66
|
+
|| Range.compareRangesUsingStarts(a.marker, b.marker);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
class Marker {
|
|
70
|
+
get resource() { return this.marker.resource; }
|
|
71
|
+
get range() { return this.marker; }
|
|
72
|
+
get lines() {
|
|
73
|
+
if (!this._lines) {
|
|
74
|
+
this._lines = splitLines(this.marker.message);
|
|
75
|
+
}
|
|
76
|
+
return this._lines;
|
|
77
|
+
}
|
|
78
|
+
constructor(id, marker, relatedInformation = []) {
|
|
79
|
+
this.id = id;
|
|
80
|
+
this.marker = marker;
|
|
81
|
+
this.relatedInformation = relatedInformation;
|
|
82
|
+
}
|
|
83
|
+
toString() {
|
|
84
|
+
return JSON.stringify({
|
|
85
|
+
...this.marker,
|
|
86
|
+
resource: this.marker.resource.path,
|
|
87
|
+
relatedInformation: this.relatedInformation.length ? ( this.relatedInformation.map(r => ({ ...r.raw, resource: r.raw.resource.path }))) : undefined
|
|
88
|
+
}, null, '\t');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
class MarkerTableItem extends Marker {
|
|
92
|
+
constructor(marker, sourceMatches, codeMatches, messageMatches, fileMatches, ownerMatches) {
|
|
93
|
+
super(marker.id, marker.marker, marker.relatedInformation);
|
|
94
|
+
this.sourceMatches = sourceMatches;
|
|
95
|
+
this.codeMatches = codeMatches;
|
|
96
|
+
this.messageMatches = messageMatches;
|
|
97
|
+
this.fileMatches = fileMatches;
|
|
98
|
+
this.ownerMatches = ownerMatches;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
class RelatedInformation {
|
|
102
|
+
constructor(id, marker, raw) {
|
|
103
|
+
this.id = id;
|
|
104
|
+
this.marker = marker;
|
|
105
|
+
this.raw = raw;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
class MarkersModel {
|
|
109
|
+
get resourceMarkers() {
|
|
110
|
+
if (!this.cachedSortedResources) {
|
|
111
|
+
this.cachedSortedResources = [...( this.resourcesByUri.values())].sort(compareResourceMarkers);
|
|
112
|
+
}
|
|
113
|
+
return this.cachedSortedResources;
|
|
114
|
+
}
|
|
115
|
+
constructor() {
|
|
116
|
+
this.cachedSortedResources = undefined;
|
|
117
|
+
this._onDidChange = ( new Emitter());
|
|
118
|
+
this.onDidChange = this._onDidChange.event;
|
|
119
|
+
this._total = 0;
|
|
120
|
+
this.resourcesByUri = ( new Map());
|
|
121
|
+
}
|
|
122
|
+
reset() {
|
|
123
|
+
const removed = ( new Set());
|
|
124
|
+
for (const resourceMarker of ( this.resourcesByUri.values())) {
|
|
125
|
+
removed.add(resourceMarker);
|
|
126
|
+
}
|
|
127
|
+
this.resourcesByUri.clear();
|
|
128
|
+
this._total = 0;
|
|
129
|
+
this._onDidChange.fire({ removed, added: ( new Set()), updated: ( new Set()) });
|
|
130
|
+
}
|
|
131
|
+
get total() {
|
|
132
|
+
return this._total;
|
|
133
|
+
}
|
|
134
|
+
getResourceMarkers(resource) {
|
|
135
|
+
return withUndefinedAsNull(this.resourcesByUri.get(extUri.getComparisonKey(resource, true)));
|
|
136
|
+
}
|
|
137
|
+
setResourceMarkers(resourcesMarkers) {
|
|
138
|
+
const change = { added: ( new Set()), removed: ( new Set()), updated: ( new Set()) };
|
|
139
|
+
for (const [resource, rawMarkers] of resourcesMarkers) {
|
|
140
|
+
if (( unsupportedSchemas.has(resource.scheme))) {
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
const key = extUri.getComparisonKey(resource, true);
|
|
144
|
+
let resourceMarkers = this.resourcesByUri.get(key);
|
|
145
|
+
if (isNonEmptyArray(rawMarkers)) {
|
|
146
|
+
if (!resourceMarkers) {
|
|
147
|
+
const resourceMarkersId = this.id(( resource.toString()));
|
|
148
|
+
resourceMarkers = ( new ResourceMarkers(resourceMarkersId, resource.with({ fragment: null })));
|
|
149
|
+
this.resourcesByUri.set(key, resourceMarkers);
|
|
150
|
+
change.added.add(resourceMarkers);
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
change.updated.add(resourceMarkers);
|
|
154
|
+
}
|
|
155
|
+
const markersCountByKey = ( new Map());
|
|
156
|
+
const markers = ( rawMarkers.map((rawMarker) => {
|
|
157
|
+
const key = IMarkerData.makeKey(rawMarker);
|
|
158
|
+
const index = markersCountByKey.get(key) || 0;
|
|
159
|
+
markersCountByKey.set(key, index + 1);
|
|
160
|
+
const markerId = this.id(resourceMarkers.id, key, index, ( rawMarker.resource.toString()));
|
|
161
|
+
let relatedInformation = undefined;
|
|
162
|
+
if (rawMarker.relatedInformation) {
|
|
163
|
+
relatedInformation = ( rawMarker.relatedInformation.map((r, index) => ( new RelatedInformation(this.id(markerId, ( r.resource.toString()), r.startLineNumber, r.startColumn, r.endLineNumber, r.endColumn, index), rawMarker, r))));
|
|
164
|
+
}
|
|
165
|
+
return ( new Marker(markerId, rawMarker, relatedInformation));
|
|
166
|
+
}));
|
|
167
|
+
this._total -= resourceMarkers.total;
|
|
168
|
+
resourceMarkers.set(resource, markers);
|
|
169
|
+
this._total += resourceMarkers.total;
|
|
170
|
+
}
|
|
171
|
+
else if (resourceMarkers) {
|
|
172
|
+
this._total -= resourceMarkers.total;
|
|
173
|
+
resourceMarkers.delete(resource);
|
|
174
|
+
this._total += resourceMarkers.total;
|
|
175
|
+
if (resourceMarkers.total === 0) {
|
|
176
|
+
this.resourcesByUri.delete(key);
|
|
177
|
+
change.removed.add(resourceMarkers);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
change.updated.add(resourceMarkers);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
this.cachedSortedResources = undefined;
|
|
185
|
+
if (change.added.size || change.removed.size || change.updated.size) {
|
|
186
|
+
this._onDidChange.fire(change);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
id(...values) {
|
|
190
|
+
const hasher = ( new Hasher());
|
|
191
|
+
for (const value of values) {
|
|
192
|
+
hasher.hash(value);
|
|
193
|
+
}
|
|
194
|
+
return `${hasher.value}`;
|
|
195
|
+
}
|
|
196
|
+
dispose() {
|
|
197
|
+
this._onDidChange.dispose();
|
|
198
|
+
this.resourcesByUri.clear();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
export { Marker, MarkerTableItem, MarkersModel, RelatedInformation, ResourceMarkers, compareMarkersByUri };
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
3
|
+
import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
4
|
+
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
5
|
+
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
6
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
7
|
+
import { WorkbenchTable } from 'monaco-editor/esm/vs/platform/list/browser/listService.js';
|
|
8
|
+
import { HighlightedLabel } from 'monaco-editor/esm/vs/base/browser/ui/highlightedlabel/highlightedLabel.js';
|
|
9
|
+
import { compareMarkersByUri, Marker, MarkerTableItem } from './markersModel.js';
|
|
10
|
+
import { MarkerSeverity } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
11
|
+
import { SeverityIcon } from 'monaco-editor/esm/vs/platform/severityIcon/browser/severityIcon.js';
|
|
12
|
+
import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
|
|
13
|
+
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
14
|
+
import { FilterOptions } from './markersFilterOptions.js';
|
|
15
|
+
import { Link } from 'monaco-editor/esm/vs/platform/opener/browser/link.js';
|
|
16
|
+
import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
|
|
17
|
+
import { QuickFixAction, QuickFixActionViewItem } from './markersViewActions.js';
|
|
18
|
+
import { DomEmitter } from 'monaco-editor/esm/vs/base/browser/event.js';
|
|
19
|
+
import Messages$1 from './messages.js';
|
|
20
|
+
import { isUndefinedOrNull } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
21
|
+
import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
22
|
+
import { unsupportedSchemas } from 'monaco-editor/esm/vs/platform/markers/common/markerService.js';
|
|
23
|
+
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
24
|
+
const $ = dom.$;
|
|
25
|
+
let MarkerSeverityColumnRenderer = class MarkerSeverityColumnRenderer {
|
|
26
|
+
constructor(markersViewModel, instantiationService) {
|
|
27
|
+
this.markersViewModel = markersViewModel;
|
|
28
|
+
this.instantiationService = instantiationService;
|
|
29
|
+
this.templateId = MarkerSeverityColumnRenderer.TEMPLATE_ID;
|
|
30
|
+
}
|
|
31
|
+
renderTemplate(container) {
|
|
32
|
+
const severityColumn = dom.append(container, $('.severity'));
|
|
33
|
+
const icon = dom.append(severityColumn, $(''));
|
|
34
|
+
const actionBarColumn = dom.append(container, $('.actions'));
|
|
35
|
+
const actionBar = ( (new ActionBar(actionBarColumn, {
|
|
36
|
+
actionViewItemProvider: (action) => action.id === QuickFixAction.ID ? this.instantiationService.createInstance(QuickFixActionViewItem, action) : undefined,
|
|
37
|
+
animated: false
|
|
38
|
+
})));
|
|
39
|
+
return { actionBar, icon };
|
|
40
|
+
}
|
|
41
|
+
renderElement(element, index, templateData, height) {
|
|
42
|
+
const toggleQuickFix = (enabled) => {
|
|
43
|
+
if (!isUndefinedOrNull(enabled)) {
|
|
44
|
+
const container = dom.findParentWithClass(templateData.icon, 'monaco-table-td');
|
|
45
|
+
container.classList.toggle('quickFix', enabled);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
templateData.icon.title = ( (MarkerSeverity.toString(element.marker.severity)));
|
|
49
|
+
templateData.icon.className = `marker-icon ${( ( Severity.toString(MarkerSeverity.toSeverity(element.marker.severity))))} codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(element.marker.severity))}`;
|
|
50
|
+
templateData.actionBar.clear();
|
|
51
|
+
const viewModel = this.markersViewModel.getViewModel(element);
|
|
52
|
+
if (viewModel) {
|
|
53
|
+
const quickFixAction = viewModel.quickFixAction;
|
|
54
|
+
templateData.actionBar.push([quickFixAction], { icon: true, label: false });
|
|
55
|
+
toggleQuickFix(viewModel.quickFixAction.enabled);
|
|
56
|
+
quickFixAction.onDidChange(({ enabled }) => toggleQuickFix(enabled));
|
|
57
|
+
quickFixAction.onShowQuickFixes(() => {
|
|
58
|
+
const quickFixActionViewItem = templateData.actionBar.viewItems[0];
|
|
59
|
+
if (quickFixActionViewItem) {
|
|
60
|
+
quickFixActionViewItem.showQuickFixes();
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
disposeTemplate(templateData) { }
|
|
66
|
+
};
|
|
67
|
+
MarkerSeverityColumnRenderer.TEMPLATE_ID = 'severity';
|
|
68
|
+
MarkerSeverityColumnRenderer = ( (__decorate([
|
|
69
|
+
( (__param(1, IInstantiationService)))
|
|
70
|
+
], MarkerSeverityColumnRenderer)));
|
|
71
|
+
let MarkerCodeColumnRenderer = class MarkerCodeColumnRenderer {
|
|
72
|
+
constructor(openerService) {
|
|
73
|
+
this.openerService = openerService;
|
|
74
|
+
this.templateId = MarkerCodeColumnRenderer.TEMPLATE_ID;
|
|
75
|
+
}
|
|
76
|
+
renderTemplate(container) {
|
|
77
|
+
const codeColumn = dom.append(container, $('.code'));
|
|
78
|
+
const sourceLabel = ( (new HighlightedLabel(codeColumn)));
|
|
79
|
+
sourceLabel.element.classList.add('source-label');
|
|
80
|
+
const codeLabel = ( (new HighlightedLabel(codeColumn)));
|
|
81
|
+
codeLabel.element.classList.add('code-label');
|
|
82
|
+
const codeLink = ( (new Link(codeColumn, { href: '', label: '' }, {}, this.openerService)));
|
|
83
|
+
return { codeColumn, sourceLabel, codeLabel, codeLink };
|
|
84
|
+
}
|
|
85
|
+
renderElement(element, index, templateData, height) {
|
|
86
|
+
templateData.codeColumn.classList.remove('code-label');
|
|
87
|
+
templateData.codeColumn.classList.remove('code-link');
|
|
88
|
+
if (element.marker.source && element.marker.code) {
|
|
89
|
+
if (typeof element.marker.code === 'string') {
|
|
90
|
+
templateData.codeColumn.classList.add('code-label');
|
|
91
|
+
templateData.codeColumn.title = `${element.marker.source} (${element.marker.code})`;
|
|
92
|
+
templateData.sourceLabel.set(element.marker.source, element.sourceMatches);
|
|
93
|
+
templateData.codeLabel.set(element.marker.code, element.codeMatches);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
templateData.codeColumn.classList.add('code-link');
|
|
97
|
+
templateData.codeColumn.title = `${element.marker.source} (${element.marker.code.value})`;
|
|
98
|
+
templateData.sourceLabel.set(element.marker.source, element.sourceMatches);
|
|
99
|
+
const codeLinkLabel = ( (new HighlightedLabel($('.code-link-label'))));
|
|
100
|
+
codeLinkLabel.set(element.marker.code.value, element.codeMatches);
|
|
101
|
+
templateData.codeLink.link = {
|
|
102
|
+
href: ( (element.marker.code.target.toString())),
|
|
103
|
+
title: ( (element.marker.code.target.toString())),
|
|
104
|
+
label: codeLinkLabel.element,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
templateData.codeColumn.title = '';
|
|
110
|
+
templateData.sourceLabel.set('-');
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
disposeTemplate(templateData) { }
|
|
114
|
+
};
|
|
115
|
+
MarkerCodeColumnRenderer.TEMPLATE_ID = 'code';
|
|
116
|
+
MarkerCodeColumnRenderer = ( (__decorate([
|
|
117
|
+
( (__param(0, IOpenerService)))
|
|
118
|
+
], MarkerCodeColumnRenderer)));
|
|
119
|
+
class MarkerMessageColumnRenderer {
|
|
120
|
+
constructor() {
|
|
121
|
+
this.templateId = MarkerMessageColumnRenderer.TEMPLATE_ID;
|
|
122
|
+
}
|
|
123
|
+
renderTemplate(container) {
|
|
124
|
+
const columnElement = dom.append(container, $('.message'));
|
|
125
|
+
const highlightedLabel = ( (new HighlightedLabel(columnElement)));
|
|
126
|
+
return { columnElement, highlightedLabel };
|
|
127
|
+
}
|
|
128
|
+
renderElement(element, index, templateData, height) {
|
|
129
|
+
templateData.columnElement.title = element.marker.message;
|
|
130
|
+
templateData.highlightedLabel.set(element.marker.message, element.messageMatches);
|
|
131
|
+
}
|
|
132
|
+
disposeTemplate(templateData) { }
|
|
133
|
+
}
|
|
134
|
+
MarkerMessageColumnRenderer.TEMPLATE_ID = 'message';
|
|
135
|
+
let MarkerFileColumnRenderer = class MarkerFileColumnRenderer {
|
|
136
|
+
constructor(labelService) {
|
|
137
|
+
this.labelService = labelService;
|
|
138
|
+
this.templateId = MarkerFileColumnRenderer.TEMPLATE_ID;
|
|
139
|
+
}
|
|
140
|
+
renderTemplate(container) {
|
|
141
|
+
const columnElement = dom.append(container, $('.file'));
|
|
142
|
+
const fileLabel = ( (new HighlightedLabel(columnElement)));
|
|
143
|
+
fileLabel.element.classList.add('file-label');
|
|
144
|
+
const positionLabel = ( (new HighlightedLabel(columnElement)));
|
|
145
|
+
positionLabel.element.classList.add('file-position');
|
|
146
|
+
return { columnElement, fileLabel, positionLabel };
|
|
147
|
+
}
|
|
148
|
+
renderElement(element, index, templateData, height) {
|
|
149
|
+
const positionLabel = Messages$1.MARKERS_PANEL_AT_LINE_COL_NUMBER(element.marker.startLineNumber, element.marker.startColumn);
|
|
150
|
+
templateData.columnElement.title = `${this.labelService.getUriLabel(element.marker.resource, { relative: false })} ${positionLabel}`;
|
|
151
|
+
templateData.fileLabel.set(this.labelService.getUriLabel(element.marker.resource, { relative: true }), element.fileMatches);
|
|
152
|
+
templateData.positionLabel.set(positionLabel, undefined);
|
|
153
|
+
}
|
|
154
|
+
disposeTemplate(templateData) { }
|
|
155
|
+
};
|
|
156
|
+
MarkerFileColumnRenderer.TEMPLATE_ID = 'file';
|
|
157
|
+
MarkerFileColumnRenderer = ( (__decorate([
|
|
158
|
+
( (__param(0, ILabelService)))
|
|
159
|
+
], MarkerFileColumnRenderer)));
|
|
160
|
+
class MarkerOwnerColumnRenderer {
|
|
161
|
+
constructor() {
|
|
162
|
+
this.templateId = MarkerOwnerColumnRenderer.TEMPLATE_ID;
|
|
163
|
+
}
|
|
164
|
+
renderTemplate(container) {
|
|
165
|
+
const columnElement = dom.append(container, $('.owner'));
|
|
166
|
+
const highlightedLabel = ( (new HighlightedLabel(columnElement)));
|
|
167
|
+
return { columnElement, highlightedLabel };
|
|
168
|
+
}
|
|
169
|
+
renderElement(element, index, templateData, height) {
|
|
170
|
+
templateData.columnElement.title = element.marker.owner;
|
|
171
|
+
templateData.highlightedLabel.set(element.marker.owner, element.ownerMatches);
|
|
172
|
+
}
|
|
173
|
+
disposeTemplate(templateData) { }
|
|
174
|
+
}
|
|
175
|
+
MarkerOwnerColumnRenderer.TEMPLATE_ID = 'owner';
|
|
176
|
+
class MarkersTableVirtualDelegate {
|
|
177
|
+
constructor() {
|
|
178
|
+
this.headerRowHeight = MarkersTableVirtualDelegate.HEADER_ROW_HEIGHT;
|
|
179
|
+
}
|
|
180
|
+
getHeight(item) {
|
|
181
|
+
return MarkersTableVirtualDelegate.ROW_HEIGHT;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
MarkersTableVirtualDelegate.HEADER_ROW_HEIGHT = 24;
|
|
185
|
+
MarkersTableVirtualDelegate.ROW_HEIGHT = 24;
|
|
186
|
+
let MarkersTable = class MarkersTable extends Disposable {
|
|
187
|
+
constructor(container, markersViewModel, resourceMarkers, filterOptions, options, instantiationService, labelService) {
|
|
188
|
+
super();
|
|
189
|
+
this.container = container;
|
|
190
|
+
this.markersViewModel = markersViewModel;
|
|
191
|
+
this.resourceMarkers = resourceMarkers;
|
|
192
|
+
this.filterOptions = filterOptions;
|
|
193
|
+
this.instantiationService = instantiationService;
|
|
194
|
+
this.labelService = labelService;
|
|
195
|
+
this._itemCount = 0;
|
|
196
|
+
this.table = this.instantiationService.createInstance(WorkbenchTable, 'Markers', this.container, ( (new MarkersTableVirtualDelegate())), [
|
|
197
|
+
{
|
|
198
|
+
label: '',
|
|
199
|
+
tooltip: '',
|
|
200
|
+
weight: 0,
|
|
201
|
+
minimumWidth: 36,
|
|
202
|
+
maximumWidth: 36,
|
|
203
|
+
templateId: MarkerSeverityColumnRenderer.TEMPLATE_ID,
|
|
204
|
+
project(row) { return row; }
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: ( (localize('codeColumnLabel', "Code"))),
|
|
208
|
+
tooltip: '',
|
|
209
|
+
weight: 1,
|
|
210
|
+
minimumWidth: 100,
|
|
211
|
+
maximumWidth: 300,
|
|
212
|
+
templateId: MarkerCodeColumnRenderer.TEMPLATE_ID,
|
|
213
|
+
project(row) { return row; }
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
label: ( (localize('messageColumnLabel', "Message"))),
|
|
217
|
+
tooltip: '',
|
|
218
|
+
weight: 4,
|
|
219
|
+
templateId: MarkerMessageColumnRenderer.TEMPLATE_ID,
|
|
220
|
+
project(row) { return row; }
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: ( (localize('fileColumnLabel', "File"))),
|
|
224
|
+
tooltip: '',
|
|
225
|
+
weight: 2,
|
|
226
|
+
templateId: MarkerFileColumnRenderer.TEMPLATE_ID,
|
|
227
|
+
project(row) { return row; }
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
label: ( (localize('sourceColumnLabel', "Source"))),
|
|
231
|
+
tooltip: '',
|
|
232
|
+
weight: 1,
|
|
233
|
+
minimumWidth: 100,
|
|
234
|
+
maximumWidth: 300,
|
|
235
|
+
templateId: MarkerOwnerColumnRenderer.TEMPLATE_ID,
|
|
236
|
+
project(row) { return row; }
|
|
237
|
+
}
|
|
238
|
+
], [
|
|
239
|
+
this.instantiationService.createInstance(MarkerSeverityColumnRenderer, this.markersViewModel),
|
|
240
|
+
this.instantiationService.createInstance(MarkerCodeColumnRenderer),
|
|
241
|
+
this.instantiationService.createInstance(MarkerMessageColumnRenderer),
|
|
242
|
+
this.instantiationService.createInstance(MarkerFileColumnRenderer),
|
|
243
|
+
this.instantiationService.createInstance(MarkerOwnerColumnRenderer),
|
|
244
|
+
], options);
|
|
245
|
+
const list = this.table.domNode.querySelector('.monaco-list-rows');
|
|
246
|
+
const onRowHover = ( (( (Event.chain(this._register(( (new DomEmitter(list, 'mouseover')))).event)
|
|
247
|
+
.map(
|
|
248
|
+
e => dom.findParentWithClass(e.target, 'monaco-list-row', 'monaco-list-rows')
|
|
249
|
+
)))
|
|
250
|
+
.filter(((e) => !!e))
|
|
251
|
+
.map(e => parseInt(e.getAttribute('data-index')))))
|
|
252
|
+
.event;
|
|
253
|
+
const onListLeave = ( (Event.map(
|
|
254
|
+
this._register(( (new DomEmitter(list, 'mouseleave')))).event,
|
|
255
|
+
() => -1
|
|
256
|
+
)));
|
|
257
|
+
const onRowHoverOrLeave = Event.latch(Event.any(onRowHover, onListLeave));
|
|
258
|
+
const onRowPermanentHover = Event.debounce(onRowHoverOrLeave, (_, e) => e, 500);
|
|
259
|
+
this._register(onRowPermanentHover(e => {
|
|
260
|
+
if (e !== -1 && this.table.row(e)) {
|
|
261
|
+
this.markersViewModel.onMarkerMouseHover(this.table.row(e));
|
|
262
|
+
}
|
|
263
|
+
}));
|
|
264
|
+
}
|
|
265
|
+
get contextKeyService() {
|
|
266
|
+
return this.table.contextKeyService;
|
|
267
|
+
}
|
|
268
|
+
get onContextMenu() {
|
|
269
|
+
return this.table.onContextMenu;
|
|
270
|
+
}
|
|
271
|
+
get onDidOpen() {
|
|
272
|
+
return this.table.onDidOpen;
|
|
273
|
+
}
|
|
274
|
+
get onDidChangeFocus() {
|
|
275
|
+
return this.table.onDidChangeFocus;
|
|
276
|
+
}
|
|
277
|
+
get onDidChangeSelection() {
|
|
278
|
+
return this.table.onDidChangeSelection;
|
|
279
|
+
}
|
|
280
|
+
collapseMarkers() { }
|
|
281
|
+
domFocus() {
|
|
282
|
+
this.table.domFocus();
|
|
283
|
+
}
|
|
284
|
+
filterMarkers(resourceMarkers, filterOptions) {
|
|
285
|
+
this.filterOptions = filterOptions;
|
|
286
|
+
this.reset(resourceMarkers);
|
|
287
|
+
}
|
|
288
|
+
getFocus() {
|
|
289
|
+
const focus = this.table.getFocus();
|
|
290
|
+
return focus.length > 0 ? [...( (focus.map(f => this.table.row(f))))] : [];
|
|
291
|
+
}
|
|
292
|
+
getHTMLElement() {
|
|
293
|
+
return this.table.getHTMLElement();
|
|
294
|
+
}
|
|
295
|
+
getRelativeTop(marker) {
|
|
296
|
+
return marker ? this.table.getRelativeTop(this.table.indexOf(marker)) : null;
|
|
297
|
+
}
|
|
298
|
+
getSelection() {
|
|
299
|
+
const selection = this.table.getSelection();
|
|
300
|
+
return selection.length > 0 ? [...( (selection.map(i => this.table.row(i))))] : [];
|
|
301
|
+
}
|
|
302
|
+
getVisibleItemCount() {
|
|
303
|
+
return this._itemCount;
|
|
304
|
+
}
|
|
305
|
+
isVisible() {
|
|
306
|
+
return !this.container.classList.contains('hidden');
|
|
307
|
+
}
|
|
308
|
+
layout(height, width) {
|
|
309
|
+
this.container.style.height = `${height}px`;
|
|
310
|
+
this.table.layout(height, width);
|
|
311
|
+
}
|
|
312
|
+
reset(resourceMarkers) {
|
|
313
|
+
this.resourceMarkers = resourceMarkers;
|
|
314
|
+
const items = [];
|
|
315
|
+
for (const resourceMarker of this.resourceMarkers) {
|
|
316
|
+
for (const marker of resourceMarker.markers) {
|
|
317
|
+
if (( (unsupportedSchemas.has(marker.resource.scheme)))) {
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
if (this.filterOptions.excludesMatcher.matches(marker.resource)) {
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
if (this.filterOptions.includesMatcher.matches(marker.resource)) {
|
|
324
|
+
items.push(( (new MarkerTableItem(marker))));
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
const matchesSeverity = this.filterOptions.showErrors && MarkerSeverity.Error === marker.marker.severity ||
|
|
328
|
+
this.filterOptions.showWarnings && MarkerSeverity.Warning === marker.marker.severity ||
|
|
329
|
+
this.filterOptions.showInfos && MarkerSeverity.Info === marker.marker.severity;
|
|
330
|
+
if (!matchesSeverity) {
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
if (this.filterOptions.textFilter.text) {
|
|
334
|
+
const sourceMatches = marker.marker.source ? FilterOptions._filter(this.filterOptions.textFilter.text, marker.marker.source) ?? undefined : undefined;
|
|
335
|
+
const codeMatches = marker.marker.code ? FilterOptions._filter(this.filterOptions.textFilter.text, typeof marker.marker.code === 'string' ? marker.marker.code : marker.marker.code.value) ?? undefined : undefined;
|
|
336
|
+
const messageMatches = FilterOptions._messageFilter(this.filterOptions.textFilter.text, marker.marker.message) ?? undefined;
|
|
337
|
+
const fileMatches = FilterOptions._messageFilter(this.filterOptions.textFilter.text, this.labelService.getUriLabel(marker.resource, { relative: true })) ?? undefined;
|
|
338
|
+
const ownerMatches = FilterOptions._messageFilter(this.filterOptions.textFilter.text, marker.marker.owner) ?? undefined;
|
|
339
|
+
const matched = sourceMatches || codeMatches || messageMatches || fileMatches || ownerMatches;
|
|
340
|
+
if ((matched && !this.filterOptions.textFilter.negate) || (!matched && this.filterOptions.textFilter.negate)) {
|
|
341
|
+
items.push(( (new MarkerTableItem(
|
|
342
|
+
marker,
|
|
343
|
+
sourceMatches,
|
|
344
|
+
codeMatches,
|
|
345
|
+
messageMatches,
|
|
346
|
+
fileMatches,
|
|
347
|
+
ownerMatches
|
|
348
|
+
))));
|
|
349
|
+
}
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
items.push(( (new MarkerTableItem(marker))));
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
this._itemCount = items.length;
|
|
356
|
+
this.table.splice(0, Number.POSITIVE_INFINITY, items.sort((a, b) => {
|
|
357
|
+
let result = MarkerSeverity.compare(a.marker.severity, b.marker.severity);
|
|
358
|
+
if (result === 0) {
|
|
359
|
+
result = compareMarkersByUri(a.marker, b.marker);
|
|
360
|
+
}
|
|
361
|
+
if (result === 0) {
|
|
362
|
+
result = Range.compareRangesUsingStarts(a.marker, b.marker);
|
|
363
|
+
}
|
|
364
|
+
return result;
|
|
365
|
+
}));
|
|
366
|
+
}
|
|
367
|
+
revealMarkers(activeResource, focus, lastSelectedRelativeTop) {
|
|
368
|
+
if (activeResource) {
|
|
369
|
+
const activeResourceIndex = this.resourceMarkers.indexOf(activeResource);
|
|
370
|
+
if (activeResourceIndex !== -1) {
|
|
371
|
+
if (this.hasSelectedMarkerFor(activeResource)) {
|
|
372
|
+
const tableSelection = this.table.getSelection();
|
|
373
|
+
this.table.reveal(tableSelection[0], lastSelectedRelativeTop);
|
|
374
|
+
if (focus) {
|
|
375
|
+
this.table.setFocus(tableSelection);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
this.table.reveal(activeResourceIndex, 0);
|
|
380
|
+
if (focus) {
|
|
381
|
+
this.table.setFocus([activeResourceIndex]);
|
|
382
|
+
this.table.setSelection([activeResourceIndex]);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
else if (focus) {
|
|
388
|
+
this.table.setSelection([]);
|
|
389
|
+
this.table.focusFirst();
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
setAriaLabel(label) {
|
|
393
|
+
this.table.domNode.ariaLabel = label;
|
|
394
|
+
}
|
|
395
|
+
setMarkerSelection(selection, focus) {
|
|
396
|
+
if (this.isVisible()) {
|
|
397
|
+
if (selection && selection.length > 0) {
|
|
398
|
+
this.table.setSelection(( (selection.map(m => this.findMarkerIndex(m)))));
|
|
399
|
+
if (focus && focus.length > 0) {
|
|
400
|
+
this.table.setFocus(( (focus.map(f => this.findMarkerIndex(f)))));
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
this.table.setFocus([this.findMarkerIndex(selection[0])]);
|
|
404
|
+
}
|
|
405
|
+
this.table.reveal(this.findMarkerIndex(selection[0]));
|
|
406
|
+
}
|
|
407
|
+
else if (this.getSelection().length === 0 && this.getVisibleItemCount() > 0) {
|
|
408
|
+
this.table.setSelection([0]);
|
|
409
|
+
this.table.setFocus([0]);
|
|
410
|
+
this.table.reveal(0);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
toggleVisibility(hide) {
|
|
415
|
+
this.container.classList.toggle('hidden', hide);
|
|
416
|
+
}
|
|
417
|
+
update(resourceMarkers) {
|
|
418
|
+
for (const resourceMarker of resourceMarkers) {
|
|
419
|
+
const index = this.resourceMarkers.indexOf(resourceMarker);
|
|
420
|
+
this.resourceMarkers.splice(index, 1, resourceMarker);
|
|
421
|
+
}
|
|
422
|
+
this.reset(this.resourceMarkers);
|
|
423
|
+
}
|
|
424
|
+
updateMarker(marker) {
|
|
425
|
+
this.table.rerender();
|
|
426
|
+
}
|
|
427
|
+
findMarkerIndex(marker) {
|
|
428
|
+
for (let index = 0; index < this.table.length; index++) {
|
|
429
|
+
if (this.table.row(index).marker === marker.marker) {
|
|
430
|
+
return index;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return -1;
|
|
434
|
+
}
|
|
435
|
+
hasSelectedMarkerFor(resource) {
|
|
436
|
+
const selectedElement = this.getSelection();
|
|
437
|
+
if (selectedElement && selectedElement.length > 0) {
|
|
438
|
+
if (selectedElement[0] instanceof Marker) {
|
|
439
|
+
if (( (resource.has(selectedElement[0].marker.resource)))) {
|
|
440
|
+
return true;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
return false;
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
MarkersTable = ( (__decorate([
|
|
448
|
+
( (__param(5, IInstantiationService))),
|
|
449
|
+
( (__param(6, ILabelService)))
|
|
450
|
+
], MarkersTable)));
|
|
451
|
+
export { MarkersTable };
|