@codingame/monaco-vscode-api 1.79.0-next.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-treemending.js +15 -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 +784 -784
- 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
package/dist/extensions.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vscode from 'vscode';
|
|
|
2
2
|
import { I as IExtensionDescription, a as IExtensionManifest } from './extensions.d2.ts';
|
|
3
3
|
export { b as IExtensionContributions } from './extensions.d2.ts';
|
|
4
4
|
import { I as IMessage } from './extensionsRegistry.js';
|
|
5
|
-
import {
|
|
5
|
+
import { a as IDisposable } from './event.js';
|
|
6
6
|
import './uri.js';
|
|
7
7
|
import './contextkey.js';
|
|
8
8
|
import './instantiation.js';
|
|
@@ -21,7 +21,7 @@ interface IExtensionModule {
|
|
|
21
21
|
interface IExtensionAPI {
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
declare
|
|
24
|
+
declare function onExtHostInitialized(fct: () => void): void;
|
|
25
25
|
|
|
26
26
|
interface ITranslations {
|
|
27
27
|
[key: string]: string | {
|
|
@@ -31,7 +31,6 @@ interface ITranslations {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
declare function consoleExtensionMessageHandler(msg: IMessage): void;
|
|
34
|
-
declare function getDefaultExtension(): IExtensionDescription;
|
|
35
34
|
declare function initialize(extension?: IExtensionDescription): Promise<void>;
|
|
36
35
|
declare function createApi(extension: IExtensionDescription): typeof vscode;
|
|
37
36
|
interface RegisterExtensionResult extends IDisposable {
|
|
@@ -44,4 +43,4 @@ interface RegisterExtensionResult extends IDisposable {
|
|
|
44
43
|
declare function runExtensionCode(api: typeof vscode, code: string): IExtensionModule;
|
|
45
44
|
declare function registerExtension(manifest: IExtensionManifest, defaultNLS?: ITranslations): RegisterExtensionResult;
|
|
46
45
|
|
|
47
|
-
export { IExtensionManifest, ITranslations, consoleExtensionMessageHandler, createApi,
|
|
46
|
+
export { IExtensionManifest, ITranslations, consoleExtensionMessageHandler, createApi, initialize, onExtHostInitialized, registerExtension, runExtensionCode };
|
package/dist/extensions.d2.ts
CHANGED
|
@@ -454,4 +454,4 @@ interface IRelaxedExtensionDescription extends IRelaxedExtensionManifest {
|
|
|
454
454
|
}
|
|
455
455
|
type IExtensionDescription = Readonly<IRelaxedExtensionDescription>;
|
|
456
456
|
|
|
457
|
-
export { ExtensionIdentifier as E, IExtensionDescription as I, Severity as S, IExtensionManifest as a, IExtensionContributions as b,
|
|
457
|
+
export { ExtensionIdentifier as E, IExtensionDescription as I, Severity as S, IExtensionManifest as a, IExtensionContributions as b, ExtensionKind as c, IEnvironmentService as d, ICommandAction as e, ICommandActionTitle as f, Icon as g, ILocalizedString as h };
|
package/dist/extensions.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ExtensionIdentifier } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
|
|
2
1
|
import { ExtensionsRegistry, ExtensionMessageCollector } from './vscode/vs/workbench/services/extensions/common/extensionsRegistry.js';
|
|
3
2
|
import { toExtensionDescription } from './vscode/vs/workbench/services/extensions/common/extensions.js';
|
|
4
3
|
import { generateUuid } from 'monaco-editor/esm/vs/base/common/uuid.js';
|
|
@@ -7,9 +6,6 @@ import { IExtHostExtensionService } from './vscode/vs/workbench/api/common/extHo
|
|
|
7
6
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
8
7
|
import { getExtensionId } from './vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js';
|
|
9
8
|
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
10
|
-
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
11
|
-
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
12
|
-
import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
13
9
|
import { localizeManifest } from './vscode/vs/platform/extensionManagement/common/extensionNls.js';
|
|
14
10
|
import { joinPath, originalFSPath } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
15
11
|
import { FileAccess } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
@@ -30,6 +26,8 @@ import create from './vscode-services/extensions.js';
|
|
|
30
26
|
import { initialize as initialize$1, getExtHostServices } from './vscode-services/extHost.js';
|
|
31
27
|
export { onExtHostInitialized } from './vscode-services/extHost.js';
|
|
32
28
|
import { unsupported } from './tools.js';
|
|
29
|
+
import { setDefaultExtension } from './default-extension.js';
|
|
30
|
+
import './vscode/vs/workbench/contrib/search/browser/search.contribution.js';
|
|
33
31
|
function consoleExtensionMessageHandler(msg) {
|
|
34
32
|
if (msg.type === Severity.Error) {
|
|
35
33
|
console.error(msg);
|
|
@@ -41,40 +39,9 @@ function consoleExtensionMessageHandler(msg) {
|
|
|
41
39
|
console.log(msg);
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
|
-
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
45
|
-
configurationRegistry.registerConfiguration({
|
|
46
|
-
properties: {
|
|
47
|
-
'search.useIgnoreFiles': {
|
|
48
|
-
type: 'boolean',
|
|
49
|
-
markdownDescription: ( localize(
|
|
50
|
-
'useIgnoreFiles',
|
|
51
|
-
'Controls whether to use `.gitignore` and `.ignore` files when searching for files.'
|
|
52
|
-
)),
|
|
53
|
-
default: true,
|
|
54
|
-
scope: 4
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
let DEFAULT_EXTENSION = {
|
|
59
|
-
identifier: new ExtensionIdentifier('monaco'),
|
|
60
|
-
isBuiltin: true,
|
|
61
|
-
isUserBuiltin: true,
|
|
62
|
-
isUnderDevelopment: false,
|
|
63
|
-
extensionLocation: ( URI.from({ scheme: 'extension', path: '/' })),
|
|
64
|
-
name: 'monaco',
|
|
65
|
-
publisher: 'microsoft',
|
|
66
|
-
version: '1.0.0',
|
|
67
|
-
engines: {
|
|
68
|
-
vscode: "1.79.0"
|
|
69
|
-
},
|
|
70
|
-
targetPlatform: "web"
|
|
71
|
-
};
|
|
72
|
-
function getDefaultExtension() {
|
|
73
|
-
return DEFAULT_EXTENSION;
|
|
74
|
-
}
|
|
75
42
|
async function initialize(extension) {
|
|
76
43
|
if (extension != null) {
|
|
77
|
-
|
|
44
|
+
setDefaultExtension(extension);
|
|
78
45
|
}
|
|
79
46
|
await initialize$1();
|
|
80
47
|
}
|
|
@@ -242,4 +209,4 @@ function registerExtension(manifest, defaultNLS) {
|
|
|
242
209
|
function ensureSuffix(path, suffix) {
|
|
243
210
|
return path.endsWith(suffix) ? path : path + suffix;
|
|
244
211
|
}
|
|
245
|
-
export { consoleExtensionMessageHandler, createApi,
|
|
212
|
+
export { consoleExtensionMessageHandler, createApi, initialize, registerExtension, runExtensionCode };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as ServiceIdentifier } from './instantiation.js';
|
|
2
|
-
import { S as Severity, E as ExtensionIdentifier, I as IExtensionDescription, b as IExtensionContributions,
|
|
2
|
+
import { S as Severity, E as ExtensionIdentifier, I as IExtensionDescription, b as IExtensionContributions, c as ExtensionKind } from './extensions.d2.ts';
|
|
3
3
|
import { E as Event } from './event.js';
|
|
4
4
|
|
|
5
5
|
declare const enum ExtensionHostKind {
|
package/dist/files.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as ServiceIdentifier } from './instantiation.js';
|
|
2
|
-
import { E as Event,
|
|
2
|
+
import { E as Event, a as IDisposable, C as CancellationToken } from './event.js';
|
|
3
3
|
import { U as URI } from './uri.js';
|
|
4
4
|
|
|
5
5
|
interface IRelativePattern {
|
|
@@ -850,4 +850,4 @@ interface ICreateFileOptions {
|
|
|
850
850
|
readonly overwrite?: boolean;
|
|
851
851
|
}
|
|
852
852
|
|
|
853
|
-
export { FileSystemProviderCapabilities as F,
|
|
853
|
+
export { FileSystemProviderCapabilities as F, IFileSystemProviderWithFileReadWriteCapability as I, ReadableStreamEvents as R, VSBuffer as V, IFileSystemProviderWithFileReadStreamCapability as a, IStat as b, FileType as c, IFileReadStreamOptions as d, IFileWriteOptions as e, IFileDeleteOptions as f, IFileOverwriteOptions as g, IWatchOptions as h, IFileChange as i, FileSystemProviderError as j, FileSystemProviderErrorCode as k, FileChangeType as l, VSBufferReadable as m, VSBufferReadableStream as n, IFileStatWithMetadata as o, FileOperation as p, ReadableStream as q, IReadFileStreamOptions as r, IWriteFileOptions as s, IBaseFileStatWithMetadata as t, IFileReadLimits as u, IRelativePattern as v, IFileService as w };
|
package/dist/keybinding.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S as ServiceIdentifier } from './instantiation.js';
|
|
2
2
|
import { E as Event } from './event.js';
|
|
3
3
|
import { I as IJSONSchema } from './jsonSchema.js';
|
|
4
|
-
import { C as ContextKeyExpression,
|
|
4
|
+
import { C as ContextKeyExpression, I as IContextKeyServiceTarget, a as IContextKeyService } from './contextkey.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Virtual Key Codes, the value does not hold any inherent meaning.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { S as ServiceIdentifier, I as IInstantiationService } from './instantiation.js';
|
|
2
|
-
import { E as Event, C as CancellationToken,
|
|
3
|
-
import {
|
|
2
|
+
import { E as Event, C as CancellationToken, a as IDisposable, b as Emitter, d as IWaitUntil, D as Disposable } from './event.js';
|
|
3
|
+
import { c as ITextModel, P as Position, R as Range, S as Selection, h as IRange, E as EndOfLineSequence, g as IPosition, i as IMarkdownString, j as ISingleEditOperation, k as EditorAutoIndentStrategy, I as IEditorOptions, l as IEditorModel, m as IDimension, n as ITextEditorModel, o as ITextSnapshot, p as ITextBufferFactory, q as IDiffEditor, r as IBaseTextResourceEditorInput, s as IBaseUntypedEditorInput, t as IResourceEditorInput, u as ITextResourceEditorInput } from './editorBrowser.js';
|
|
4
4
|
import { U as URI } from './uri.js';
|
|
5
|
-
import { V as VSBuffer,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { I as IContextKeyService } from './contextkey.js';
|
|
5
|
+
import { V as VSBuffer, m as VSBufferReadable, n as VSBufferReadableStream, o as IFileStatWithMetadata, p as FileOperation, q as ReadableStream, r as IReadFileStreamOptions, s as IWriteFileOptions, t as IBaseFileStatWithMetadata, u as IFileReadLimits, v as IRelativePattern } from './files.js';
|
|
6
|
+
import { f as IProgress, g as IProgressStep, c as IComposite, h as ICompositeControl } from './colorRegistry.js';
|
|
7
|
+
import { a as IContextKeyService } from './contextkey.js';
|
|
9
8
|
import { T as ThemeIcon } from './themables.js';
|
|
10
9
|
import { S as Severity, E as ExtensionIdentifier } from './extensions.d2.ts';
|
|
11
10
|
|
|
@@ -4759,4 +4758,4 @@ interface ILanguageFeaturesService {
|
|
|
4759
4758
|
setNotebookTypeResolver(resolver: NotebookInfoResolver | undefined): void;
|
|
4760
4759
|
}
|
|
4761
4760
|
|
|
4762
|
-
export {
|
|
4761
|
+
export { IPromptBaseButton as $, IDialogArgs as A, IDialogResult as B, Command as C, DialogType as D, EditorInput as E, FoldingRangeProvider as F, GroupIdentifier as G, IDialogHandler as H, ILanguageFeaturesService as I, IConfirmDialogArgs as J, IInputDialogArgs as K, LanguageFeatureRegistry as L, IPromptDialogArgs as M, IBaseDialogOptions as N, ICheckbox as O, ICheckboxResult as P, ICustomDialogOptions as Q, ICustomDialogMarkdown as R, IConfirmation as S, TextEdit as T, IConfirmationResult as U, IInput as V, WorkspaceEdit as W, IInputResult as X, IInputElement as Y, IPrompt as Z, IPromptResult as _, ILanguageConfigurationService as a, IPromptButton as a0, IPromptCancelButton as a1, IPromptResultWithCancel as a2, IPromptWithCustomCancel as a3, IPromptWithDefaultCancel as a4, ITextFileEditorModel as b, ILanguageIdCodec as c, IEditorCloseEvent as d, IVisibleEditorPane as e, EditorsOrder as f, IEditorIdentifier as g, IEditorGroup as h, IEditorPane as i, IUntitledTextResourceEditorInput as j, IResourceDiffEditorInput as k, ITextDiffEditorPane as l, IUntypedEditorInput as m, ICloseEditorOptions as n, IFindEditorOptions as o, IRevertOptions as p, ISaveOptions as q, IGroupModelChangeEvent as r, LanguageSelector as s, IInplaceReplaceSupportResult as t, WorkspaceEditMetadata as u, IDialogService as v, IMarkerService as w, IEditorGroupsService as x, ITextFileService as y, IWorkingCopyFileService as z };
|
package/dist/log.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as fs from 'fs/promises';
|
|
2
2
|
import * as path from 'path';
|
|
3
|
+
import * as os from 'os';
|
|
3
4
|
import { createRequire } from 'node:module';
|
|
4
5
|
|
|
5
6
|
function Diff() {}
|
|
@@ -850,8 +851,17 @@ async function run() {
|
|
|
850
851
|
console.info('Monaco-editor has already been tree-mended, ignoring');
|
|
851
852
|
process.exit(0);
|
|
852
853
|
}
|
|
854
|
+
// pnpm WA: copy files to a temp directory and patch files there. When finished copy back
|
|
855
|
+
let workingDir = monacoEsmDirectory;
|
|
856
|
+
let tmpDir;
|
|
857
|
+
const havePnpm = monacoEsmDirectory.includes('.pnpm');
|
|
858
|
+
if (havePnpm) {
|
|
859
|
+
tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'esm-'));
|
|
860
|
+
workingDir = path.resolve(tmpDir, 'esm');
|
|
861
|
+
await fs.cp(monacoEsmDirectory, workingDir, { recursive: true });
|
|
862
|
+
}
|
|
853
863
|
function getMonacoFile(diff) {
|
|
854
|
-
return path.resolve(
|
|
864
|
+
return path.resolve(workingDir, diff.oldFileName.slice('a/'.length));
|
|
855
865
|
}
|
|
856
866
|
await new Promise((resolve, reject) => {
|
|
857
867
|
applyPatches(patchContent.toString('utf-8'), {
|
|
@@ -889,6 +899,10 @@ async function run() {
|
|
|
889
899
|
}
|
|
890
900
|
});
|
|
891
901
|
});
|
|
902
|
+
// in case of pnpm copy the temp esm back
|
|
903
|
+
if (havePnpm) {
|
|
904
|
+
await fs.cp(tmpDir, monacoDirectory, { recursive: true, force: true });
|
|
905
|
+
}
|
|
892
906
|
// Mark monaco as treemended
|
|
893
907
|
await fs.writeFile(monacoPackageJsonFile, JSON.stringify({
|
|
894
908
|
...monacoPackageJson,
|
package/dist/monaco.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
import { I as IEditorOverrideServices } from './standaloneServices.js';
|
|
3
|
-
import { E as Event, D as Disposable,
|
|
3
|
+
import { E as Event, D as Disposable, a as IDisposable, I as IReference } from './event.js';
|
|
4
4
|
export { c as DisposableStore } from './event.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
export {
|
|
5
|
+
import { c as ITextModel, d as IModelDecorationOptions, e as IModelDecorationsChangeAccessor, f as IEditorContribution, b as ICodeEditor, g as IPosition } from './editorBrowser.js';
|
|
6
|
+
import { L as LanguageFeatureRegistry, I as ILanguageFeaturesService, F as FoldingRangeProvider, a as ILanguageConfigurationService, b as ITextFileEditorModel } from './languageFeatures.js';
|
|
7
|
+
import { a as IContextKeyService } from './contextkey.js';
|
|
8
|
+
import { d as INotificationService } from './colorRegistry.js';
|
|
9
|
+
export { C as CommandsRegistry, r as registerColor } from './colorRegistry.js';
|
|
10
10
|
import { S as ServiceIdentifier } from './instantiation.js';
|
|
11
11
|
import { I as IJSONSchema } from './jsonSchema.js';
|
|
12
12
|
import { U as URI } from './uri.js';
|
|
13
|
-
import {
|
|
13
|
+
import { f as IFileDeleteOptions } from './files.js';
|
|
14
14
|
import 'vscode';
|
|
15
|
-
import './editor.js';
|
|
16
15
|
import './themables.js';
|
|
17
16
|
import './extensions.d2.ts';
|
|
18
17
|
|
|
@@ -51,30 +50,6 @@ interface IFeatureDebounceInformation {
|
|
|
51
50
|
default(): number;
|
|
52
51
|
}
|
|
53
52
|
|
|
54
|
-
/**
|
|
55
|
-
* The options to create an editor.
|
|
56
|
-
*/
|
|
57
|
-
type IStandaloneEditorConstructionOptions = monaco.editor.IStandaloneEditorConstructionOptions
|
|
58
|
-
/**
|
|
59
|
-
* The options to create a diff editor.
|
|
60
|
-
*/
|
|
61
|
-
type IStandaloneDiffEditorConstructionOptions = monaco.editor.IStandaloneDiffEditorConstructionOptions
|
|
62
|
-
type IStandaloneCodeEditor = monaco.editor.IStandaloneCodeEditor
|
|
63
|
-
type IStandaloneDiffEditor = monaco.editor.IStandaloneDiffEditor
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Create a new editor under `domElement`.
|
|
67
|
-
* `domElement` should be empty (not contain other dom nodes).
|
|
68
|
-
* The editor will read the size of `domElement`.
|
|
69
|
-
*/
|
|
70
|
-
declare function create(domElement: HTMLElement, options?: IStandaloneEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneCodeEditor;
|
|
71
|
-
/**
|
|
72
|
-
* Create a new diff editor under `domElement`.
|
|
73
|
-
* `domElement` should be empty (not contain other dom nodes).
|
|
74
|
-
* The editor will read the size of `domElement`.
|
|
75
|
-
*/
|
|
76
|
-
declare function createDiffEditor(domElement: HTMLElement, options?: IStandaloneDiffEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneDiffEditor;
|
|
77
|
-
|
|
78
53
|
interface ILineRange {
|
|
79
54
|
startLineNumber: number;
|
|
80
55
|
endLineNumber: number;
|
|
@@ -281,6 +256,30 @@ declare class RangesLimitReporter implements FoldingLimitReporter {
|
|
|
281
256
|
update(computed: number, limited: number | false): void;
|
|
282
257
|
}
|
|
283
258
|
|
|
259
|
+
/**
|
|
260
|
+
* The options to create an editor.
|
|
261
|
+
*/
|
|
262
|
+
type IStandaloneEditorConstructionOptions = monaco.editor.IStandaloneEditorConstructionOptions
|
|
263
|
+
/**
|
|
264
|
+
* The options to create a diff editor.
|
|
265
|
+
*/
|
|
266
|
+
type IStandaloneDiffEditorConstructionOptions = monaco.editor.IStandaloneDiffEditorConstructionOptions
|
|
267
|
+
type IStandaloneCodeEditor = monaco.editor.IStandaloneCodeEditor
|
|
268
|
+
type IStandaloneDiffEditor = monaco.editor.IStandaloneDiffEditor
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Create a new editor under `domElement`.
|
|
272
|
+
* `domElement` should be empty (not contain other dom nodes).
|
|
273
|
+
* The editor will read the size of `domElement`.
|
|
274
|
+
*/
|
|
275
|
+
declare function create(domElement: HTMLElement, options?: IStandaloneEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneCodeEditor;
|
|
276
|
+
/**
|
|
277
|
+
* Create a new diff editor under `domElement`.
|
|
278
|
+
* `domElement` should be empty (not contain other dom nodes).
|
|
279
|
+
* The editor will read the size of `domElement`.
|
|
280
|
+
*/
|
|
281
|
+
declare function createDiffEditor(domElement: HTMLElement, options?: IStandaloneDiffEditorConstructionOptions, override?: IEditorOverrideServices): IStandaloneDiffEditor;
|
|
282
|
+
|
|
284
283
|
interface IRegistry {
|
|
285
284
|
/**
|
|
286
285
|
* Adds the extension functions and properties defined by data to the
|
package/dist/monaco.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from './node_modules/tslib/tslib.es6.js';
|
|
2
|
-
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
2
|
+
import { StandaloneServices, StandaloneKeybindingService } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
3
3
|
import { ITextResourceConfigurationService } from 'monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js';
|
|
4
4
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
5
5
|
import { StandaloneDiffEditor, StandaloneEditor } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneCodeEditor.js';
|
|
@@ -12,6 +12,7 @@ export { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
|
12
12
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
13
13
|
export { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
14
14
|
import { Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
15
|
+
import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
15
16
|
export { CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
16
17
|
import { Extensions as Extensions$3 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
17
18
|
import { EditorOptionsUtil } from './vscode/vs/editor/browser/config/editorConfiguration.js';
|
|
@@ -22,8 +23,21 @@ import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
|
22
23
|
import { JSONValidationExtensionPoint } from './vscode/vs/workbench/api/common/jsonValidationExtensionPoint.js';
|
|
23
24
|
import { Extensions as Extensions$1 } from './vscode/vs/workbench/common/contributions.js';
|
|
24
25
|
import { ColorExtensionPoint } from './vscode/vs/workbench/services/themes/common/colorExtensionPoint.js';
|
|
25
|
-
import {
|
|
26
|
+
import { ServiceCollection } from 'monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
27
|
+
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
28
|
+
import { StandaloneQuickInputService } from 'monaco-editor/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js';
|
|
29
|
+
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
30
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
31
|
+
import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
32
|
+
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
33
|
+
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
34
|
+
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
35
|
+
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
36
|
+
import { KeybindingResolver } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingResolver.js';
|
|
37
|
+
import { WorkbenchKeybindingService } from './vscode/vs/workbench/services/keybinding/browser/keybindingService.js';
|
|
26
38
|
export { registerJsonSchema, synchronizeJsonSchemas } from './json.js';
|
|
39
|
+
import { createInjectedClass } from './tools/injection.js';
|
|
40
|
+
import './vscode/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.js';
|
|
27
41
|
let ExtensionPoints = class ExtensionPoints {
|
|
28
42
|
constructor(instantiationService) {
|
|
29
43
|
this.instantiationService = instantiationService;
|
|
@@ -105,13 +119,55 @@ async function createModelReference(resource, content) {
|
|
|
105
119
|
}
|
|
106
120
|
return (await StandaloneServices.get(ITextModelService).createModelReference(resource));
|
|
107
121
|
}
|
|
122
|
+
let DelegateStandaloneKeybindingService = class DelegateStandaloneKeybindingService extends StandaloneKeybindingService {
|
|
123
|
+
constructor(delegate, contextKeyService, commandService, telemetryService, notificationService, logService, codeEditorService) {
|
|
124
|
+
super(contextKeyService, commandService, telemetryService, notificationService, logService, codeEditorService);
|
|
125
|
+
this.delegate = delegate;
|
|
126
|
+
this._cachedOverridenResolver = null;
|
|
127
|
+
this.onDidUpdateKeybindings(() => {
|
|
128
|
+
this._cachedOverridenResolver = null;
|
|
129
|
+
});
|
|
130
|
+
this.delegate.onDidUpdateKeybindings(() => {
|
|
131
|
+
this._cachedOverridenResolver = null;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
_getResolver() {
|
|
135
|
+
if (this._cachedOverridenResolver == null) {
|
|
136
|
+
const overrides = this['_toNormalizedKeybindingItems'](this['_dynamicKeybindings'], false);
|
|
137
|
+
this._cachedOverridenResolver = new KeybindingResolver(
|
|
138
|
+
[...this.delegate['_getResolver']().getKeybindings()], overrides, (str) => this._log(str));
|
|
139
|
+
}
|
|
140
|
+
return this._cachedOverridenResolver;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
DelegateStandaloneKeybindingService = __decorate([
|
|
144
|
+
( __param(1, IContextKeyService)),
|
|
145
|
+
( __param(2, ICommandService)),
|
|
146
|
+
( __param(3, ITelemetryService)),
|
|
147
|
+
( __param(4, INotificationService)),
|
|
148
|
+
( __param(5, ILogService)),
|
|
149
|
+
( __param(6, ICodeEditorService))
|
|
150
|
+
], DelegateStandaloneKeybindingService);
|
|
151
|
+
let standaloneEditorInstantiationService = null;
|
|
152
|
+
function getStandaloneEditorInstantiationService() {
|
|
153
|
+
if (standaloneEditorInstantiationService == null) {
|
|
154
|
+
const serviceCollection = new ServiceCollection();
|
|
155
|
+
serviceCollection.set(IQuickInputService, new SyncDescriptor(StandaloneQuickInputService, undefined, true));
|
|
156
|
+
const keybindingService = StandaloneServices.get(IKeybindingService);
|
|
157
|
+
if (keybindingService instanceof WorkbenchKeybindingService) {
|
|
158
|
+
serviceCollection.set(IKeybindingService, new SyncDescriptor(DelegateStandaloneKeybindingService, [keybindingService], true));
|
|
159
|
+
}
|
|
160
|
+
standaloneEditorInstantiationService = StandaloneServices.get(IInstantiationService).createChild(serviceCollection);
|
|
161
|
+
}
|
|
162
|
+
return standaloneEditorInstantiationService;
|
|
163
|
+
}
|
|
108
164
|
const createConfiguredEditor = (domElement, options, override) => {
|
|
109
|
-
|
|
110
|
-
return
|
|
165
|
+
StandaloneServices.initialize(override ?? {});
|
|
166
|
+
return getStandaloneEditorInstantiationService().createInstance(ConfiguredStandaloneEditor, domElement, false, options);
|
|
111
167
|
};
|
|
112
168
|
const createConfiguredDiffEditor = (domElement, options, override) => {
|
|
113
|
-
|
|
114
|
-
return
|
|
169
|
+
StandaloneServices.initialize(override ?? {});
|
|
170
|
+
return getStandaloneEditorInstantiationService().createInstance(ConfiguredStandaloneDiffEditor, domElement, options);
|
|
115
171
|
};
|
|
116
172
|
const Extensions = {
|
|
117
173
|
...Extensions$2,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=( Object.keys(r.attributes)),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
2
|
+
export { n as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createFilter, dataToEsm } from '@rollup/pluginutils';
|
|
2
|
-
import { p as parseJson, l as localizeManifest, b as buildExtensionCode, i as isBinaryFileSync_1, c as compressResource, e as extractResourcesFromExtensionManifest, m as mimeTypes } from './extension-tools-
|
|
2
|
+
import { p as parseJson, l as localizeManifest, b as buildExtensionCode, i as isBinaryFileSync_1, c as compressResource, e as extractResourcesFromExtensionManifest, m as mimeTypes } from './extension-tools-0c4c1ad7.js';
|
|
3
3
|
import * as path from 'path';
|
|
4
4
|
import * as fsPromise from 'fs/promises';
|
|
5
5
|
import * as require$$0$1 from 'fs';
|
|
@@ -9,7 +9,6 @@ import 'node:process';
|
|
|
9
9
|
import 'node:perf_hooks';
|
|
10
10
|
import 'node:crypto';
|
|
11
11
|
import 'node:fs/promises';
|
|
12
|
-
import 'node:events';
|
|
13
12
|
import 'tty';
|
|
14
13
|
|
|
15
14
|
function plugin({ include, exclude, isDefaultExtension = false, withCode = () => true, rollupPlugins }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFilter, dataToEsm } from '@rollup/pluginutils';
|
|
2
2
|
import * as yauzl from 'yauzl';
|
|
3
|
-
import { b as buildExtensionCode, i as isBinaryFileSync_1, c as compressResource, p as parseJson, l as localizeManifest, e as extractResourcesFromExtensionManifest, m as mimeTypes } from './extension-tools-
|
|
3
|
+
import { b as buildExtensionCode, i as isBinaryFileSync_1, c as compressResource, p as parseJson, l as localizeManifest, e as extractResourcesFromExtensionManifest, m as mimeTypes } from './extension-tools-0c4c1ad7.js';
|
|
4
4
|
import * as path from 'path';
|
|
5
5
|
import 'fs';
|
|
6
6
|
import 'util';
|
|
@@ -9,7 +9,6 @@ import 'node:process';
|
|
|
9
9
|
import 'node:perf_hooks';
|
|
10
10
|
import 'node:crypto';
|
|
11
11
|
import 'node:fs/promises';
|
|
12
|
-
import 'node:events';
|
|
13
12
|
import 'tty';
|
|
14
13
|
|
|
15
14
|
function read(stream) {
|
|
@@ -3,8 +3,8 @@ import { I as IEditorOverrideServices } from '../standaloneServices.js';
|
|
|
3
3
|
import { I as IStringDictionary } from '../collections.js';
|
|
4
4
|
import { E as Event } from '../event.js';
|
|
5
5
|
import { I as IJSONSchema } from '../jsonSchema.js';
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
6
|
+
export { b as IColorCustomizations, a as IThemeScopedColorCustomizations } from '../workbenchThemeService.js';
|
|
7
|
+
export { I as IAnyWorkspaceIdentifier } from '../workspace.js';
|
|
8
8
|
import { U as URI } from '../uri.js';
|
|
9
9
|
import '../instantiation.js';
|
|
10
10
|
import 'monaco-editor';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { I as IEditorOverrideServices } from '../standaloneServices.js';
|
|
2
|
+
export { I as IEditorOptions, a as IResolvedTextEditorModel } from '../editorBrowser.js';
|
|
3
|
+
export { I as IReference } from '../event.js';
|
|
4
|
+
import { O as OpenEditor } from '../editor.js';
|
|
5
|
+
import '../instantiation.js';
|
|
6
|
+
import 'monaco-editor';
|
|
7
|
+
import '../uri.js';
|
|
8
|
+
import '../themables.js';
|
|
9
|
+
import 'vscode';
|
|
10
|
+
|
|
11
|
+
declare function getServiceOverride(openEditor: OpenEditor): IEditorOverrideServices;
|
|
12
|
+
|
|
13
|
+
export { OpenEditor, getServiceOverride as default };
|
|
@@ -2,50 +2,19 @@ import { __decorate, __param } from '../node_modules/tslib/tslib.es6.js';
|
|
|
2
2
|
import '../vscode-services/missing-services.js';
|
|
3
3
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
4
4
|
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
5
|
-
import { TextModelResolverService } from '../vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js';
|
|
6
5
|
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
7
6
|
import { CodeEditorService } from '../vscode/vs/workbench/services/editor/browser/codeEditorService.js';
|
|
8
|
-
import { IEditorService
|
|
9
|
-
import { isResourceEditorInput, isEditorInput } from '../vscode/vs/workbench/common/editor.js';
|
|
7
|
+
import { IEditorService } from '../vscode/vs/workbench/services/editor/common/editorService.js';
|
|
10
8
|
import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
11
|
-
import { DEFAULT_EDITOR_MIN_DIMENSIONS, DEFAULT_EDITOR_MAX_DIMENSIONS } from '../vscode/vs/workbench/browser/parts/editor/editor.js';
|
|
12
|
-
import { applyTextEditorOptions } from '../vscode/vs/workbench/common/editor/editorOptions.js';
|
|
13
9
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
14
10
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
15
11
|
import { ITextEditorService, TextEditorService } from '../vscode/vs/workbench/services/textfile/common/textEditorService.js';
|
|
16
|
-
import '
|
|
12
|
+
import { wrapOpenEditor } from './tools/editor.js';
|
|
17
13
|
import { unsupported } from '../tools.js';
|
|
18
|
-
|
|
19
|
-
constructor(editor) {
|
|
20
|
-
this.editor = editor;
|
|
21
|
-
this.onDidChangeControl = Event.None;
|
|
22
|
-
this.onDidChangeSizeConstraints = Event.None;
|
|
23
|
-
this.onDidFocus = Event.None;
|
|
24
|
-
this.onDidBlur = Event.None;
|
|
25
|
-
this.input = undefined;
|
|
26
|
-
this.options = undefined;
|
|
27
|
-
this.group = undefined;
|
|
28
|
-
this.scopedContextKeyService = undefined;
|
|
29
|
-
this.getViewState = unsupported;
|
|
30
|
-
this.isVisible = unsupported;
|
|
31
|
-
this.hasFocus = unsupported;
|
|
32
|
-
this.getId = unsupported;
|
|
33
|
-
this.getTitle = unsupported;
|
|
34
|
-
this.focus = unsupported;
|
|
35
|
-
}
|
|
36
|
-
get minimumWidth() { return DEFAULT_EDITOR_MIN_DIMENSIONS.width; }
|
|
37
|
-
get maximumWidth() { return DEFAULT_EDITOR_MAX_DIMENSIONS.width; }
|
|
38
|
-
get minimumHeight() { return DEFAULT_EDITOR_MIN_DIMENSIONS.height; }
|
|
39
|
-
get maximumHeight() { return DEFAULT_EDITOR_MAX_DIMENSIONS.height; }
|
|
40
|
-
getControl() {
|
|
41
|
-
return this.editor;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
14
|
+
import '../vscode/vs/workbench/browser/parts/editor/editor.contribution.js';
|
|
44
15
|
let EditorService = class EditorService extends Disposable {
|
|
45
16
|
constructor(_openEditor, textModelService) {
|
|
46
17
|
super();
|
|
47
|
-
this._openEditor = _openEditor;
|
|
48
|
-
this.textModelService = textModelService;
|
|
49
18
|
this._onDidActiveEditorChange = this._register(new Emitter());
|
|
50
19
|
this.onDidActiveEditorChange = this._onDidActiveEditorChange.event;
|
|
51
20
|
this.onDidVisibleEditorsChange = Event.None;
|
|
@@ -86,34 +55,10 @@ let EditorService = class EditorService extends Disposable {
|
|
|
86
55
|
this._register(codeEditorService.onCodeEditorAdd(handleCodeEditor));
|
|
87
56
|
codeEditorService.listCodeEditors().forEach(handleCodeEditor);
|
|
88
57
|
});
|
|
58
|
+
this.openEditor = wrapOpenEditor(textModelService, this.openEditor.bind(this), _openEditor);
|
|
89
59
|
}
|
|
90
|
-
async openEditor(
|
|
91
|
-
|
|
92
|
-
if (isPreferredGroup(optionsOrPreferredGroup)) {
|
|
93
|
-
preferredGroup = optionsOrPreferredGroup;
|
|
94
|
-
}
|
|
95
|
-
const resource = isResourceEditorInput(editor) || isEditorInput(editor) ? editor.resource : undefined;
|
|
96
|
-
if (resource == null) {
|
|
97
|
-
throw new Error('Diff editors not supported');
|
|
98
|
-
}
|
|
99
|
-
let modelEditor;
|
|
100
|
-
const modelRef = await this.textModelService.createModelReference(resource);
|
|
101
|
-
const codeEditors = StandaloneServices.get(ICodeEditorService).listCodeEditors();
|
|
102
|
-
modelEditor = codeEditors.find(editor => editor.getModel() === modelRef.object.textEditorModel);
|
|
103
|
-
if (modelEditor == null) {
|
|
104
|
-
modelEditor = await this._openEditor(modelRef, options, preferredGroup === SIDE_GROUP);
|
|
105
|
-
}
|
|
106
|
-
if (modelEditor == null) {
|
|
107
|
-
modelRef.dispose();
|
|
108
|
-
return undefined;
|
|
109
|
-
}
|
|
110
|
-
if (options != null) {
|
|
111
|
-
applyTextEditorOptions(options, modelEditor, 1 );
|
|
112
|
-
}
|
|
113
|
-
if (!(options?.preserveFocus ?? false)) {
|
|
114
|
-
modelEditor.focus();
|
|
115
|
-
}
|
|
116
|
-
return new SimpleEditorPane(modelEditor);
|
|
60
|
+
async openEditor() {
|
|
61
|
+
return undefined;
|
|
117
62
|
}
|
|
118
63
|
};
|
|
119
64
|
EditorService = __decorate([
|
|
@@ -121,7 +66,6 @@ EditorService = __decorate([
|
|
|
121
66
|
], EditorService);
|
|
122
67
|
function getServiceOverride(openEditor) {
|
|
123
68
|
return {
|
|
124
|
-
[( ITextModelService.toString())]: new SyncDescriptor(TextModelResolverService, undefined, true),
|
|
125
69
|
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, undefined, true),
|
|
126
70
|
[( IEditorService.toString())]: new SyncDescriptor(EditorService, [openEditor]),
|
|
127
71
|
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import * as monaco from 'monaco-editor';
|
|
1
2
|
import { I as IEditorOverrideServices } from '../standaloneServices.js';
|
|
2
3
|
import { U as URI } from '../uri.js';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { E as Event, C as CancellationToken,
|
|
4
|
+
import { I as IFileSystemProviderWithFileReadWriteCapability, a as IFileSystemProviderWithFileReadStreamCapability, F as FileSystemProviderCapabilities, b as IStat, c as FileType, d as IFileReadStreamOptions, R as ReadableStreamEvents, e as IFileWriteOptions, f as IFileDeleteOptions, g as IFileOverwriteOptions, h as IWatchOptions, i as IFileChange } from '../files.js';
|
|
5
|
+
export { l as FileChangeType, j as FileSystemProviderError, k as FileSystemProviderErrorCode } from '../files.js';
|
|
6
|
+
import { E as Event, C as CancellationToken, a as IDisposable } from '../event.js';
|
|
6
7
|
import { I as ILogService } from '../log.js';
|
|
7
8
|
import '../instantiation.js';
|
|
8
|
-
import 'monaco-editor';
|
|
9
9
|
import 'vscode';
|
|
10
10
|
|
|
11
11
|
declare class IndexedDB {
|
|
@@ -68,7 +68,7 @@ declare abstract class SimpleTextFileSystemProvider implements IFileSystemProvid
|
|
|
68
68
|
watch(): IDisposable;
|
|
69
69
|
stat(resource: URI): Promise<IStat>;
|
|
70
70
|
mkdir(): Promise<void>;
|
|
71
|
-
readdir(
|
|
71
|
+
readdir(_directory: monaco.Uri): Promise<[string, FileType][]>;
|
|
72
72
|
delete(): Promise<void>;
|
|
73
73
|
rename(): Promise<void>;
|
|
74
74
|
onDidWatchError: Event<any>;
|