@codingame/monaco-vscode-api 1.79.0 → 1.79.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 +7 -5
- package/dist/activity.d.ts +8 -108
- package/dist/api.js +3 -3
- package/dist/colorRegistry.d.ts +2 -2
- package/dist/contextkey.d.ts +2 -2
- package/dist/default-extension.js +23 -0
- package/dist/editor.d.ts +4 -320
- package/dist/editorBrowser.d.ts +327 -10
- package/dist/event.d.ts +1 -1
- package/dist/{extension-tools-d0cfdea1.js → extension-tools-0c4c1ad7.js} +345 -210
- package/dist/extensions.d.ts +3 -4
- package/dist/extensions.d2.ts +1 -1
- package/dist/extensions.js +4 -37
- package/dist/extensionsRegistry.d.ts +1 -1
- package/dist/files.d.ts +2 -2
- package/dist/keybinding.d.ts +1 -1
- package/dist/languageFeatures.d.ts +6 -7
- package/dist/log.d.ts +1 -1
- package/dist/monaco.d.ts +31 -32
- 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/common/notebookEditorInput.js +4 -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 +2 -2
- 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 +5 -5
- 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/model.d.ts +7 -0
- package/dist/service-override/model.js +10 -0
- package/dist/service-override/quickaccess.d.ts +7 -0
- package/dist/service-override/quickaccess.js +80 -0
- package/dist/service-override/snippets.js +5 -1
- 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 +63 -201
- package/dist/service-override/views.js +102 -8
- package/dist/services.d.ts +116 -19
- 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/platform/extensionManagement/common/extensionManagement.js +2 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionStorage.js +1 -1
- package/dist/vscode/vs/platform/product/common/product.js +48 -0
- package/dist/vscode/vs/platform/quickinput/browser/quickPickPin.js +94 -0
- package/dist/vscode/vs/platform/terminal/common/terminal.js +3 -0
- package/dist/vscode/vs/platform/update/common/update.js +11 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadStatusBar.js +68 -0
- package/dist/vscode/vs/workbench/api/common/extHostStatusBar.js +234 -0
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +6 -1
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +20 -17
- package/dist/vscode/vs/workbench/browser/actions/quickAccessActions.js +204 -0
- package/dist/vscode/vs/workbench/browser/dnd.js +27 -2
- 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 +1 -1
- 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 +800 -6
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +56 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +1484 -107
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +1121 -4
- package/dist/vscode/vs/workbench/browser/parts/editor/editorDropTarget.js +499 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupView.js +1219 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorGroupWatermark.js +137 -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 +243 -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 +1504 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/textCodeEditor.js +79 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +304 -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/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 +1 -1
- package/dist/vscode/vs/workbench/browser/parts/views/viewPane.js +5 -5
- package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1 -1
- 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 +1108 -0
- package/dist/vscode/vs/workbench/common/contextkeys.js +34 -1
- package/dist/vscode/vs/workbench/common/editor/editorGroupModel.js +674 -0
- package/dist/vscode/vs/workbench/common/editor.js +57 -1
- 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/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/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/workbenchReferenceSearch.js +24 -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/debugCommands.js +13 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugIcons.js +77 -127
- 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 +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/debug.js +2 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +71 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/textFileEditor.js +225 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +5 -4
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +270 -4
- package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +4 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +24 -6
- package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +8 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +10 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/media/explorerviewlet.css.js +4 -0
- 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/files.js +2 -1
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart.js +1 -1
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget.js +1 -1
- package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/media/interactiveSession.css.js +4 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys.js +9 -1
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionModel.js +305 -0
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +6 -1
- package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionServiceImpl.js +379 -0
- package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +2 -2
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +33 -1
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +130 -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/remoteIcons.js +21 -17
- package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +1 -1
- 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/search.contribution.js +428 -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 +2 -0
- package/dist/vscode/vs/workbench/contrib/search/common/search.js +119 -1
- 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/tasks.js +351 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminal.js +4 -0
- package/dist/vscode/vs/workbench/contrib/terminal/browser/terminalIcon.js +44 -0
- package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +147 -1
- 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/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/history/browser/historyService.js +1451 -0
- package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +1 -1
- package/dist/vscode/vs/workbench/services/hover/browser/media/hover.css.js +4 -0
- package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +2 -1
- package/dist/vscode/vs/workbench/services/outline/browser/outline.js +3 -0
- 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/search/common/search.js +2 -112
- 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/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/untitled/common/untitledTextEditorService.js +110 -3
- package/dist/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.js +1 -1
- package/dist/vscode-services/extHost.js +12 -5
- package/dist/vscode-services/missing-services.js +117 -3
- package/dist/vscode-services/window.js +21 -2
- package/dist/vscode-services/workspace.js +2 -1
- package/dist/workbenchThemeService.d.ts +1 -1
- 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 +535 -535
- package/package.json +42 -22
- 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/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/notebook/common/notebookEditorInput.js +0 -249
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +0 -10
- package/dist/vscode/vs/workbench/services/search/common/searchHelpers.js +0 -72
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +0 -355
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
3
|
+
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
4
|
+
import { PickerQuickAccessProvider, TriggerAction } from 'monaco-editor/esm/vs/platform/quickinput/browser/pickerQuickAccess.js';
|
|
5
|
+
import { matchesFuzzy } from 'monaco-editor/esm/vs/base/common/filters.js';
|
|
6
|
+
import { IExtensionService } from '../../../services/extensions/common/extensions.js';
|
|
7
|
+
import { ITaskService } from '../common/taskService.js';
|
|
8
|
+
import { ContributedTask, CustomTask, ConfiguringTask } from '../common/tasks.js';
|
|
9
|
+
import { TaskQuickPick } from './taskQuickPick.js';
|
|
10
|
+
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
11
|
+
import { isString } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
12
|
+
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
13
|
+
import { IDialogService } from 'monaco-editor/esm/vs/platform/dialogs/common/dialogs.js';
|
|
14
|
+
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
15
|
+
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
16
|
+
let TasksQuickAccessProvider = class TasksQuickAccessProvider extends PickerQuickAccessProvider {
|
|
17
|
+
constructor(extensionService, _taskService, _configurationService, _quickInputService, _notificationService, _dialogService, _themeService, _storageService) {
|
|
18
|
+
super(TasksQuickAccessProvider.PREFIX, {
|
|
19
|
+
noResultsPick: {
|
|
20
|
+
label: ( localize('noTaskResults', "No matching tasks"))
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
this._taskService = _taskService;
|
|
24
|
+
this._configurationService = _configurationService;
|
|
25
|
+
this._quickInputService = _quickInputService;
|
|
26
|
+
this._notificationService = _notificationService;
|
|
27
|
+
this._dialogService = _dialogService;
|
|
28
|
+
this._themeService = _themeService;
|
|
29
|
+
this._storageService = _storageService;
|
|
30
|
+
}
|
|
31
|
+
async _getPicks(filter, disposables, token) {
|
|
32
|
+
if (token.isCancellationRequested) {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
const taskQuickPick = ( new TaskQuickPick(
|
|
36
|
+
this._taskService,
|
|
37
|
+
this._configurationService,
|
|
38
|
+
this._quickInputService,
|
|
39
|
+
this._notificationService,
|
|
40
|
+
this._themeService,
|
|
41
|
+
this._dialogService,
|
|
42
|
+
this._storageService
|
|
43
|
+
));
|
|
44
|
+
const topLevelPicks = await taskQuickPick.getTopLevelEntries();
|
|
45
|
+
const taskPicks = [];
|
|
46
|
+
for (const entry of topLevelPicks.entries) {
|
|
47
|
+
const highlights = matchesFuzzy(filter, entry.label);
|
|
48
|
+
if (!highlights) {
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (entry.type === 'separator') {
|
|
52
|
+
taskPicks.push(entry);
|
|
53
|
+
}
|
|
54
|
+
const task = entry.task;
|
|
55
|
+
const quickAccessEntry = entry;
|
|
56
|
+
quickAccessEntry.highlights = { label: highlights };
|
|
57
|
+
quickAccessEntry.trigger = (index) => {
|
|
58
|
+
if ((index === 1) && (quickAccessEntry.buttons?.length === 2)) {
|
|
59
|
+
const key = (task && !isString(task)) ? task.getRecentlyUsedKey() : undefined;
|
|
60
|
+
if (key) {
|
|
61
|
+
this._taskService.removeRecentlyUsedTask(key);
|
|
62
|
+
}
|
|
63
|
+
return TriggerAction.REFRESH_PICKER;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
if (ContributedTask.is(task)) {
|
|
67
|
+
this._taskService.customize(task, undefined, true);
|
|
68
|
+
}
|
|
69
|
+
else if (CustomTask.is(task)) {
|
|
70
|
+
this._taskService.openConfig(task);
|
|
71
|
+
}
|
|
72
|
+
return TriggerAction.CLOSE_PICKER;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
quickAccessEntry.accept = async () => {
|
|
76
|
+
if (isString(task)) {
|
|
77
|
+
const showResult = await taskQuickPick.show(( localize('TaskService.pickRunTask', 'Select the task to run')), undefined, task);
|
|
78
|
+
if (showResult) {
|
|
79
|
+
this._taskService.run(showResult, { attachProblemMatcher: true });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
this._taskService.run(await this._toTask(task), { attachProblemMatcher: true });
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
taskPicks.push(quickAccessEntry);
|
|
87
|
+
}
|
|
88
|
+
return taskPicks;
|
|
89
|
+
}
|
|
90
|
+
async _toTask(task) {
|
|
91
|
+
if (!ConfiguringTask.is(task)) {
|
|
92
|
+
return task;
|
|
93
|
+
}
|
|
94
|
+
return this._taskService.tryResolveTask(task);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
TasksQuickAccessProvider.PREFIX = 'task ';
|
|
98
|
+
TasksQuickAccessProvider = ( __decorate([
|
|
99
|
+
( __param(0, IExtensionService)),
|
|
100
|
+
( __param(1, ITaskService)),
|
|
101
|
+
( __param(2, IConfigurationService)),
|
|
102
|
+
( __param(3, IQuickInputService)),
|
|
103
|
+
( __param(4, INotificationService)),
|
|
104
|
+
( __param(5, IDialogService)),
|
|
105
|
+
( __param(6, IThemeService)),
|
|
106
|
+
( __param(7, IStorageService))
|
|
107
|
+
], TasksQuickAccessProvider));
|
|
108
|
+
export { TasksQuickAccessProvider };
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import * as types from 'monaco-editor/esm/vs/base/common/types.js';
|
|
2
|
+
import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
3
|
+
const USER_TASKS_GROUP_KEY = 'settings';
|
|
4
|
+
const CUSTOMIZED_TASK_TYPE = '$customized';
|
|
5
|
+
var RuntimeType;
|
|
6
|
+
( ((function(RuntimeType) {
|
|
7
|
+
RuntimeType[RuntimeType["Shell"] = 1] = "Shell";
|
|
8
|
+
RuntimeType[RuntimeType["Process"] = 2] = "Process";
|
|
9
|
+
RuntimeType[RuntimeType["CustomExecution"] = 3] = "CustomExecution";
|
|
10
|
+
})(RuntimeType || (RuntimeType = {}))));
|
|
11
|
+
( ((function(RuntimeType) {
|
|
12
|
+
function fromString(value) {
|
|
13
|
+
switch (value.toLowerCase()) {
|
|
14
|
+
case 'shell':
|
|
15
|
+
return RuntimeType.Shell;
|
|
16
|
+
case 'process':
|
|
17
|
+
return RuntimeType.Process;
|
|
18
|
+
case 'customExecution':
|
|
19
|
+
return RuntimeType.CustomExecution;
|
|
20
|
+
default:
|
|
21
|
+
return RuntimeType.Process;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
RuntimeType.fromString = fromString;
|
|
25
|
+
function toString(value) {
|
|
26
|
+
switch (value) {
|
|
27
|
+
case RuntimeType.Shell: return 'shell';
|
|
28
|
+
case RuntimeType.Process: return 'process';
|
|
29
|
+
case RuntimeType.CustomExecution: return 'customExecution';
|
|
30
|
+
default: return 'process';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
RuntimeType.toString = toString;
|
|
34
|
+
})(RuntimeType || (RuntimeType = {}))));
|
|
35
|
+
var TaskSourceKind;
|
|
36
|
+
( ((function(TaskSourceKind) {
|
|
37
|
+
TaskSourceKind.Workspace = 'workspace';
|
|
38
|
+
TaskSourceKind.Extension = 'extension';
|
|
39
|
+
TaskSourceKind.InMemory = 'inMemory';
|
|
40
|
+
TaskSourceKind.WorkspaceFile = 'workspaceFile';
|
|
41
|
+
TaskSourceKind.User = 'user';
|
|
42
|
+
function toConfigurationTarget(kind) {
|
|
43
|
+
switch (kind) {
|
|
44
|
+
case TaskSourceKind.User: return 2 ;
|
|
45
|
+
case TaskSourceKind.WorkspaceFile: return 5 ;
|
|
46
|
+
default: return 6 ;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
TaskSourceKind.toConfigurationTarget = toConfigurationTarget;
|
|
50
|
+
})(TaskSourceKind || (TaskSourceKind = {}))));
|
|
51
|
+
class CommonTask {
|
|
52
|
+
constructor(id, label, type, runOptions, configurationProperties, source) {
|
|
53
|
+
this._label = '';
|
|
54
|
+
this._id = id;
|
|
55
|
+
if (label) {
|
|
56
|
+
this._label = label;
|
|
57
|
+
}
|
|
58
|
+
if (type) {
|
|
59
|
+
this.type = type;
|
|
60
|
+
}
|
|
61
|
+
this.runOptions = runOptions;
|
|
62
|
+
this.configurationProperties = configurationProperties;
|
|
63
|
+
this._source = source;
|
|
64
|
+
}
|
|
65
|
+
getDefinition(useSource) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
getMapKey() {
|
|
69
|
+
return this._id;
|
|
70
|
+
}
|
|
71
|
+
getRecentlyUsedKey() {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
getCommonTaskId() {
|
|
75
|
+
const key = { folder: this.getFolderId(), id: this._id };
|
|
76
|
+
return JSON.stringify(key);
|
|
77
|
+
}
|
|
78
|
+
clone() {
|
|
79
|
+
return this.fromObject(Object.assign({}, this));
|
|
80
|
+
}
|
|
81
|
+
getWorkspaceFolder() {
|
|
82
|
+
return undefined;
|
|
83
|
+
}
|
|
84
|
+
getWorkspaceFileName() {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
getTelemetryKind() {
|
|
88
|
+
return 'unknown';
|
|
89
|
+
}
|
|
90
|
+
matches(key, compareId = false) {
|
|
91
|
+
if (key === undefined) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (types.isString(key)) {
|
|
95
|
+
return key === this._label || key === this.configurationProperties.identifier || (compareId && key === this._id);
|
|
96
|
+
}
|
|
97
|
+
const identifier = this.getDefinition(true);
|
|
98
|
+
return identifier !== undefined && identifier._key === key._key;
|
|
99
|
+
}
|
|
100
|
+
getQualifiedLabel() {
|
|
101
|
+
const workspaceFolder = this.getWorkspaceFolder();
|
|
102
|
+
if (workspaceFolder) {
|
|
103
|
+
return `${this._label} (${workspaceFolder.name})`;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
return this._label;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
getTaskExecution() {
|
|
110
|
+
const result = {
|
|
111
|
+
id: this._id,
|
|
112
|
+
task: this
|
|
113
|
+
};
|
|
114
|
+
return result;
|
|
115
|
+
}
|
|
116
|
+
addTaskLoadMessages(messages) {
|
|
117
|
+
if (this._taskLoadMessages === undefined) {
|
|
118
|
+
this._taskLoadMessages = [];
|
|
119
|
+
}
|
|
120
|
+
if (messages) {
|
|
121
|
+
this._taskLoadMessages = this._taskLoadMessages.concat(messages);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
get taskLoadMessages() {
|
|
125
|
+
return this._taskLoadMessages;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
class CustomTask extends CommonTask {
|
|
129
|
+
constructor(id, source, label, type, command, hasDefinedMatchers, runOptions, configurationProperties) {
|
|
130
|
+
super(id, label, undefined, runOptions, configurationProperties, source);
|
|
131
|
+
this.command = {};
|
|
132
|
+
this._source = source;
|
|
133
|
+
this.hasDefinedMatchers = hasDefinedMatchers;
|
|
134
|
+
if (command) {
|
|
135
|
+
this.command = command;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
clone() {
|
|
139
|
+
return (
|
|
140
|
+
(new CustomTask(
|
|
141
|
+
this._id,
|
|
142
|
+
this._source,
|
|
143
|
+
this._label,
|
|
144
|
+
this.type,
|
|
145
|
+
this.command,
|
|
146
|
+
this.hasDefinedMatchers,
|
|
147
|
+
this.runOptions,
|
|
148
|
+
this.configurationProperties
|
|
149
|
+
))
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
customizes() {
|
|
153
|
+
if (this._source && this._source.customizes) {
|
|
154
|
+
return this._source.customizes;
|
|
155
|
+
}
|
|
156
|
+
return undefined;
|
|
157
|
+
}
|
|
158
|
+
getDefinition(useSource = false) {
|
|
159
|
+
if (useSource && this._source.customizes !== undefined) {
|
|
160
|
+
return this._source.customizes;
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
let type;
|
|
164
|
+
const commandRuntime = this.command ? this.command.runtime : undefined;
|
|
165
|
+
switch (commandRuntime) {
|
|
166
|
+
case RuntimeType.Shell:
|
|
167
|
+
type = 'shell';
|
|
168
|
+
break;
|
|
169
|
+
case RuntimeType.Process:
|
|
170
|
+
type = 'process';
|
|
171
|
+
break;
|
|
172
|
+
case RuntimeType.CustomExecution:
|
|
173
|
+
type = 'customExecution';
|
|
174
|
+
break;
|
|
175
|
+
case undefined:
|
|
176
|
+
type = '$composite';
|
|
177
|
+
break;
|
|
178
|
+
default:
|
|
179
|
+
throw new Error('Unexpected task runtime');
|
|
180
|
+
}
|
|
181
|
+
const result = {
|
|
182
|
+
type,
|
|
183
|
+
_key: this._id,
|
|
184
|
+
id: this._id
|
|
185
|
+
};
|
|
186
|
+
return result;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
static is(value) {
|
|
190
|
+
return value instanceof CustomTask;
|
|
191
|
+
}
|
|
192
|
+
getMapKey() {
|
|
193
|
+
const workspaceFolder = this._source.config.workspaceFolder;
|
|
194
|
+
return workspaceFolder ? `${( ( workspaceFolder.uri.toString()))}|${this._id}|${this.instance}` : `${this._id}|${this.instance}`;
|
|
195
|
+
}
|
|
196
|
+
getFolderId() {
|
|
197
|
+
return this._source.kind === TaskSourceKind.User ? USER_TASKS_GROUP_KEY : this._source.config.workspaceFolder?.uri.toString();
|
|
198
|
+
}
|
|
199
|
+
getCommonTaskId() {
|
|
200
|
+
return this._source.customizes ? super.getCommonTaskId() : (this.getRecentlyUsedKey() ?? super.getCommonTaskId());
|
|
201
|
+
}
|
|
202
|
+
getRecentlyUsedKey() {
|
|
203
|
+
const workspaceFolder = this.getFolderId();
|
|
204
|
+
if (!workspaceFolder) {
|
|
205
|
+
return undefined;
|
|
206
|
+
}
|
|
207
|
+
let id = this.configurationProperties.identifier;
|
|
208
|
+
if (this._source.kind !== TaskSourceKind.Workspace) {
|
|
209
|
+
id += this._source.kind;
|
|
210
|
+
}
|
|
211
|
+
const key = { type: CUSTOMIZED_TASK_TYPE, folder: workspaceFolder, id };
|
|
212
|
+
return JSON.stringify(key);
|
|
213
|
+
}
|
|
214
|
+
getWorkspaceFolder() {
|
|
215
|
+
return this._source.config.workspaceFolder;
|
|
216
|
+
}
|
|
217
|
+
getWorkspaceFileName() {
|
|
218
|
+
return (this._source.config.workspace && this._source.config.workspace.configuration) ? resources.basename(this._source.config.workspace.configuration) : undefined;
|
|
219
|
+
}
|
|
220
|
+
getTelemetryKind() {
|
|
221
|
+
if (this._source.customizes) {
|
|
222
|
+
return 'workspace>extension';
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
return 'workspace';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
fromObject(object) {
|
|
229
|
+
return (
|
|
230
|
+
(new CustomTask(
|
|
231
|
+
object._id,
|
|
232
|
+
object._source,
|
|
233
|
+
object._label,
|
|
234
|
+
object.type,
|
|
235
|
+
object.command,
|
|
236
|
+
object.hasDefinedMatchers,
|
|
237
|
+
object.runOptions,
|
|
238
|
+
object.configurationProperties
|
|
239
|
+
))
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
class ConfiguringTask extends CommonTask {
|
|
244
|
+
constructor(id, source, label, type, configures, runOptions, configurationProperties) {
|
|
245
|
+
super(id, label, type, runOptions, configurationProperties, source);
|
|
246
|
+
this._source = source;
|
|
247
|
+
this.configures = configures;
|
|
248
|
+
}
|
|
249
|
+
static is(value) {
|
|
250
|
+
return value instanceof ConfiguringTask;
|
|
251
|
+
}
|
|
252
|
+
fromObject(object) {
|
|
253
|
+
return object;
|
|
254
|
+
}
|
|
255
|
+
getDefinition() {
|
|
256
|
+
return this.configures;
|
|
257
|
+
}
|
|
258
|
+
getWorkspaceFileName() {
|
|
259
|
+
return (this._source.config.workspace && this._source.config.workspace.configuration) ? resources.basename(this._source.config.workspace.configuration) : undefined;
|
|
260
|
+
}
|
|
261
|
+
getWorkspaceFolder() {
|
|
262
|
+
return this._source.config.workspaceFolder;
|
|
263
|
+
}
|
|
264
|
+
getFolderId() {
|
|
265
|
+
return this._source.kind === TaskSourceKind.User ? USER_TASKS_GROUP_KEY : this._source.config.workspaceFolder?.uri.toString();
|
|
266
|
+
}
|
|
267
|
+
getRecentlyUsedKey() {
|
|
268
|
+
const workspaceFolder = this.getFolderId();
|
|
269
|
+
if (!workspaceFolder) {
|
|
270
|
+
return undefined;
|
|
271
|
+
}
|
|
272
|
+
let id = this.configurationProperties.identifier;
|
|
273
|
+
if (this._source.kind !== TaskSourceKind.Workspace) {
|
|
274
|
+
id += this._source.kind;
|
|
275
|
+
}
|
|
276
|
+
const key = { type: CUSTOMIZED_TASK_TYPE, folder: workspaceFolder, id };
|
|
277
|
+
return JSON.stringify(key);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
class ContributedTask extends CommonTask {
|
|
281
|
+
constructor(id, source, label, type, defines, command, hasDefinedMatchers, runOptions, configurationProperties) {
|
|
282
|
+
super(id, label, type, runOptions, configurationProperties, source);
|
|
283
|
+
this.defines = defines;
|
|
284
|
+
this.hasDefinedMatchers = hasDefinedMatchers;
|
|
285
|
+
this.command = command;
|
|
286
|
+
this.icon = configurationProperties.icon;
|
|
287
|
+
this.hide = configurationProperties.hide;
|
|
288
|
+
}
|
|
289
|
+
clone() {
|
|
290
|
+
return (
|
|
291
|
+
(new ContributedTask(
|
|
292
|
+
this._id,
|
|
293
|
+
this._source,
|
|
294
|
+
this._label,
|
|
295
|
+
this.type,
|
|
296
|
+
this.defines,
|
|
297
|
+
this.command,
|
|
298
|
+
this.hasDefinedMatchers,
|
|
299
|
+
this.runOptions,
|
|
300
|
+
this.configurationProperties
|
|
301
|
+
))
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
getDefinition() {
|
|
305
|
+
return this.defines;
|
|
306
|
+
}
|
|
307
|
+
static is(value) {
|
|
308
|
+
return value instanceof ContributedTask;
|
|
309
|
+
}
|
|
310
|
+
getMapKey() {
|
|
311
|
+
const workspaceFolder = this._source.workspaceFolder;
|
|
312
|
+
return workspaceFolder
|
|
313
|
+
? `${( ( this._source.scope.toString()))}|${( ( workspaceFolder.uri.toString()))}|${this._id}|${this.instance}`
|
|
314
|
+
: `${( ( this._source.scope.toString()))}|${this._id}|${this.instance}`;
|
|
315
|
+
}
|
|
316
|
+
getFolderId() {
|
|
317
|
+
if (this._source.scope === 3 && this._source.workspaceFolder) {
|
|
318
|
+
return (
|
|
319
|
+
(this._source.workspaceFolder.uri.toString())
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
return undefined;
|
|
323
|
+
}
|
|
324
|
+
getRecentlyUsedKey() {
|
|
325
|
+
const key = { type: 'contributed', scope: this._source.scope, id: this._id };
|
|
326
|
+
key.folder = this.getFolderId();
|
|
327
|
+
return JSON.stringify(key);
|
|
328
|
+
}
|
|
329
|
+
getWorkspaceFolder() {
|
|
330
|
+
return this._source.workspaceFolder;
|
|
331
|
+
}
|
|
332
|
+
getTelemetryKind() {
|
|
333
|
+
return 'extension';
|
|
334
|
+
}
|
|
335
|
+
fromObject(object) {
|
|
336
|
+
return (
|
|
337
|
+
(new ContributedTask(
|
|
338
|
+
object._id,
|
|
339
|
+
object._source,
|
|
340
|
+
object._label,
|
|
341
|
+
object.type,
|
|
342
|
+
object.defines,
|
|
343
|
+
object.command,
|
|
344
|
+
object.hasDefinedMatchers,
|
|
345
|
+
object.runOptions,
|
|
346
|
+
object.configurationProperties
|
|
347
|
+
))
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
export { CUSTOMIZED_TASK_TYPE, CommonTask, ConfiguringTask, ContributedTask, CustomTask, RuntimeType, TaskSourceKind, USER_TASKS_GROUP_KEY };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
2
|
+
const ITerminalService = ( createDecorator('terminalService'));
|
|
3
|
+
const ITerminalGroupService = ( createDecorator('terminalGroupService'));
|
|
4
|
+
export { ITerminalGroupService, ITerminalService };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
2
|
+
import { ansiColorMap } from '../common/terminalColorRegistry.js';
|
|
3
|
+
function getColorClass(terminalOrColorKey) {
|
|
4
|
+
let color = undefined;
|
|
5
|
+
if (typeof terminalOrColorKey === 'string') {
|
|
6
|
+
color = terminalOrColorKey;
|
|
7
|
+
}
|
|
8
|
+
else if (terminalOrColorKey.color) {
|
|
9
|
+
color = terminalOrColorKey.color.replace(/\./g, '_');
|
|
10
|
+
}
|
|
11
|
+
else if (ThemeIcon.isThemeIcon(terminalOrColorKey.icon) && terminalOrColorKey.icon.color) {
|
|
12
|
+
color = terminalOrColorKey.icon.color.id.replace(/\./g, '_');
|
|
13
|
+
}
|
|
14
|
+
if (color) {
|
|
15
|
+
return `terminal-icon-${color.replace(/\./g, '_')}`;
|
|
16
|
+
}
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
function getStandardColors(colorTheme) {
|
|
20
|
+
const standardColors = [];
|
|
21
|
+
for (const colorKey in ansiColorMap) {
|
|
22
|
+
const color = colorTheme.getColor(colorKey);
|
|
23
|
+
if (color && !colorKey.toLowerCase().includes('bright')) {
|
|
24
|
+
standardColors.push(colorKey);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return standardColors;
|
|
28
|
+
}
|
|
29
|
+
function getColorStyleElement(colorTheme) {
|
|
30
|
+
const standardColors = getStandardColors(colorTheme);
|
|
31
|
+
const styleElement = document.createElement('style');
|
|
32
|
+
let css = '';
|
|
33
|
+
for (const colorKey of standardColors) {
|
|
34
|
+
const colorClass = getColorClass(colorKey);
|
|
35
|
+
const color = colorTheme.getColor(colorKey);
|
|
36
|
+
if (color) {
|
|
37
|
+
css += (`.monaco-workbench .${colorClass} .codicon:first-child:not(.codicon-split-horizontal):not(.codicon-trashcan):not(.file-icon)` +
|
|
38
|
+
`{ color: ${color} !important; }`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
styleElement.textContent = css;
|
|
42
|
+
return styleElement;
|
|
43
|
+
}
|
|
44
|
+
export { getColorClass, getColorStyleElement, getStandardColors };
|
|
@@ -164,4 +164,150 @@ registerColor('terminal.tab.activeBorder', {
|
|
|
164
164
|
'terminal.tab.activeBorder',
|
|
165
165
|
'Border on the side of the terminal tab in the panel. This defaults to tab.activeBorder.'
|
|
166
166
|
)));
|
|
167
|
-
|
|
167
|
+
const ansiColorMap = {
|
|
168
|
+
'terminal.ansiBlack': {
|
|
169
|
+
index: 0,
|
|
170
|
+
defaults: {
|
|
171
|
+
light: '#000000',
|
|
172
|
+
dark: '#000000',
|
|
173
|
+
hcDark: '#000000',
|
|
174
|
+
hcLight: '#292929'
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
'terminal.ansiRed': {
|
|
178
|
+
index: 1,
|
|
179
|
+
defaults: {
|
|
180
|
+
light: '#cd3131',
|
|
181
|
+
dark: '#cd3131',
|
|
182
|
+
hcDark: '#cd0000',
|
|
183
|
+
hcLight: '#cd3131'
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
'terminal.ansiGreen': {
|
|
187
|
+
index: 2,
|
|
188
|
+
defaults: {
|
|
189
|
+
light: '#00BC00',
|
|
190
|
+
dark: '#0DBC79',
|
|
191
|
+
hcDark: '#00cd00',
|
|
192
|
+
hcLight: '#00bc00'
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
'terminal.ansiYellow': {
|
|
196
|
+
index: 3,
|
|
197
|
+
defaults: {
|
|
198
|
+
light: '#949800',
|
|
199
|
+
dark: '#e5e510',
|
|
200
|
+
hcDark: '#cdcd00',
|
|
201
|
+
hcLight: '#949800'
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
'terminal.ansiBlue': {
|
|
205
|
+
index: 4,
|
|
206
|
+
defaults: {
|
|
207
|
+
light: '#0451a5',
|
|
208
|
+
dark: '#2472c8',
|
|
209
|
+
hcDark: '#0000ee',
|
|
210
|
+
hcLight: '#0451a5'
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
'terminal.ansiMagenta': {
|
|
214
|
+
index: 5,
|
|
215
|
+
defaults: {
|
|
216
|
+
light: '#bc05bc',
|
|
217
|
+
dark: '#bc3fbc',
|
|
218
|
+
hcDark: '#cd00cd',
|
|
219
|
+
hcLight: '#bc05bc'
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
'terminal.ansiCyan': {
|
|
223
|
+
index: 6,
|
|
224
|
+
defaults: {
|
|
225
|
+
light: '#0598bc',
|
|
226
|
+
dark: '#11a8cd',
|
|
227
|
+
hcDark: '#00cdcd',
|
|
228
|
+
hcLight: '#0598bc'
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
'terminal.ansiWhite': {
|
|
232
|
+
index: 7,
|
|
233
|
+
defaults: {
|
|
234
|
+
light: '#555555',
|
|
235
|
+
dark: '#e5e5e5',
|
|
236
|
+
hcDark: '#e5e5e5',
|
|
237
|
+
hcLight: '#555555'
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
'terminal.ansiBrightBlack': {
|
|
241
|
+
index: 8,
|
|
242
|
+
defaults: {
|
|
243
|
+
light: '#666666',
|
|
244
|
+
dark: '#666666',
|
|
245
|
+
hcDark: '#7f7f7f',
|
|
246
|
+
hcLight: '#666666'
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
'terminal.ansiBrightRed': {
|
|
250
|
+
index: 9,
|
|
251
|
+
defaults: {
|
|
252
|
+
light: '#cd3131',
|
|
253
|
+
dark: '#f14c4c',
|
|
254
|
+
hcDark: '#ff0000',
|
|
255
|
+
hcLight: '#cd3131'
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
'terminal.ansiBrightGreen': {
|
|
259
|
+
index: 10,
|
|
260
|
+
defaults: {
|
|
261
|
+
light: '#14CE14',
|
|
262
|
+
dark: '#23d18b',
|
|
263
|
+
hcDark: '#00ff00',
|
|
264
|
+
hcLight: '#00bc00'
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
'terminal.ansiBrightYellow': {
|
|
268
|
+
index: 11,
|
|
269
|
+
defaults: {
|
|
270
|
+
light: '#b5ba00',
|
|
271
|
+
dark: '#f5f543',
|
|
272
|
+
hcDark: '#ffff00',
|
|
273
|
+
hcLight: '#b5ba00'
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
'terminal.ansiBrightBlue': {
|
|
277
|
+
index: 12,
|
|
278
|
+
defaults: {
|
|
279
|
+
light: '#0451a5',
|
|
280
|
+
dark: '#3b8eea',
|
|
281
|
+
hcDark: '#5c5cff',
|
|
282
|
+
hcLight: '#0451a5'
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
'terminal.ansiBrightMagenta': {
|
|
286
|
+
index: 13,
|
|
287
|
+
defaults: {
|
|
288
|
+
light: '#bc05bc',
|
|
289
|
+
dark: '#d670d6',
|
|
290
|
+
hcDark: '#ff00ff',
|
|
291
|
+
hcLight: '#bc05bc'
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
'terminal.ansiBrightCyan': {
|
|
295
|
+
index: 14,
|
|
296
|
+
defaults: {
|
|
297
|
+
light: '#0598bc',
|
|
298
|
+
dark: '#29b8db',
|
|
299
|
+
hcDark: '#00ffff',
|
|
300
|
+
hcLight: '#0598bc'
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
'terminal.ansiBrightWhite': {
|
|
304
|
+
index: 15,
|
|
305
|
+
defaults: {
|
|
306
|
+
light: '#a5a5a5',
|
|
307
|
+
dark: '#e5e5e5',
|
|
308
|
+
hcDark: '#ffffff',
|
|
309
|
+
hcLight: '#a5a5a5'
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
export { TERMINAL_SELECTION_BACKGROUND_COLOR, ansiColorIdentifiers, ansiColorMap };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import n from '../../../../../../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
+
var css = ".monaco-workbench .type-hierarchy .message,.monaco-workbench .type-hierarchy .results{display:none}.monaco-workbench .type-hierarchy[data-state=data] .results{display:inherit;height:100%}.monaco-workbench .type-hierarchy[data-state=message] .message{align-items:center;display:flex;height:100%;justify-content:center}.monaco-workbench .type-hierarchy .editor,.monaco-workbench .type-hierarchy .tree{height:100%}.monaco-editor .type-hierarchy .tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .type-hierarchy .tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-workbench .type-hierarchy .tree .typehierarchy-element{align-items:center;display:flex;flex:1;flex-flow:row nowrap}.monaco-workbench .type-hierarchy .tree .typehierarchy-element .monaco-icon-label{padding-left:4px}.monaco-editor .type-hierarchy .type-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .type-hierarchy .editor .monaco-editor .inputarea.ime-input,.monaco-editor .type-hierarchy .editor .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .type-hierarchy .editor .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}";
|
|
3
|
+
n(css,{});
|
|
4
|
+
export { css, css as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
2
|
+
import './media/typeHierarchy.css.js';
|
|
3
3
|
import { Dimension } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
4
4
|
import { SplitView, Sizing } from 'monaco-editor/esm/vs/base/browser/ui/splitview/splitview.js';
|
|
5
5
|
import { TreeMouseEventTarget } from 'monaco-editor/esm/vs/base/browser/ui/tree/tree.js';
|