@lvce-editor/server 0.0.21 → 0.0.22
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/ThirdPartyNotices.txt +3 -3
- package/package.json +2 -2
- package/static/{e236e21 → 09bf9c7}/config/builtinCommands.json +0 -0
- package/static/{e236e21 → 09bf9c7}/config/colorTheme.json +0 -0
- package/static/{e236e21 → 09bf9c7}/config/defaultKeyBindings.json +0 -0
- package/static/{e236e21 → 09bf9c7}/config/defaultSettings.json +0 -0
- package/static/{e236e21 → 09bf9c7}/css/App.css +14 -13
- package/static/{e236e21 → 09bf9c7}/fonts/FiraCode-VariableFont.ttf +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/arrow-right.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/check.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/chevron-right.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/debug-alt-2.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/ellipsis.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/extensionDefaultIcon.png +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/extensions.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/files.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/icon-close.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/icon-source-control.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/icon-sync.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/icon.png +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/language-icon.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/pwa-icon-192.png +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/pwa-icon-512.png +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/search.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/settings-gear.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/source-control.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-array.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-boolean.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-class.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-color.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-constant.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-enum-member.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-enum.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-event.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-field.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-file.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-interface.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-key.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-keyword.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-method.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-misc.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-namespace.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-numeric.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-operator.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-parameter.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-property.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-ruler.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-snippet.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-string.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-structure.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/symbol-variable.svg +0 -0
- package/static/{e236e21 → 09bf9c7}/icons/theme-icon.png +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Audio.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Audio.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Developer.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Developer.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Dialog.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Dialog.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/EditorError.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/EditorError.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/EditorHover.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/EditorHover.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/EditorRename.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/EditorRename.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/FindWidget.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/FindWidget.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ImagePreview.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ImagePreview.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ImagePreview.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ImagePreview.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/InputBox.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/InputBox.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Menu.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Menu.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Meta.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Meta.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Notification.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/Notification.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/SessionStorage.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/SessionStorage.ipc.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletClock.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletClock.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletDebugConsole.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletDebugConsole.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorCompletion.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorCompletion.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorImage.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorImage.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorPlainText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorPlainText.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorText.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEmpty.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletEmpty.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletExplorer.js +13 -7
- package/static/09bf9c7/packages/renderer-process/dist/ViewletExplorer.js.map +1 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletExtensions.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletExtensions.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletImplementations.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletImplementations.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletLocations.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletLocations.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletMain.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletMain.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletOutput.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletOutput.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletPanel.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletPanel.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletProblems.js +16 -2
- package/static/09bf9c7/packages/renderer-process/dist/ViewletProblems.js.map +1 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletQuickPick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletQuickPick.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletReferences.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletReferences.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletRunAndDebug.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletRunAndDebug.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletSearch.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletSearch.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletSideBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletSideBar.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletSourceControl.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletSourceControl.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletTerminal.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/ViewletTerminal.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/renderer-process.modern.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/renderer-process.modern.js.map +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/dist/rendererProcessMain.js +27 -5
- package/static/09bf9c7/packages/renderer-process/dist/rendererProcessMain.js.map +1 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Allocator/Allocator.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/AriaAlert/AriaAlert.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Assert/Assert.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Audio/Audio.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Audio/Audio.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/BackDrop/BackDrop.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Callback/Callback.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Command/Command.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Context/Context.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Css/Css.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Css/Css.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Developer/Developer.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Developer/Developer.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Dialog/Dialog.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Dialog/Dialog.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Dom/Dom.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/DomPool/DomPool.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/DomScheduler/DomScheduler.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/Editor.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/EditorHelper.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerCursor.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerDecoration2.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerDiagnostics.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerLineNumbers.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerMarker.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerScreenReader.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerScrollBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerSelections.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorController/EditorController.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorError/EditorError.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorError/EditorError.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorGroup/EditorGroup.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorHover/EditorHover.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorHover/EditorHover.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorRename/EditorRename.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorRename/EditorRename.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/EditorTab/EditorTab.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/FindWidget/FindWidget.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/FindWidget/FindWidget.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Focus/Focus.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/FocusHighlight/FocusHighlight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/GlobalEventBus/GlobalEventBus.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/ImagePreview/ImagePreview.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/ImagePreview/ImagePreview.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/InputBox/InputBox.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/KeyBindings/KeyBindings.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/KeyBindings/KeyBindings.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Layout/Layout.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Layout/Layout.js +24 -4
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/LocalStorage/LocalStorage.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/LocalStorage/LocalStorage.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Location/Location.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Location/Location.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/MenuItem/MenuItem.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Meta/Meta.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Meta/Meta.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Navigation/Navigation.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Notification/Notification.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Notification/Notification.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/OldMenu/Menu.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/OldMenu/Menu.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/OldMenu/Menu2.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Platform/Platform.js +2 -2
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/Renderer.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererExtension.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererQuickPick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererSearchResult.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererSuggestWidget.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererTree.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/RendererWorker/RendererWorker.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/RendererWorker/RendererWorker.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/ServiceWorker/ServiceWorker.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/ServiceWorker/ServiceWorker.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/SessionStorage/SessionStorage.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/SessionStorage/SessionStorage.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Terminal/Terminal.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Terminal/Terminal.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/TitleBarMenuBar/TitleBarMenuBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ActiveViewlet.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ExplorerModel.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeProviderJson.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeProviderNpm.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeView.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeView2.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeViewClass.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeViewNumber.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/Viewlet.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/Viewlet.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletActivityBar.js +2 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletClock.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletDebugConsole.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEditorCompletion.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEditorImage.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEditorPlainText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEditorText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEmpty.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletExplorer.js +12 -6
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletExtensions.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletIframe.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletImplementations.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletList.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletLocations.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletMain.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletOutput.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletPanel.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletProblems.js +15 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletQuickPick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletReferences.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletRunAndDebug.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletSearch.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletSideBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletSourceControl.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletStatusBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletTerminal.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletTitleBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/ViewletController/ViewletProblems.controller.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/WebWorker/WebWorker.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Widget/Widget.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/WidgetManager/WidgetManager.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Window/Window.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/parts/Window/Window.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/rendererProcessMain.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-process/src/shared/findIndex.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/dist/rendererWorkerMain.js +1004 -946
- package/static/09bf9c7/packages/renderer-worker/dist/rendererWorkerMain.js.map +1 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Ajax/Ajax.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Ajax/Ajax.js +8 -18
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Arrays/Arrays.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Assert/Assert.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Audio/Audio.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Audio/Audio.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Base64/Base64.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Base64/Base64.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Blob/Blob.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Blob/Blob.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/CacheStorage/CacheStorage.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/CacheStorage/CacheStorage.js +35 -45
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Callback/Callback.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Callback/Callback.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ClipBoard/ClipBoard.ipc.js +0 -0
- package/static/09bf9c7/packages/renderer-worker/src/parts/ClipBoard/ClipBoard.js +48 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ColorPicker/ColorPicker.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ColorPicker/ColorPicker.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ColorTheme/Color.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ColorTheme/ColorTheme.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ColorTheme/ColorTheme.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ColorThemeFromJson/ColorThemeFromJson.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ColorThemeFromJson/ColorThemeFromJson.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Command/Command.js +14 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/CommandInfo/CommandInfo.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/CommandInfo/CommandInfo.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Context/ContextImpl.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ContextMenu/ContextMenu.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ContextMenu/ContextMenu.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/CustomEditor/CustomEditor.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/CustomEditor/CustomEditorExtension.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Developer/Developer.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Developer/Developer.js +8 -6
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Dialog/Dialog.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Dialog/Dialog.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/Editor.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/EditorCursor.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/EditorScrolling.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/EditorSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/EditorText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommand.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandApplyEdit.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandBlur.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCancelSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCompletion.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandComposition.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopy.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopyLineDown.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopyLineUp.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorCharacterLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorCharacterRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorDown.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorEnd.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHome.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHorizontalLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHorizontalRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorSet.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorUp.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorVertical.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordPartLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordPartRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCut.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteAllLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteAllRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteCharacterLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteCharacterRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontal.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontalLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontalRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordPartLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordPartRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDelta.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandFormat.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetPositionLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetPositionRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetSelectionFromNativeRange.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGoToDefinition.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGoToTypeDefinition.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleContextMenu.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleDoubleClick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleMouseMove.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleMouseMoveWithAltKey.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleNativeBeforeInputFromContentEditable.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleNativeSelectionChange.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleScrollBarClick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleScrollBarMove.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleSingleClick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTab.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchEnd.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchMove.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchStart.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTripleClick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleWheel.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndent.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentLess.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentMore.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandInsertLineBreak.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveLineDown.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveLineUp.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveRectangleSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveRectangleSelectionPx.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveSelectionPx.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPaste.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPasteText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPosition.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandReplaceRange.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandReplaceSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSave.js +1 -1
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAll.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllOccurrences.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectCharacterLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectCharacterRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectHorizontalLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectHorizontalRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectInsideString.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectLine.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectNextOccurrence.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectPreviousOccurrence.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWord.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWordLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWordRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetDecorations.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetDeltaY.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetLanguageId.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandShowMessage.js +2 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSnippet.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandTabCompletion.js +0 -1
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleBlockComment.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleComment.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleLineComment.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandType.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandUndo.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandUnindent.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorIndent.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorDiagnostics/EditorDiagnostics.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorDiagnostics/EditorDiagnostics.js +3 -3
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorError/EditorError.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorError/EditorError.js +4 -4
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorRename/EditorRename.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/EditorRename/EditorRename.js +5 -5
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Env/Env.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ErrorHandling/ErrorHandling.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ErrorHandling/ErrorHandling.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostBraceCompletion.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostClosingTagCompletion.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCommands.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCompletion.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCore.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostDefinition.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostDiagnostic.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostFileSystem.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostFormatting.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostHover.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostImplementation.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostLanguages.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostManagement.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostOutput.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostQuickPick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostReference.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostRename.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostSemanticTokens.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostSourceControl.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostStatusBarItems.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTabCompletion.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTextDocument.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTypeDefinition.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/shared.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionManagement/ExtensionManagement.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionMarketplace/ExtensionMarketplace.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionMeta/ExtensionMeta.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Extensions/Extensions.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Extensions/Extensions.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionsSomething/ExtensionsSomething.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystem.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystem.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemApp.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemData.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemDisk.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemGitHub.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemWeb.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FindInWorkspace/FindInWorkspace.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FindInWorkspace/FindInWorkspace.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FindWidget/FindWidget.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FindWidget/FindWidget.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Focus/Focus.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Format/Format.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Format/Format.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FuzzySearch/FuzzySearch.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/FuzzySearch/FuzzySearchMrAleph.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/GitHubRestApi/GitHubRestApi.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/GlobalEventBus/GlobalEventBus.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Highlight/Highlight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/History/History.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/IconTheme/IconTheme.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/IconTheme/IconTheme.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Id/Id.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ImagePreview/ImagePreview.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ImagePreview/ImagePreview.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Ipc/Ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Json/Json.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/JsonRpc/JsonRpc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/KeyBindings/KeyBindings.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/KeyBindings/KeyBindings.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/KeyBindingsInitial/KeyBindingsInitial.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/KeyBindingsInitial/KeyBindingsInitial.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Languages/Languages.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Layout/Layout.ipc.js +2 -1
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Layout/Layout.js +44 -18
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/LifeCycle/LifeCycle.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/List/List.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Listener/Listener.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Listener/Listener.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/LocalStorage/LocalStorage.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/LocalStorage/LocalStorage.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Location/Location.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/Main.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainCloseActiveEditor.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainCloseAllEditors.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainCloseEditorsToTheLeft.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainCloseEditorsToTheRight.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusFirst.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusIndex.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusLast.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusNext.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusPrevious.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Mediator/Mediator.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Menu/Menu.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Menu/Menu.js +3 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuCore/MenuCore.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntries.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesActivityBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesActivityBarAdditionalViews.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesEdit.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesEditor.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorer.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorerFile.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorerFolder.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesFile.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesGo.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesHelp.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesManageExtension.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesOpenRecent.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesRun.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesSelection.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesSettings.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTab.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTerminal.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTitleBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesView.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Navigation/Navigation.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Navigation/Navigation.js +22 -28
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/NestedError/NestedError.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Notification/Notification.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Notification/Notification.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Open/Open.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Open/Open.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Panel/Panel.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Performance/Performance.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Platform/Platform.js +2 -2
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Position/Position.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Preferences/Preferences.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Preferences/Preferences.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPick.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPick.js +19 -19
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickColorTheme.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickCommand.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickEverything.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickFile.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickGoToLine.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickNoop.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickNumber.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickOpenRecent.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickSymbol.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickView.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickWorkspaceSymbol.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/RecentlyOpened/RecentlyOpened.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/RecentlyOpened/RecentlyOpened.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/RendererProcess/RendererProcess.js +48 -44
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/SaveState/SaveState.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/SaveState/SaveState.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ServiceWorker/ServiceWorker.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ServiceWorker/ServiceWorker.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/SessionStorage/SessionStorage.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/SessionStorage/SessionStorage.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/SharedProcess/SharedProcess.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/SourceControl/SourceControl.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/SourceControl/SourceControl.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Storage/Storage.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/SyntaxHighlightingWorker/SyntaxHighlightingWorker.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/TextDocument/TextDocument.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/TextSegmenter/TextSegmenter.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Timers/Timers.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/TitleBarMenuBar/TitleBarMenuBar.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/TitleBarMenuBar/TitleBarMenuBar.js +11 -9
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Tokenizer/TokenizePlainText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Tokenizer/Tokenizer.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/Viewlet.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/Viewlet.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletActivityBar.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletActivityBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletClock.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletContextMenu.js +3 -3
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletCounter.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletDebugConsole.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorCompletion.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorCompletion.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorImage.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorPlainText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorText.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEmpty.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExplorer.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExplorer.js +7 -5
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtension.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtensions.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtensions.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtensionsHeader.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtensionsList.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletIframe.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletImplementations.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletList.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletList.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletLocations.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletLocations.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletMain.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletMain.js +27 -27
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletNoop.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletOutput.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletPanel.js +0 -0
- package/static/09bf9c7/packages/renderer-worker/src/parts/Viewlet/ViewletProblems.ipc.js +8 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletProblems.js +19 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletQuickPick.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletReferences.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletRunAndDebug.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSearch.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSearch.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSideBar.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSideBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSourceControl.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSourceControl.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletStatusBar.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletStatusBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletTerminal.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletTerminal.js +8 -8
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletTitleBar.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletTodoList.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ViewletManager/ViewletManager.js +9 -8
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/ViewletStates/ViewletStates.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/WebSocket/WebSocket.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Window/Window.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Window/Window.js +15 -9
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Workbench/Workbench.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Workbench/Workbench.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Worker/Worker.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Workspace/Workspace.ipc.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/parts/Workspace/Workspace.js +0 -0
- package/static/{e236e21 → 09bf9c7}/packages/renderer-worker/src/rendererWorkerMain.js +0 -0
- package/static/{e236e21 → 09bf9c7}/sounds/bell.oga +0 -0
- package/static/{e236e21 → 09bf9c7}/static/js/blob-util.js +0 -0
- package/static/{e236e21 → 09bf9c7}/static/js/js-base64.js +0 -0
- package/static/{e236e21 → 09bf9c7}/static/js/ky.js +0 -0
- package/static/{e236e21 → 09bf9c7}/static/js/p-min-delay.js +0 -0
- package/static/{e236e21 → 09bf9c7}/static/js/pretty-bytes.js +0 -0
- package/static/{e236e21 → 09bf9c7}/static/js/termterm.js +0 -0
- package/static/{e236e21 → 09bf9c7}/static/js/yoctodelay.js +0 -0
- package/static/index.html +7 -7
- package/static/manifest.json +2 -2
- package/static/serviceWorker.js +1 -1
- package/static/e236e21/packages/renderer-process/dist/ViewletExplorer.js.map +0 -1
- package/static/e236e21/packages/renderer-process/dist/ViewletProblems.js.map +0 -1
- package/static/e236e21/packages/renderer-process/dist/rendererProcessMain.js.map +0 -1
- package/static/e236e21/packages/renderer-worker/dist/rendererWorkerMain.js.map +0 -1
- package/static/e236e21/packages/renderer-worker/src/parts/ClipBoard/ClipBoard.js +0 -55
|
@@ -60,8 +60,9 @@ const MODULE_LISTENER = 73;
|
|
|
60
60
|
const MODULE_VIEWLET_SEARCH = 74;
|
|
61
61
|
const MODULE_VIEWLET_EDITOR_COMPLETION = 75;
|
|
62
62
|
const MODULE_VIEWLET_Locations = 76;
|
|
63
|
+
const MODULE_VIEWLET_PROBLEMS = 77;
|
|
63
64
|
|
|
64
|
-
const state$
|
|
65
|
+
const state$C = {
|
|
65
66
|
commands: Object.create(null),
|
|
66
67
|
pendingModules: Object.create(null),
|
|
67
68
|
};
|
|
@@ -186,6 +187,8 @@ const loadModule = (moduleId) => {
|
|
|
186
187
|
return Promise.resolve().then(function () { return ViewletEditorCompletion_ipc; })
|
|
187
188
|
case MODULE_VIEWLET_Locations:
|
|
188
189
|
return Promise.resolve().then(function () { return ViewletLocations_ipc; })
|
|
190
|
+
case MODULE_VIEWLET_PROBLEMS:
|
|
191
|
+
return Promise.resolve().then(function () { return ViewletProblems_ipc; })
|
|
189
192
|
default:
|
|
190
193
|
throw new Error(`unknown module "${moduleId}"`)
|
|
191
194
|
}
|
|
@@ -196,11 +199,11 @@ const initializeModule = (module) => {
|
|
|
196
199
|
};
|
|
197
200
|
|
|
198
201
|
const getOrLoadModule = (moduleId) => {
|
|
199
|
-
if (!state$
|
|
202
|
+
if (!state$C.pendingModules[moduleId]) {
|
|
200
203
|
const importPromise = loadModule(moduleId);
|
|
201
|
-
state$
|
|
204
|
+
state$C.pendingModules[moduleId] = importPromise.then(initializeModule);
|
|
202
205
|
}
|
|
203
|
-
return state$
|
|
206
|
+
return state$C.pendingModules[moduleId]
|
|
204
207
|
};
|
|
205
208
|
|
|
206
209
|
const getModuleId = (commandId) => {
|
|
@@ -739,6 +742,17 @@ const getModuleId = (commandId) => {
|
|
|
739
742
|
case 7409:
|
|
740
743
|
case 7410:
|
|
741
744
|
return MODULE_MENU
|
|
745
|
+
case 7550:
|
|
746
|
+
case 7551:
|
|
747
|
+
case 7552:
|
|
748
|
+
case 7553:
|
|
749
|
+
case 7554:
|
|
750
|
+
case 7555:
|
|
751
|
+
case 7556:
|
|
752
|
+
case 7557:
|
|
753
|
+
case 7558:
|
|
754
|
+
case 7559:
|
|
755
|
+
return MODULE_VIEWLET_PROBLEMS
|
|
742
756
|
case 7633:
|
|
743
757
|
case 7634:
|
|
744
758
|
case 7635:
|
|
@@ -880,20 +894,20 @@ const getModuleId = (commandId) => {
|
|
|
880
894
|
const loadCommand = (command) => getOrLoadModule(getModuleId(command));
|
|
881
895
|
|
|
882
896
|
const register$2 = (commandId, listener) => {
|
|
883
|
-
state$
|
|
897
|
+
state$C.commands[commandId] = listener;
|
|
884
898
|
};
|
|
885
899
|
|
|
886
900
|
const hasThrown = new Set();
|
|
887
901
|
|
|
888
902
|
const execute$1 = (command, ...args) => {
|
|
889
|
-
if (command in state$
|
|
890
|
-
return state$
|
|
903
|
+
if (command in state$C.commands) {
|
|
904
|
+
return state$C.commands[command](...args)
|
|
891
905
|
}
|
|
892
906
|
return (
|
|
893
907
|
loadCommand(command)
|
|
894
908
|
// TODO can skip then block in prod (only to prevent endless loop in dev)
|
|
895
909
|
.then(() => {
|
|
896
|
-
if (!(command in state$
|
|
910
|
+
if (!(command in state$C.commands)) {
|
|
897
911
|
if (hasThrown.has(command)) {
|
|
898
912
|
return
|
|
899
913
|
}
|
|
@@ -905,37 +919,37 @@ const execute$1 = (command, ...args) => {
|
|
|
905
919
|
)
|
|
906
920
|
};
|
|
907
921
|
|
|
908
|
-
const state$
|
|
922
|
+
const state$B = {
|
|
909
923
|
callbacks: Object.create(null),
|
|
910
924
|
onceListeners: new Set(),
|
|
911
925
|
id: 2,
|
|
912
926
|
};
|
|
913
927
|
|
|
914
928
|
const register$1 = (resolve, reject) => {
|
|
915
|
-
state$
|
|
929
|
+
state$B.callbacks[++state$B.id] = {
|
|
916
930
|
resolve,
|
|
917
931
|
reject,
|
|
918
932
|
};
|
|
919
|
-
return state$
|
|
933
|
+
return state$B.id
|
|
920
934
|
};
|
|
921
935
|
|
|
922
936
|
// TODO merge resolve and resolveEmpty
|
|
923
937
|
const resolve = (id, args) => {
|
|
924
|
-
if (!(id in state$
|
|
938
|
+
if (!(id in state$B.callbacks)) {
|
|
925
939
|
console.log(args);
|
|
926
940
|
console.warn(`callback ${id} may already be disposed`);
|
|
927
941
|
return
|
|
928
942
|
}
|
|
929
|
-
state$
|
|
930
|
-
delete state$
|
|
943
|
+
state$B.callbacks[id].resolve(args);
|
|
944
|
+
delete state$B.callbacks[id];
|
|
931
945
|
};
|
|
932
946
|
|
|
933
947
|
const reject = (id, error) => {
|
|
934
|
-
if (!(id in state$
|
|
948
|
+
if (!(id in state$B.callbacks)) {
|
|
935
949
|
console.warn(`callback ${id} may already be disposed`);
|
|
936
950
|
return
|
|
937
951
|
}
|
|
938
|
-
state$
|
|
952
|
+
state$B.callbacks[id].reject(error);
|
|
939
953
|
};
|
|
940
954
|
|
|
941
955
|
const create$u = (url, baton) => {
|
|
@@ -1025,16 +1039,16 @@ const preparePrettyError = (rawError) => {
|
|
|
1025
1039
|
};
|
|
1026
1040
|
|
|
1027
1041
|
// TODO state is actually not needed here, only for testing because jest doesn't support mocking esm
|
|
1028
|
-
const state$
|
|
1042
|
+
const state$A = {
|
|
1029
1043
|
pendingMessages: [],
|
|
1030
1044
|
send(message) {
|
|
1031
|
-
state$
|
|
1045
|
+
state$A.pendingMessages.push(message);
|
|
1032
1046
|
},
|
|
1033
1047
|
async receive(message) {
|
|
1034
1048
|
if (message.method) {
|
|
1035
1049
|
const result = await execute$1(message.method, ...message.params);
|
|
1036
1050
|
if (message.id) {
|
|
1037
|
-
state$
|
|
1051
|
+
state$A.send({
|
|
1038
1052
|
jsonrpc: '2.0',
|
|
1039
1053
|
id: message.id,
|
|
1040
1054
|
result,
|
|
@@ -1051,21 +1065,21 @@ const state$D = {
|
|
|
1051
1065
|
};
|
|
1052
1066
|
|
|
1053
1067
|
const listen$1 = () => {
|
|
1054
|
-
console.assert(state$
|
|
1068
|
+
console.assert(state$A.pendingMessages.length === 0);
|
|
1055
1069
|
{
|
|
1056
1070
|
// TODO replace this during build
|
|
1057
1071
|
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
|
|
1058
1072
|
const wsUrl = `${wsProtocol}//${location.host}`;
|
|
1059
|
-
create$u(wsUrl, state$
|
|
1073
|
+
create$u(wsUrl, state$A);
|
|
1060
1074
|
}
|
|
1061
1075
|
};
|
|
1062
1076
|
|
|
1063
1077
|
const send$2 = (method, ...params) => {
|
|
1064
|
-
send$3(state$
|
|
1078
|
+
send$3(state$A, method, ...params);
|
|
1065
1079
|
};
|
|
1066
1080
|
|
|
1067
1081
|
const invoke$2 = async (method, ...params) => {
|
|
1068
|
-
const responseMessage = await invoke$3(state$
|
|
1082
|
+
const responseMessage = await invoke$3(state$A, method, ...params);
|
|
1069
1083
|
if (responseMessage.error) {
|
|
1070
1084
|
const prettyError = preparePrettyError(responseMessage.error);
|
|
1071
1085
|
throw prettyError
|
|
@@ -1081,7 +1095,7 @@ const invoke$2 = async (method, ...params) => {
|
|
|
1081
1095
|
|
|
1082
1096
|
// TODO treeshake this function out when targeting electron
|
|
1083
1097
|
|
|
1084
|
-
const state$
|
|
1098
|
+
const state$z = {
|
|
1085
1099
|
cachedIsMobileOrTablet: undefined,
|
|
1086
1100
|
getPlatform() {
|
|
1087
1101
|
// @ts-ignore
|
|
@@ -1094,7 +1108,7 @@ const state$C = {
|
|
|
1094
1108
|
// @ts-ignore
|
|
1095
1109
|
{
|
|
1096
1110
|
// @ts-ignore
|
|
1097
|
-
return '/
|
|
1111
|
+
return '/09bf9c7'
|
|
1098
1112
|
}
|
|
1099
1113
|
},
|
|
1100
1114
|
isMobileOrTablet() {
|
|
@@ -1182,53 +1196,53 @@ const state$C = {
|
|
|
1182
1196
|
};
|
|
1183
1197
|
|
|
1184
1198
|
const isMobileOrTablet = () => {
|
|
1185
|
-
if (state$
|
|
1186
|
-
state$
|
|
1199
|
+
if (state$z.cachedIsMobileOrTablet === undefined) {
|
|
1200
|
+
state$z.cachedIsMobileOrTablet = state$z.isMobileOrTablet();
|
|
1187
1201
|
}
|
|
1188
|
-
return state$
|
|
1202
|
+
return state$z.cachedIsMobileOrTablet
|
|
1189
1203
|
};
|
|
1190
1204
|
|
|
1191
1205
|
const getExtensionsPath = () => {
|
|
1192
|
-
return state$
|
|
1206
|
+
return state$z.getExtensionsPath()
|
|
1193
1207
|
};
|
|
1194
1208
|
|
|
1195
1209
|
const getCachedExtensionsPath = () => {
|
|
1196
|
-
return state$
|
|
1210
|
+
return state$z.getCachedExtensionsPath()
|
|
1197
1211
|
};
|
|
1198
1212
|
|
|
1199
1213
|
const getMarketPlaceUrl = () => {
|
|
1200
|
-
return state$
|
|
1214
|
+
return state$z.getMarketPlaceUrl()
|
|
1201
1215
|
};
|
|
1202
1216
|
|
|
1203
1217
|
const getLogsDir = () => {
|
|
1204
|
-
return state$
|
|
1218
|
+
return state$z.getLogsDir()
|
|
1205
1219
|
};
|
|
1206
1220
|
|
|
1207
1221
|
const getUserSettingsPath = () => {
|
|
1208
|
-
return state$
|
|
1222
|
+
return state$z.getUserSettingsPath()
|
|
1209
1223
|
};
|
|
1210
1224
|
|
|
1211
1225
|
/**
|
|
1212
1226
|
* @returns {'electron'|'remote'|'web'|'test'}
|
|
1213
1227
|
*/
|
|
1214
1228
|
const getPlatform = () => {
|
|
1215
|
-
return state$
|
|
1229
|
+
return state$z.getPlatform()
|
|
1216
1230
|
};
|
|
1217
1231
|
|
|
1218
1232
|
const getAssetDir = () => {
|
|
1219
|
-
return state$
|
|
1233
|
+
return state$z.getAssetDir()
|
|
1220
1234
|
};
|
|
1221
1235
|
|
|
1222
1236
|
const getRecentlyOpenedPath = () => {
|
|
1223
|
-
return state$
|
|
1237
|
+
return state$z.getRecentlyOpenedPath()
|
|
1224
1238
|
};
|
|
1225
1239
|
|
|
1226
1240
|
const getConfigPath = () => {
|
|
1227
|
-
return state$
|
|
1241
|
+
return state$z.getConfigPath()
|
|
1228
1242
|
};
|
|
1229
1243
|
|
|
1230
1244
|
const getCachePath = () => {
|
|
1231
|
-
return state$
|
|
1245
|
+
return state$z.getCachePath()
|
|
1232
1246
|
};
|
|
1233
1247
|
|
|
1234
1248
|
const copy$2 = (protocol, source, target) => {
|
|
@@ -1320,27 +1334,27 @@ var FileSystemDisk = {
|
|
|
1320
1334
|
// pros
|
|
1321
1335
|
// 1. it decouples event emitter (e.g. Editor creation) from other module (Document syncing when editor was created)
|
|
1322
1336
|
|
|
1323
|
-
const state$
|
|
1337
|
+
const state$y = {
|
|
1324
1338
|
listenerMap: Object.create(null),
|
|
1325
1339
|
};
|
|
1326
1340
|
|
|
1327
1341
|
const emitEvent = async (event, ...args) => {
|
|
1328
|
-
const listeners = state$
|
|
1342
|
+
const listeners = state$y.listenerMap[event] || [];
|
|
1329
1343
|
for (const listener of listeners) {
|
|
1330
1344
|
await listener(...args);
|
|
1331
1345
|
}
|
|
1332
1346
|
};
|
|
1333
1347
|
|
|
1334
1348
|
const addListener = (event, fn) => {
|
|
1335
|
-
state$
|
|
1336
|
-
if (state$
|
|
1349
|
+
state$y.listenerMap[event] ||= [];
|
|
1350
|
+
if (state$y.listenerMap[event].includes(fn)) {
|
|
1337
1351
|
return
|
|
1338
1352
|
}
|
|
1339
|
-
state$
|
|
1353
|
+
state$y.listenerMap[event].push(fn);
|
|
1340
1354
|
};
|
|
1341
1355
|
|
|
1342
1356
|
const removeListener$1 = (event, fn) => {
|
|
1343
|
-
const listeners = state$
|
|
1357
|
+
const listeners = state$y.listenerMap[event];
|
|
1344
1358
|
if (!listeners) {
|
|
1345
1359
|
console.info(
|
|
1346
1360
|
`[info] listener for event ${event} is not registered and cannot be unregistered`
|
|
@@ -1350,101 +1364,105 @@ const removeListener$1 = (event, fn) => {
|
|
|
1350
1364
|
const index = listeners.indexOf(fn);
|
|
1351
1365
|
listeners.splice(index, 1);
|
|
1352
1366
|
if (listeners.length === 0) {
|
|
1353
|
-
delete state$
|
|
1367
|
+
delete state$y.listenerMap[event];
|
|
1354
1368
|
}
|
|
1355
1369
|
};
|
|
1356
1370
|
|
|
1357
1371
|
/* istanbul ignore file */
|
|
1358
1372
|
|
|
1359
|
-
const state$
|
|
1373
|
+
const state$x = {
|
|
1360
1374
|
pendingMessages: [],
|
|
1361
1375
|
/**
|
|
1362
|
-
*
|
|
1363
|
-
* @param {any} message
|
|
1364
|
-
* @returns {void}
|
|
1376
|
+
* @type {any}
|
|
1365
1377
|
*/
|
|
1366
|
-
|
|
1367
|
-
throw new Error('not implemented')
|
|
1368
|
-
},
|
|
1369
|
-
// TODO renderer process should only be able send events
|
|
1370
|
-
// should not be able to invoke callbacks
|
|
1371
|
-
handleMessage(message) {
|
|
1372
|
-
switch (message[0]) {
|
|
1373
|
-
case 67330:
|
|
1374
|
-
case 67331:
|
|
1375
|
-
resolve(message[1], message[2]);
|
|
1376
|
-
break
|
|
1377
|
-
default:
|
|
1378
|
-
execute$1(...message);
|
|
1379
|
-
break
|
|
1380
|
-
}
|
|
1381
|
-
},
|
|
1382
|
-
sendAndTransfer(message, transferables) {},
|
|
1378
|
+
ipc: undefined,
|
|
1383
1379
|
};
|
|
1384
1380
|
|
|
1385
1381
|
const handleMessageFromRendererProcess = (event) => {
|
|
1386
|
-
|
|
1382
|
+
const message = event.data;
|
|
1383
|
+
switch (message[0]) {
|
|
1384
|
+
case 67330:
|
|
1385
|
+
case 67331:
|
|
1386
|
+
resolve(message[1], message[2]);
|
|
1387
|
+
break
|
|
1388
|
+
default:
|
|
1389
|
+
execute$1(...message);
|
|
1390
|
+
break
|
|
1391
|
+
}
|
|
1387
1392
|
};
|
|
1388
1393
|
|
|
1389
1394
|
const listenModuleWorker = () => {
|
|
1390
1395
|
onmessage = handleMessageFromRendererProcess;
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1396
|
+
return {
|
|
1397
|
+
send(message) {
|
|
1398
|
+
postMessage(message);
|
|
1399
|
+
},
|
|
1400
|
+
sendAndTransfer(message, transferables) {
|
|
1401
|
+
postMessage(message, transferables);
|
|
1402
|
+
},
|
|
1403
|
+
}
|
|
1395
1404
|
};
|
|
1396
1405
|
|
|
1397
1406
|
const listenMessagePort = () => {
|
|
1398
1407
|
const messageChannel = new MessageChannel();
|
|
1399
1408
|
messageChannel.port1.onmessage = handleMessageFromRendererProcess;
|
|
1400
|
-
state$A.send = (message) => {
|
|
1401
|
-
messageChannel.port1.postMessage(message);
|
|
1402
|
-
};
|
|
1403
|
-
state$A.sendAndTransfer = (message, transferables) => {
|
|
1404
|
-
messageChannel.port1.postMessage(message, transferables);
|
|
1405
|
-
};
|
|
1406
1409
|
globalThis.acceptPort(messageChannel.port2);
|
|
1410
|
+
return {
|
|
1411
|
+
send(message) {
|
|
1412
|
+
messageChannel.port1.postMessage(message);
|
|
1413
|
+
},
|
|
1414
|
+
sendAndTransfer(message, transferables) {
|
|
1415
|
+
messageChannel.port1.postMessage(message, transferables);
|
|
1416
|
+
},
|
|
1417
|
+
}
|
|
1407
1418
|
};
|
|
1408
1419
|
|
|
1409
1420
|
const listenReferencePort = () => {
|
|
1410
1421
|
const referencePort = {
|
|
1411
1422
|
onmessage(message, transferables) {},
|
|
1412
|
-
postMessage: state$
|
|
1423
|
+
postMessage: state$x.handleMessage,
|
|
1413
1424
|
};
|
|
1414
1425
|
// TODO get rid of extra data wrapper
|
|
1415
|
-
state$A.send = (message) => {
|
|
1416
|
-
referencePort.onmessage({ data: message });
|
|
1417
|
-
};
|
|
1418
|
-
state$A.sendAndTransfer = ({ data: message }, transferables) => {
|
|
1419
|
-
referencePort.onmessage(message, transferables);
|
|
1420
|
-
};
|
|
1421
1426
|
globalThis.acceptReferencePort(referencePort);
|
|
1427
|
+
return {
|
|
1428
|
+
send(message) {
|
|
1429
|
+
referencePort.onmessage({ data: message });
|
|
1430
|
+
},
|
|
1431
|
+
sendAndTransfer({ data: message }, transferables) {
|
|
1432
|
+
referencePort.onmessage(message, transferables);
|
|
1433
|
+
},
|
|
1434
|
+
}
|
|
1422
1435
|
};
|
|
1423
1436
|
|
|
1424
|
-
const
|
|
1425
|
-
console.assert(state$A.pendingMessages.length === 0);
|
|
1437
|
+
const getIpc = () => {
|
|
1426
1438
|
// TODO tree-shake out if/else in prod
|
|
1427
1439
|
if (globalThis.acceptPort) {
|
|
1428
|
-
listenMessagePort()
|
|
1440
|
+
return listenMessagePort()
|
|
1429
1441
|
} else if (globalThis.acceptReferencePort) {
|
|
1430
|
-
listenReferencePort()
|
|
1442
|
+
return listenReferencePort()
|
|
1431
1443
|
} else {
|
|
1432
|
-
listenModuleWorker()
|
|
1444
|
+
return listenModuleWorker()
|
|
1433
1445
|
}
|
|
1434
1446
|
};
|
|
1435
1447
|
|
|
1448
|
+
const listen = () => {
|
|
1449
|
+
console.assert(state$x.pendingMessages.length === 0);
|
|
1450
|
+
const ipc = getIpc();
|
|
1451
|
+
state$x.ipc = ipc;
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1436
1454
|
/**
|
|
1437
1455
|
* @deprecated use invoke instead
|
|
1438
1456
|
* @param {*} message
|
|
1439
1457
|
*/
|
|
1440
1458
|
const send$1 = (message) => {
|
|
1441
|
-
state$
|
|
1459
|
+
state$x.ipc.send(message);
|
|
1442
1460
|
};
|
|
1443
1461
|
|
|
1444
1462
|
const invoke$1 = async (method, ...params) => {
|
|
1445
1463
|
const responseMessage = await new Promise((resolve, reject) => {
|
|
1446
1464
|
const callbackId = register$1(resolve, reject);
|
|
1447
|
-
state$
|
|
1465
|
+
state$x.ipc.send([
|
|
1448
1466
|
/* RendererWorker.invoke */ 909090,
|
|
1449
1467
|
/* callbackId */ callbackId,
|
|
1450
1468
|
/* method */ method,
|
|
@@ -1479,38 +1497,44 @@ const reload = async () => {
|
|
|
1479
1497
|
}
|
|
1480
1498
|
if (getPlatform() === 'electron') {
|
|
1481
1499
|
// TODO should use invoke here
|
|
1482
|
-
|
|
1500
|
+
await invoke$2(
|
|
1501
|
+
/* Electron.windowReload */ 'Electron.windowReload'
|
|
1502
|
+
);
|
|
1483
1503
|
}
|
|
1484
1504
|
};
|
|
1485
1505
|
|
|
1486
|
-
const minimize = () => {
|
|
1506
|
+
const minimize = async () => {
|
|
1487
1507
|
if (getPlatform() === 'web') {
|
|
1488
1508
|
return
|
|
1489
1509
|
}
|
|
1490
|
-
|
|
1510
|
+
await invoke$2(
|
|
1511
|
+
/* Electron.windowMinimize */ 'Electron.windowMinimize'
|
|
1512
|
+
);
|
|
1491
1513
|
};
|
|
1492
1514
|
|
|
1493
|
-
const maximize = () => {
|
|
1515
|
+
const maximize = async () => {
|
|
1494
1516
|
if (getPlatform() === 'web') {
|
|
1495
1517
|
return
|
|
1496
1518
|
}
|
|
1497
|
-
|
|
1519
|
+
await invoke$2(
|
|
1520
|
+
/* Electron.windowMaximize */ 'Electron.windowMaximize'
|
|
1521
|
+
);
|
|
1498
1522
|
};
|
|
1499
1523
|
|
|
1500
|
-
const unmaximize = () => {
|
|
1524
|
+
const unmaximize = async () => {
|
|
1501
1525
|
if (getPlatform() === 'web') {
|
|
1502
1526
|
return
|
|
1503
1527
|
}
|
|
1504
|
-
|
|
1528
|
+
await invoke$2(
|
|
1505
1529
|
/* Electron.windowUnmaximize */ 'Electron.windowUnMaximize'
|
|
1506
1530
|
);
|
|
1507
1531
|
};
|
|
1508
1532
|
|
|
1509
|
-
const close$4 = () => {
|
|
1533
|
+
const close$4 = async () => {
|
|
1510
1534
|
if (getPlatform() === 'web') {
|
|
1511
1535
|
return
|
|
1512
1536
|
}
|
|
1513
|
-
|
|
1537
|
+
await invoke$2(/* Electron.windowClose */ 'Electron.windowClose');
|
|
1514
1538
|
};
|
|
1515
1539
|
|
|
1516
1540
|
const exit = async () => {
|
|
@@ -1530,7 +1554,7 @@ const openNew = async () => {
|
|
|
1530
1554
|
);
|
|
1531
1555
|
};
|
|
1532
1556
|
|
|
1533
|
-
const state$
|
|
1557
|
+
const state$w = {
|
|
1534
1558
|
workspacePath: '',
|
|
1535
1559
|
homeDir: '',
|
|
1536
1560
|
pathSeparator: '',
|
|
@@ -1543,14 +1567,14 @@ const state$z = {
|
|
|
1543
1567
|
*/
|
|
1544
1568
|
const setPath = async (path) => {
|
|
1545
1569
|
// TODO not in electron
|
|
1546
|
-
state$
|
|
1570
|
+
state$w.workspacePath = path;
|
|
1547
1571
|
await onWorkspaceChange();
|
|
1548
1572
|
};
|
|
1549
1573
|
|
|
1550
1574
|
const setUri = async (uri) => {
|
|
1551
1575
|
const path = uri.slice('file://'.length);
|
|
1552
|
-
state$
|
|
1553
|
-
state$
|
|
1576
|
+
state$w.workspacePath = path;
|
|
1577
|
+
state$w.workspaceUri = uri;
|
|
1554
1578
|
await onWorkspaceChange();
|
|
1555
1579
|
};
|
|
1556
1580
|
|
|
@@ -1624,7 +1648,7 @@ const getResolvedRoot = async () => {
|
|
|
1624
1648
|
};
|
|
1625
1649
|
|
|
1626
1650
|
const getTitle = (workspacePath) => {
|
|
1627
|
-
const pathSeparator = state$
|
|
1651
|
+
const pathSeparator = state$w.pathSeparator;
|
|
1628
1652
|
return workspacePath.slice(workspacePath.lastIndexOf(pathSeparator) + 1)
|
|
1629
1653
|
};
|
|
1630
1654
|
|
|
@@ -1636,28 +1660,28 @@ const getPathName = (workspacePath) => {
|
|
|
1636
1660
|
};
|
|
1637
1661
|
|
|
1638
1662
|
const onWorkspaceChange = async () => {
|
|
1639
|
-
const title = getTitle(state$
|
|
1663
|
+
const title = getTitle(state$w.workspacePath);
|
|
1640
1664
|
await setTitle(title);
|
|
1641
1665
|
if (getPlatform() === 'web' || getPlatform() === 'remote') {
|
|
1642
|
-
const pathName = getPathName(state$
|
|
1666
|
+
const pathName = getPathName(state$w.workspacePath);
|
|
1643
1667
|
await setPathName(pathName);
|
|
1644
1668
|
}
|
|
1645
|
-
await emitEvent('workspace.change', state$
|
|
1669
|
+
await emitEvent('workspace.change', state$w.workspacePath);
|
|
1646
1670
|
};
|
|
1647
1671
|
|
|
1648
1672
|
const hydrate$b = async () => {
|
|
1649
1673
|
const resolvedRoot = await getResolvedRoot();
|
|
1650
1674
|
// TODO why is this if statement here?
|
|
1651
|
-
if (state$
|
|
1652
|
-
state$
|
|
1675
|
+
if (state$w.homeDir !== resolvedRoot.homeDir) {
|
|
1676
|
+
state$w.homeDir = resolvedRoot.homeDir;
|
|
1653
1677
|
}
|
|
1654
1678
|
// TODO how to check that path from renderer process is valid?
|
|
1655
1679
|
// TODO also need to check whether it is a folder or file
|
|
1656
|
-
state$
|
|
1657
|
-
state$
|
|
1658
|
-
state$
|
|
1659
|
-
state$
|
|
1660
|
-
state$
|
|
1680
|
+
state$w.workspacePath = resolvedRoot.path;
|
|
1681
|
+
state$w.homeDir = resolvedRoot.homeDir;
|
|
1682
|
+
state$w.pathSeparator = resolvedRoot.pathSeparator;
|
|
1683
|
+
state$w.workspaceUri = resolvedRoot.uri;
|
|
1684
|
+
state$w.source = resolvedRoot.source;
|
|
1661
1685
|
await onWorkspaceChange();
|
|
1662
1686
|
};
|
|
1663
1687
|
|
|
@@ -1666,30 +1690,30 @@ const hydrate$b = async () => {
|
|
|
1666
1690
|
* @returns
|
|
1667
1691
|
*/
|
|
1668
1692
|
const getWorkspacePath = () => {
|
|
1669
|
-
return state$
|
|
1693
|
+
return state$w.workspacePath
|
|
1670
1694
|
};
|
|
1671
1695
|
|
|
1672
1696
|
const getHomeDir = () => {
|
|
1673
|
-
return state$
|
|
1697
|
+
return state$w.homeDir
|
|
1674
1698
|
};
|
|
1675
1699
|
|
|
1676
1700
|
// TODO this should be in FileSystem module
|
|
1677
1701
|
const pathBaseName = (path) => {
|
|
1678
|
-
const pathSeparator = state$
|
|
1702
|
+
const pathSeparator = state$w.pathSeparator;
|
|
1679
1703
|
return path.slice(path.lastIndexOf(pathSeparator) + 1)
|
|
1680
1704
|
};
|
|
1681
1705
|
|
|
1682
1706
|
// TODO this should be in FileSystem module
|
|
1683
1707
|
const pathDirName = (path) => {
|
|
1684
|
-
const pathSeparator = state$
|
|
1708
|
+
const pathSeparator = state$w.pathSeparator;
|
|
1685
1709
|
return path.slice(0, path.lastIndexOf(pathSeparator))
|
|
1686
1710
|
};
|
|
1687
1711
|
|
|
1688
1712
|
const getAbsolutePath = (relativePath) => {
|
|
1689
1713
|
if (relativePath.startsWith('./')) {
|
|
1690
|
-
return `${state$
|
|
1714
|
+
return `${state$w.workspacePath}/${relativePath.slice(2)}` // TODO support windows paths
|
|
1691
1715
|
}
|
|
1692
|
-
return `${state$
|
|
1716
|
+
return `${state$w.workspacePath}/${relativePath}` // TODO support windows paths
|
|
1693
1717
|
};
|
|
1694
1718
|
|
|
1695
1719
|
// TODO treeshake out this whole module in production
|
|
@@ -1906,7 +1930,7 @@ const readGitHubDirectory = (owner, repo, ref, path) => {
|
|
|
1906
1930
|
|
|
1907
1931
|
// based on https://github.com/conwnet/github1s/blob/master/extensions/github1s/src/interfaces/github-api-rest.ts
|
|
1908
1932
|
|
|
1909
|
-
const state$
|
|
1933
|
+
const state$v = {
|
|
1910
1934
|
cache: Object.create(null),
|
|
1911
1935
|
};
|
|
1912
1936
|
|
|
@@ -1965,7 +1989,7 @@ const readDirWithFileTypes$4 = async (protocol, path) => {
|
|
|
1965
1989
|
'HEAD',
|
|
1966
1990
|
relativePath
|
|
1967
1991
|
);
|
|
1968
|
-
state$
|
|
1992
|
+
state$v.cache[relativeUri] = githubDirents;
|
|
1969
1993
|
const dirents = toDirents(githubDirents);
|
|
1970
1994
|
return dirents
|
|
1971
1995
|
};
|
|
@@ -1981,7 +2005,7 @@ const getPathSeparator$5 = () => {
|
|
|
1981
2005
|
|
|
1982
2006
|
var FileSystemGitHub = {
|
|
1983
2007
|
__proto__: null,
|
|
1984
|
-
state: state$
|
|
2008
|
+
state: state$v,
|
|
1985
2009
|
readFile: readFile$4,
|
|
1986
2010
|
readDirWithFileTypes: readDirWithFileTypes$4,
|
|
1987
2011
|
getBlobUrl: getBlobUrl$2,
|
|
@@ -1993,7 +2017,7 @@ const STATUS_LOADING = 1;
|
|
|
1993
2017
|
const STATUS_RUNNING = 2;
|
|
1994
2018
|
const STATUS_ERROR = 3;
|
|
1995
2019
|
|
|
1996
|
-
const state$
|
|
2020
|
+
const state$u = {
|
|
1997
2021
|
status: STATUS_OFF, // TODO should be an enum state
|
|
1998
2022
|
/**
|
|
1999
2023
|
* @type {any[]}
|
|
@@ -2008,18 +2032,18 @@ const state$x = {
|
|
|
2008
2032
|
};
|
|
2009
2033
|
|
|
2010
2034
|
const startExtensionHost = async () => {
|
|
2011
|
-
switch (state$
|
|
2035
|
+
switch (state$u.status) {
|
|
2012
2036
|
case STATUS_LOADING:
|
|
2013
2037
|
case STATUS_RUNNING:
|
|
2014
2038
|
throw new Error('extension host is already starting')
|
|
2015
2039
|
}
|
|
2016
|
-
state$
|
|
2040
|
+
state$u.status = STATUS_LOADING;
|
|
2017
2041
|
await invoke$2(/* ExtensionHost.start */ 'ExtensionHost.start');
|
|
2018
|
-
state$
|
|
2019
|
-
for (const readyCallback of state$
|
|
2042
|
+
state$u.status = STATUS_RUNNING;
|
|
2043
|
+
for (const readyCallback of state$u.readyCallbacks) {
|
|
2020
2044
|
readyCallback();
|
|
2021
2045
|
}
|
|
2022
|
-
state$
|
|
2046
|
+
state$u.readyCallbacks = [];
|
|
2023
2047
|
// TODO handle error
|
|
2024
2048
|
await invoke$2(
|
|
2025
2049
|
/* ExtensionHost.setWorkspaceRoot */ 'ExtensionHost.setWorkspaceRoot',
|
|
@@ -2038,7 +2062,7 @@ var ExtensionHostCore = {
|
|
|
2038
2062
|
STATUS_LOADING: STATUS_LOADING,
|
|
2039
2063
|
STATUS_RUNNING: STATUS_RUNNING,
|
|
2040
2064
|
STATUS_ERROR: STATUS_ERROR,
|
|
2041
|
-
state: state$
|
|
2065
|
+
state: state$u,
|
|
2042
2066
|
startExtensionHost: startExtensionHost,
|
|
2043
2067
|
invoke: invoke
|
|
2044
2068
|
};
|
|
@@ -2089,7 +2113,7 @@ const getLanguageConfiguration$1 = async (languageId) => {
|
|
|
2089
2113
|
|
|
2090
2114
|
// TODO merge all of this with extension host languages module
|
|
2091
2115
|
|
|
2092
|
-
const state$
|
|
2116
|
+
const state$t = {
|
|
2093
2117
|
languages: [],
|
|
2094
2118
|
loadState: false,
|
|
2095
2119
|
isHydrating: false,
|
|
@@ -2098,7 +2122,7 @@ const state$w = {
|
|
|
2098
2122
|
const getLanguageId = (path) => {
|
|
2099
2123
|
string(path);
|
|
2100
2124
|
const extension = path.slice(path.lastIndexOf('.'));
|
|
2101
|
-
for (const language of state$
|
|
2125
|
+
for (const language of state$t.languages) {
|
|
2102
2126
|
if (language.extensions && language.extensions.includes(extension)) {
|
|
2103
2127
|
return language.id
|
|
2104
2128
|
}
|
|
@@ -2113,20 +2137,20 @@ const getLanguages = () => {
|
|
|
2113
2137
|
};
|
|
2114
2138
|
|
|
2115
2139
|
const hydrate$a = async () => {
|
|
2116
|
-
state$
|
|
2140
|
+
state$t.isHydrating = true;
|
|
2117
2141
|
// TODO handle error
|
|
2118
2142
|
// TODO main parts should have nothing todo with shared process -> only sub components
|
|
2119
|
-
state$
|
|
2143
|
+
state$t.languages = await getLanguages();
|
|
2120
2144
|
await emitEvent('languages.changed');
|
|
2121
|
-
state$
|
|
2145
|
+
state$t.loaded = true;
|
|
2122
2146
|
};
|
|
2123
2147
|
|
|
2124
2148
|
const hasLoaded = () => {
|
|
2125
|
-
return state$
|
|
2149
|
+
return state$t.loaded
|
|
2126
2150
|
};
|
|
2127
2151
|
|
|
2128
2152
|
const waitForLoad = async () => {
|
|
2129
|
-
if (state$
|
|
2153
|
+
if (state$t.isHydrating) {
|
|
2130
2154
|
await new Promise((resolve) => {
|
|
2131
2155
|
const handleLanguageChange = (editor, languageId) => {
|
|
2132
2156
|
resolve();
|
|
@@ -2153,7 +2177,7 @@ const getLanguageConfiguration = async (editor) => {
|
|
|
2153
2177
|
return languageConfiguration
|
|
2154
2178
|
};
|
|
2155
2179
|
|
|
2156
|
-
const state$
|
|
2180
|
+
const state$s = {
|
|
2157
2181
|
extensionPromiseCache: Object.create(null),
|
|
2158
2182
|
};
|
|
2159
2183
|
|
|
@@ -2169,27 +2193,27 @@ const activateExtension = async (extension) => {
|
|
|
2169
2193
|
if (!extension.main) {
|
|
2170
2194
|
return
|
|
2171
2195
|
}
|
|
2172
|
-
if (!state$
|
|
2196
|
+
if (!state$s.extensionPromiseCache[extension.id]) {
|
|
2173
2197
|
const activatableExtension = toActivatableExtension(extension);
|
|
2174
|
-
state$
|
|
2198
|
+
state$s.extensionPromiseCache[extension.id] = invoke$2(
|
|
2175
2199
|
/* ExtensionHost.enableExtension */ 'ExtensionHost.enableExtension',
|
|
2176
2200
|
/* activatableExtension */ activatableExtension
|
|
2177
2201
|
);
|
|
2178
2202
|
}
|
|
2179
2203
|
// TODO what if activation fails or extension is restarted ot extension host is restarted?
|
|
2180
|
-
return state$
|
|
2204
|
+
return state$s.extensionPromiseCache[extension.id]
|
|
2181
2205
|
};
|
|
2182
2206
|
|
|
2183
2207
|
const ensureExtensionHostIsStarted = async () => {
|
|
2184
|
-
switch (state$
|
|
2208
|
+
switch (state$u.status) {
|
|
2185
2209
|
case STATUS_OFF:
|
|
2186
|
-
state$
|
|
2210
|
+
state$u.extensionHostPromise =
|
|
2187
2211
|
startExtensionHost();
|
|
2188
|
-
await state$
|
|
2212
|
+
await state$u.extensionHostPromise;
|
|
2189
2213
|
await activateByEvent('onStartupFinished');
|
|
2190
2214
|
break
|
|
2191
2215
|
case STATUS_LOADING:
|
|
2192
|
-
await state$
|
|
2216
|
+
await state$u.extensionHostPromise;
|
|
2193
2217
|
break
|
|
2194
2218
|
case STATUS_RUNNING:
|
|
2195
2219
|
break
|
|
@@ -2544,7 +2568,7 @@ files['/sample-folder/a.txt'] = '';
|
|
|
2544
2568
|
files['/sample-folder/b.txt'] = '';
|
|
2545
2569
|
files['/sample-folder/c.txt'] = '';
|
|
2546
2570
|
|
|
2547
|
-
const state$
|
|
2571
|
+
const state$r = {
|
|
2548
2572
|
watchers: Object.create(null),
|
|
2549
2573
|
saveListeners: [],
|
|
2550
2574
|
};
|
|
@@ -2636,7 +2660,7 @@ const getPathSeparator$3 = () => {
|
|
|
2636
2660
|
|
|
2637
2661
|
var FileSystemWeb = {
|
|
2638
2662
|
__proto__: null,
|
|
2639
|
-
state: state$
|
|
2663
|
+
state: state$r,
|
|
2640
2664
|
readFile: readFile$2,
|
|
2641
2665
|
remove: remove$2,
|
|
2642
2666
|
rename: rename$3,
|
|
@@ -2721,19 +2745,19 @@ const getProtocol = (uri) => {
|
|
|
2721
2745
|
return 'file'
|
|
2722
2746
|
};
|
|
2723
2747
|
|
|
2724
|
-
const state$
|
|
2748
|
+
const state$q = {
|
|
2725
2749
|
fileSystems: Object.create(null),
|
|
2726
2750
|
};
|
|
2727
2751
|
|
|
2728
2752
|
// TODO extension host should be able to register arbitrary protocols (except app, http, https, file, )
|
|
2729
|
-
state$
|
|
2730
|
-
state$
|
|
2731
|
-
state$
|
|
2732
|
-
state$
|
|
2733
|
-
state$
|
|
2753
|
+
state$q.fileSystems['memfs'] = FileSystemExtensionHost;
|
|
2754
|
+
state$q.fileSystems['app'] = FileSystemApp;
|
|
2755
|
+
state$q.fileSystems['github'] = FileSystemGitHub;
|
|
2756
|
+
state$q.fileSystems['web'] = FileSystemWeb;
|
|
2757
|
+
state$q.fileSystems['data'] = FileSystemData;
|
|
2734
2758
|
|
|
2735
2759
|
const getFileSystem = (protocol) => {
|
|
2736
|
-
return state$
|
|
2760
|
+
return state$q.fileSystems[protocol] || FileSystemDisk
|
|
2737
2761
|
};
|
|
2738
2762
|
|
|
2739
2763
|
const readFile = (uri) => {
|
|
@@ -2804,7 +2828,7 @@ const parse = (content) => {
|
|
|
2804
2828
|
}
|
|
2805
2829
|
};
|
|
2806
2830
|
|
|
2807
|
-
const state$
|
|
2831
|
+
const state$p = Object.create(null);
|
|
2808
2832
|
|
|
2809
2833
|
const openSettingsJson = async () => {
|
|
2810
2834
|
await execute$1(/* Main.openUri */ 97, /* uri */ 'app://settings.json');
|
|
@@ -2845,7 +2869,7 @@ const hydrate$9 = async () => {
|
|
|
2845
2869
|
// TODO should configuration be together with all other preferences (e.g. selecting color theme code is not needed on startup)
|
|
2846
2870
|
// TODO probably not all preferences need to be kept in memory
|
|
2847
2871
|
const preferences = await getPreferences();
|
|
2848
|
-
Object.assign(state$
|
|
2872
|
+
Object.assign(state$p, preferences);
|
|
2849
2873
|
|
|
2850
2874
|
const styles = [];
|
|
2851
2875
|
const fontSize = preferences['editor.fontSize'];
|
|
@@ -2875,13 +2899,13 @@ ${styles.join('\n')}
|
|
|
2875
2899
|
};
|
|
2876
2900
|
|
|
2877
2901
|
const get = (key) => {
|
|
2878
|
-
return state$
|
|
2902
|
+
return state$p[key]
|
|
2879
2903
|
};
|
|
2880
2904
|
|
|
2881
2905
|
const set = async (key, value) => {
|
|
2882
|
-
state$
|
|
2906
|
+
state$p[key] = value;
|
|
2883
2907
|
if (getPlatform() === 'web') {
|
|
2884
|
-
const preferences = { ...state$
|
|
2908
|
+
const preferences = { ...state$p, [key]: value };
|
|
2885
2909
|
await execute$1(
|
|
2886
2910
|
/* LocalStorage.setJson */ 6901,
|
|
2887
2911
|
/* key */ 'preferences',
|
|
@@ -2889,7 +2913,7 @@ const set = async (key, value) => {
|
|
|
2889
2913
|
);
|
|
2890
2914
|
return
|
|
2891
2915
|
}
|
|
2892
|
-
const content = stringify(state$
|
|
2916
|
+
const content = stringify(state$p);
|
|
2893
2917
|
await writeFile(`app://settings.json`, content);
|
|
2894
2918
|
};
|
|
2895
2919
|
|
|
@@ -2996,7 +3020,7 @@ const hydrate$8 = async () => {
|
|
|
2996
3020
|
}
|
|
2997
3021
|
};
|
|
2998
3022
|
|
|
2999
|
-
const state$
|
|
3023
|
+
const state$o = {
|
|
3000
3024
|
seenFiles: [],
|
|
3001
3025
|
seenFolders: [],
|
|
3002
3026
|
hasWarned: [],
|
|
@@ -3023,7 +3047,7 @@ const getExtension = (file) => {
|
|
|
3023
3047
|
};
|
|
3024
3048
|
|
|
3025
3049
|
const getFileIcon = (file) => {
|
|
3026
|
-
const iconTheme = state$
|
|
3050
|
+
const iconTheme = state$o.iconTheme;
|
|
3027
3051
|
if (!iconTheme) {
|
|
3028
3052
|
return ''
|
|
3029
3053
|
}
|
|
@@ -3045,7 +3069,7 @@ const getFileIcon = (file) => {
|
|
|
3045
3069
|
};
|
|
3046
3070
|
|
|
3047
3071
|
const getFolderIcon = (folder) => {
|
|
3048
|
-
const iconTheme = state$
|
|
3072
|
+
const iconTheme = state$o.iconTheme;
|
|
3049
3073
|
if (!iconTheme || !iconTheme.folderNames) {
|
|
3050
3074
|
return ''
|
|
3051
3075
|
}
|
|
@@ -3057,7 +3081,7 @@ const getFolderIcon = (folder) => {
|
|
|
3057
3081
|
};
|
|
3058
3082
|
|
|
3059
3083
|
const getFolderIconExpanded = (folder) => {
|
|
3060
|
-
const iconTheme = state$
|
|
3084
|
+
const iconTheme = state$o.iconTheme;
|
|
3061
3085
|
if (!iconTheme) {
|
|
3062
3086
|
return ''
|
|
3063
3087
|
}
|
|
@@ -3129,8 +3153,8 @@ const hydrate$7 = async () => {
|
|
|
3129
3153
|
|
|
3130
3154
|
const iconThemeId = get('icon-theme') || 'vscode-icons';
|
|
3131
3155
|
const iconTheme = await getIconThemeJson(iconThemeId);
|
|
3132
|
-
state$
|
|
3133
|
-
state$
|
|
3156
|
+
state$o.iconTheme = iconTheme.json;
|
|
3157
|
+
state$o.extensionPath = iconTheme.extensionPath;
|
|
3134
3158
|
|
|
3135
3159
|
const iconThemeCss = getIconThemeCss2(iconTheme);
|
|
3136
3160
|
await invoke$1(
|
|
@@ -3202,7 +3226,7 @@ const printError = (error) => {
|
|
|
3202
3226
|
};
|
|
3203
3227
|
|
|
3204
3228
|
// TODO state is not needed here but because jest doesn't support mocking for esm yet this is a workaround
|
|
3205
|
-
const state$
|
|
3229
|
+
const state$n = {
|
|
3206
3230
|
async handleError(error) {
|
|
3207
3231
|
printError(error);
|
|
3208
3232
|
const enhancedErrorMessage = enhanceErrorMessage(error);
|
|
@@ -3223,19 +3247,19 @@ const state$q = {
|
|
|
3223
3247
|
};
|
|
3224
3248
|
|
|
3225
3249
|
const handleError$1 = async (error) => {
|
|
3226
|
-
await state$
|
|
3250
|
+
await state$n.handleError(error);
|
|
3227
3251
|
};
|
|
3228
3252
|
|
|
3229
3253
|
const showErrorDialog = async (error) => {
|
|
3230
|
-
await state$
|
|
3254
|
+
await state$n.showErrorDialog(error);
|
|
3231
3255
|
};
|
|
3232
3256
|
|
|
3233
3257
|
const warn = (...args) => {
|
|
3234
3258
|
const stringified = JSON.stringify(args);
|
|
3235
|
-
if (state$
|
|
3259
|
+
if (state$n.seenWarnings.includes(stringified)) {
|
|
3236
3260
|
return
|
|
3237
3261
|
}
|
|
3238
|
-
state$
|
|
3262
|
+
state$n.seenWarnings.push(stringified);
|
|
3239
3263
|
console.warn(...args);
|
|
3240
3264
|
};
|
|
3241
3265
|
|
|
@@ -3277,7 +3301,7 @@ const handleKeyBinding = async (keyBinding) => {
|
|
|
3277
3301
|
}
|
|
3278
3302
|
};
|
|
3279
3303
|
|
|
3280
|
-
const state$
|
|
3304
|
+
const state$m = {
|
|
3281
3305
|
instances: Object.create(null),
|
|
3282
3306
|
modules: Object.create(null),
|
|
3283
3307
|
};
|
|
@@ -3286,10 +3310,10 @@ const state$p = {
|
|
|
3286
3310
|
* @deprecated
|
|
3287
3311
|
*/
|
|
3288
3312
|
const send = (id, method, ...args) => {
|
|
3289
|
-
const instance = state$
|
|
3313
|
+
const instance = state$m.instances[id];
|
|
3290
3314
|
if (!instance) {
|
|
3291
3315
|
console.info('instance disposed', { id, method, args });
|
|
3292
|
-
console.info(state$
|
|
3316
|
+
console.info(state$m.instances);
|
|
3293
3317
|
return
|
|
3294
3318
|
}
|
|
3295
3319
|
const fn$1 = instance.factory[method];
|
|
@@ -3305,7 +3329,7 @@ const dispose$p = async (id) => {
|
|
|
3305
3329
|
console.warn('no instance to dispose');
|
|
3306
3330
|
return
|
|
3307
3331
|
}
|
|
3308
|
-
const instance = state$
|
|
3332
|
+
const instance = state$m.instances[id];
|
|
3309
3333
|
if (!instance) {
|
|
3310
3334
|
console.info('instance may already be disposed');
|
|
3311
3335
|
return
|
|
@@ -3324,8 +3348,8 @@ const dispose$p = async (id) => {
|
|
|
3324
3348
|
throw new Error(`Failed to dispose viewlet ${id}: ${error}`)
|
|
3325
3349
|
}
|
|
3326
3350
|
instance.status = 'disposed';
|
|
3327
|
-
delete state$
|
|
3328
|
-
delete state$
|
|
3351
|
+
delete state$m.instances[id];
|
|
3352
|
+
delete state$m.modules[id];
|
|
3329
3353
|
await emitEvent(`Viewlet.dispose.${id}`);
|
|
3330
3354
|
};
|
|
3331
3355
|
|
|
@@ -3335,7 +3359,7 @@ const dispose$p = async (id) => {
|
|
|
3335
3359
|
const wrapViewletCommand = (id, fn) => {
|
|
3336
3360
|
const wrappedViewletCommand = async (...args) => {
|
|
3337
3361
|
// TODO get actual focused instance
|
|
3338
|
-
const activeInstance = state$
|
|
3362
|
+
const activeInstance = state$m.instances[id];
|
|
3339
3363
|
if (!activeInstance) {
|
|
3340
3364
|
console.info(`no active instance for ${id}`);
|
|
3341
3365
|
return
|
|
@@ -3361,7 +3385,7 @@ const wrapViewletCommand = (id, fn) => {
|
|
|
3361
3385
|
/* Viewlet.sendMultiple */ 3032,
|
|
3362
3386
|
/* commands */ commands,
|
|
3363
3387
|
]);
|
|
3364
|
-
state$
|
|
3388
|
+
state$m.instances[id].state = newState;
|
|
3365
3389
|
} else {
|
|
3366
3390
|
return fn(activeInstance.state, ...args)
|
|
3367
3391
|
}
|
|
@@ -3370,7 +3394,7 @@ const wrapViewletCommand = (id, fn) => {
|
|
|
3370
3394
|
};
|
|
3371
3395
|
|
|
3372
3396
|
const resize$c = (id, dimensions) => {
|
|
3373
|
-
const instance = state$
|
|
3397
|
+
const instance = state$m.instances[id];
|
|
3374
3398
|
if (!instance || !instance.factory || !instance.factory.resize) {
|
|
3375
3399
|
console.warn('cannot resize', id);
|
|
3376
3400
|
return []
|
|
@@ -3379,7 +3403,7 @@ const resize$c = (id, dimensions) => {
|
|
|
3379
3403
|
const { newState, commands } = instance.factory.resize(oldState, dimensions);
|
|
3380
3404
|
object(newState);
|
|
3381
3405
|
array(commands);
|
|
3382
|
-
state$
|
|
3406
|
+
state$m.instances[id].state = newState;
|
|
3383
3407
|
if (instance.factory.hasFunctionalRender) {
|
|
3384
3408
|
return instance.factory.render(oldState, newState)
|
|
3385
3409
|
}
|
|
@@ -3387,12 +3411,12 @@ const resize$c = (id, dimensions) => {
|
|
|
3387
3411
|
};
|
|
3388
3412
|
|
|
3389
3413
|
const getState = (id) => {
|
|
3390
|
-
const instance = state$
|
|
3414
|
+
const instance = state$m.instances[id];
|
|
3391
3415
|
return instance.state
|
|
3392
3416
|
};
|
|
3393
3417
|
|
|
3394
3418
|
const setState = (id, newState) => {
|
|
3395
|
-
const instance = state$
|
|
3419
|
+
const instance = state$m.instances[id];
|
|
3396
3420
|
if (instance && instance.factory && instance.factory.hasFunctionalRender) {
|
|
3397
3421
|
const oldState = instance.state;
|
|
3398
3422
|
const commands = instance.factory.render(oldState, newState);
|
|
@@ -3482,14 +3506,14 @@ const create$t = (
|
|
|
3482
3506
|
width,
|
|
3483
3507
|
height
|
|
3484
3508
|
) => {
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3509
|
+
fn(getModule);
|
|
3510
|
+
string(id);
|
|
3511
|
+
string(parentId);
|
|
3512
|
+
string(uri);
|
|
3513
|
+
number(left);
|
|
3514
|
+
number(top);
|
|
3515
|
+
number(width);
|
|
3516
|
+
number(height);
|
|
3493
3517
|
return {
|
|
3494
3518
|
type: 0,
|
|
3495
3519
|
getModule,
|
|
@@ -3550,7 +3574,7 @@ const load = async (viewlet, focus = false) => {
|
|
|
3550
3574
|
}
|
|
3551
3575
|
state = VIEWLET_STATE_CONTENT_LOADED;
|
|
3552
3576
|
|
|
3553
|
-
state$
|
|
3577
|
+
state$m.instances[viewlet.id] = { state: newState, factory: module };
|
|
3554
3578
|
|
|
3555
3579
|
await invoke$1(/* Viewlet.load */ 3030, /* id */ viewlet.id);
|
|
3556
3580
|
if (viewlet.disposed) {
|
|
@@ -3626,7 +3650,7 @@ const load = async (viewlet, focus = false) => {
|
|
|
3626
3650
|
|
|
3627
3651
|
// TODO where to force rendering of contents (need to call sidebar.openViewlet somewhere)
|
|
3628
3652
|
|
|
3629
|
-
const state$
|
|
3653
|
+
const state$l = {
|
|
3630
3654
|
activityBarLeft: 0,
|
|
3631
3655
|
activityBarTop: 0,
|
|
3632
3656
|
activityBarWidth: 48,
|
|
@@ -3659,6 +3683,7 @@ const state$o = {
|
|
|
3659
3683
|
titleBarVisible: true,
|
|
3660
3684
|
windowWidth: 0,
|
|
3661
3685
|
windowHeight: 0,
|
|
3686
|
+
sashId: '',
|
|
3662
3687
|
};
|
|
3663
3688
|
|
|
3664
3689
|
const SIDE_BAR_MIN_WIDTH = 170;
|
|
@@ -3759,13 +3784,13 @@ const getPoints = (layout, bounds) => {
|
|
|
3759
3784
|
};
|
|
3760
3785
|
|
|
3761
3786
|
const updateLayout = async (layout) => {
|
|
3762
|
-
const points = getPoints(layout, state$
|
|
3763
|
-
Object.assign(state$
|
|
3787
|
+
const points = getPoints(layout, state$l);
|
|
3788
|
+
Object.assign(state$l, points);
|
|
3764
3789
|
invoke$1(/* Layout.update */ 1100, /* points */ points);
|
|
3765
3790
|
await execute$1(
|
|
3766
3791
|
/* LocalStorage.setJson */ 6901,
|
|
3767
3792
|
/* key */ 'layout',
|
|
3768
|
-
/* value */ state$
|
|
3793
|
+
/* value */ state$l
|
|
3769
3794
|
);
|
|
3770
3795
|
};
|
|
3771
3796
|
|
|
@@ -3820,10 +3845,10 @@ const getDimensions = (state, id) => {
|
|
|
3820
3845
|
|
|
3821
3846
|
const show$5 = async (key, id) => {
|
|
3822
3847
|
updateLayout({
|
|
3823
|
-
...state$
|
|
3848
|
+
...state$l,
|
|
3824
3849
|
[key]: true,
|
|
3825
3850
|
});
|
|
3826
|
-
const dimensions = getDimensions(state$
|
|
3851
|
+
const dimensions = getDimensions(state$l, id);
|
|
3827
3852
|
const instance = create$t(
|
|
3828
3853
|
getModule$1,
|
|
3829
3854
|
id,
|
|
@@ -3839,14 +3864,14 @@ const show$5 = async (key, id) => {
|
|
|
3839
3864
|
|
|
3840
3865
|
const hide$2 = async (key, id) => {
|
|
3841
3866
|
updateLayout({
|
|
3842
|
-
...state$
|
|
3867
|
+
...state$l,
|
|
3843
3868
|
[key]: false,
|
|
3844
3869
|
});
|
|
3845
3870
|
await dispose$p(id);
|
|
3846
3871
|
};
|
|
3847
3872
|
|
|
3848
3873
|
const toggle = async (key, id) => {
|
|
3849
|
-
if (state$
|
|
3874
|
+
if (state$l[key]) {
|
|
3850
3875
|
await hide$2(key, id);
|
|
3851
3876
|
} else {
|
|
3852
3877
|
await show$5(key, id);
|
|
@@ -3885,7 +3910,7 @@ const showMain = async () => {
|
|
|
3885
3910
|
};
|
|
3886
3911
|
|
|
3887
3912
|
const isSideBarVisible = () => {
|
|
3888
|
-
return state$
|
|
3913
|
+
return state$l.sideBarVisible
|
|
3889
3914
|
};
|
|
3890
3915
|
|
|
3891
3916
|
// TODO replace with one method in renderer process: setActivityBarVisible(true|false)
|
|
@@ -3923,47 +3948,72 @@ const getInitialLayout = async () => {
|
|
|
3923
3948
|
if (cachedLayout) {
|
|
3924
3949
|
return cachedLayout
|
|
3925
3950
|
}
|
|
3926
|
-
return state$
|
|
3951
|
+
return state$l
|
|
3927
3952
|
};
|
|
3928
3953
|
|
|
3929
3954
|
const hydrate$5 = async () => {
|
|
3930
3955
|
const windowBounds = await getBounds();
|
|
3931
3956
|
const initialLayout = await getInitialLayout();
|
|
3932
3957
|
const points = getPoints(initialLayout, windowBounds);
|
|
3933
|
-
Object.assign(state$
|
|
3958
|
+
Object.assign(state$l, points);
|
|
3934
3959
|
await invoke$1(/* Layout.show */ 1109, /* points */ points);
|
|
3935
3960
|
};
|
|
3936
3961
|
|
|
3962
|
+
const handleSashPointerDown = (id) => {
|
|
3963
|
+
state$l.sashId = id;
|
|
3964
|
+
console.log({ id });
|
|
3965
|
+
};
|
|
3966
|
+
|
|
3937
3967
|
// TODO make this functional
|
|
3938
|
-
const
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
state$
|
|
3948
|
-
|
|
3949
|
-
state$
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3968
|
+
const handleSashPointerMove = async (x, y) => {
|
|
3969
|
+
if (state$l.sashId === 'SideBar') {
|
|
3970
|
+
const newSideBarWidth = state$l.windowWidth - state$l.activityBarWidth - x;
|
|
3971
|
+
if (newSideBarWidth <= SIDE_BAR_MIN_WIDTH / 2) {
|
|
3972
|
+
state$l.sideBarVisible = false;
|
|
3973
|
+
state$l.mainWidth = state$l.windowWidth - state$l.activityBarWidth;
|
|
3974
|
+
} else if (newSideBarWidth <= SIDE_BAR_MIN_WIDTH) {
|
|
3975
|
+
state$l.sideBarVisible = true;
|
|
3976
|
+
state$l.sideBarWidth = SIDE_BAR_MIN_WIDTH;
|
|
3977
|
+
state$l.mainWidth =
|
|
3978
|
+
state$l.windowWidth - state$l.activityBarWidth - SIDE_BAR_MIN_WIDTH;
|
|
3979
|
+
state$l.sideBarLeft =
|
|
3980
|
+
state$l.windowWidth - state$l.activityBarWidth - SIDE_BAR_MIN_WIDTH;
|
|
3981
|
+
} else {
|
|
3982
|
+
state$l.sideBarVisible = true;
|
|
3983
|
+
state$l.mainWidth = x;
|
|
3984
|
+
state$l.sideBarLeft = x;
|
|
3985
|
+
state$l.sideBarWidth = newSideBarWidth;
|
|
3986
|
+
}
|
|
3987
|
+
} else if (state$l.sashId === 'Panel') {
|
|
3988
|
+
const newPanelHeight = state$l.windowHeight - state$l.statusBarHeight - y;
|
|
3989
|
+
if (newPanelHeight < PANEL_MIN_HEIGHT / 2) {
|
|
3990
|
+
state$l.panelVisible = false;
|
|
3991
|
+
state$l.mainHeight =
|
|
3992
|
+
state$l.windowHeight - state$l.statusBarHeight - state$l.titleBarHeight;
|
|
3993
|
+
} else if (newPanelHeight <= PANEL_MIN_HEIGHT) {
|
|
3994
|
+
state$l.panelVisible = true;
|
|
3995
|
+
state$l.panelHeight = PANEL_MIN_HEIGHT;
|
|
3996
|
+
state$l.mainHeight =
|
|
3997
|
+
state$l.windowHeight - state$l.activityBarHeight - PANEL_MIN_HEIGHT;
|
|
3998
|
+
} else {
|
|
3999
|
+
state$l.panelVisible = true;
|
|
4000
|
+
state$l.mainHeight = y - state$l.titleBarHeight;
|
|
4001
|
+
state$l.panelTop = y;
|
|
4002
|
+
state$l.panelHeight = state$l.windowHeight - state$l.statusBarHeight - y;
|
|
4003
|
+
}
|
|
3955
4004
|
}
|
|
3956
|
-
|
|
4005
|
+
|
|
4006
|
+
await updateLayout(state$l);
|
|
3957
4007
|
};
|
|
3958
4008
|
|
|
3959
4009
|
// TODO a bit unnecessary to send the same layout very often, but it avoids keeping state in renderer process
|
|
3960
4010
|
const handleResize = async (bounds) => {
|
|
3961
|
-
const points = getPoints(state$
|
|
3962
|
-
Object.assign(state$
|
|
4011
|
+
const points = getPoints(state$l, bounds);
|
|
4012
|
+
Object.assign(state$l, points);
|
|
3963
4013
|
await invoke$1(/* Layout.update */ 1100, /* points */ points);
|
|
3964
4014
|
const ids = ['Main', 'ActivityBar', 'SideBar', 'TitleBar', 'StatusBar'];
|
|
3965
4015
|
const resizeInstance = (id) => {
|
|
3966
|
-
const dimensions = getDimensions(state$
|
|
4016
|
+
const dimensions = getDimensions(state$l, id);
|
|
3967
4017
|
return resize$c(id, dimensions)
|
|
3968
4018
|
};
|
|
3969
4019
|
const commands = ids.flatMap(resizeInstance);
|
|
@@ -3972,11 +4022,11 @@ const handleResize = async (bounds) => {
|
|
|
3972
4022
|
}
|
|
3973
4023
|
// TODO send the whole batch at once
|
|
3974
4024
|
for (const command of commands) {
|
|
3975
|
-
|
|
4025
|
+
invoke$1(command);
|
|
3976
4026
|
}
|
|
3977
4027
|
};
|
|
3978
4028
|
|
|
3979
|
-
const state$
|
|
4029
|
+
const state$k = {
|
|
3980
4030
|
listenerMap: Object.create(null),
|
|
3981
4031
|
phase: 0,
|
|
3982
4032
|
};
|
|
@@ -4000,23 +4050,23 @@ const PHASE_FIFTEEN = 15;
|
|
|
4000
4050
|
const PHASE_SIXTEEN = 16;
|
|
4001
4051
|
|
|
4002
4052
|
const once = (event, listener) => {
|
|
4003
|
-
if (state$
|
|
4053
|
+
if (state$k.phase >= event) {
|
|
4004
4054
|
listener();
|
|
4005
4055
|
} else {
|
|
4006
4056
|
// TODO could also statically allocate listenermap at start as array[13]
|
|
4007
|
-
state$
|
|
4008
|
-
state$
|
|
4057
|
+
state$k.listenerMap[event] ||= [];
|
|
4058
|
+
state$k.listenerMap[event].push(listener);
|
|
4009
4059
|
}
|
|
4010
4060
|
};
|
|
4011
4061
|
|
|
4012
4062
|
const mark$1 = (event) => {
|
|
4013
|
-
const listeners = state$
|
|
4063
|
+
const listeners = state$k.listenerMap[event] || [];
|
|
4014
4064
|
for (const listener of listeners) {
|
|
4015
4065
|
listener();
|
|
4016
4066
|
}
|
|
4017
|
-
state$
|
|
4067
|
+
state$k.phase = event;
|
|
4018
4068
|
if (event === PHASE_TWELVE) {
|
|
4019
|
-
state$
|
|
4069
|
+
state$k.listenerMap = Object.create(null);
|
|
4020
4070
|
}
|
|
4021
4071
|
};
|
|
4022
4072
|
|
|
@@ -4029,16 +4079,16 @@ const measure = (measureName, start, end) => {
|
|
|
4029
4079
|
};
|
|
4030
4080
|
|
|
4031
4081
|
const getStateToSave = () => {
|
|
4032
|
-
const instances = state$
|
|
4082
|
+
const instances = state$m.instances;
|
|
4033
4083
|
// const mainEditors = Main.state.editors
|
|
4034
4084
|
return {
|
|
4035
4085
|
instances,
|
|
4036
4086
|
mainEditors: [],
|
|
4037
4087
|
workspace: {
|
|
4038
|
-
path: state$
|
|
4039
|
-
homeDir: state$
|
|
4040
|
-
pathSeparator: state$
|
|
4041
|
-
uri: state$
|
|
4088
|
+
path: state$w.workspacePath,
|
|
4089
|
+
homeDir: state$w.homeDir,
|
|
4090
|
+
pathSeparator: state$w.pathSeparator,
|
|
4091
|
+
uri: state$w.workspaceUri,
|
|
4042
4092
|
},
|
|
4043
4093
|
}
|
|
4044
4094
|
};
|
|
@@ -4214,7 +4264,7 @@ const startup = async (config) => {
|
|
|
4214
4264
|
mark$1(PHASE_SEVEN);
|
|
4215
4265
|
|
|
4216
4266
|
mark('code/willLoadSideBar');
|
|
4217
|
-
if (state$
|
|
4267
|
+
if (state$l.sideBarVisible) {
|
|
4218
4268
|
await showSideBar();
|
|
4219
4269
|
}
|
|
4220
4270
|
mark('code/didLoadSideBar');
|
|
@@ -4222,7 +4272,7 @@ const startup = async (config) => {
|
|
|
4222
4272
|
mark$1(PHASE_EIGHT);
|
|
4223
4273
|
|
|
4224
4274
|
mark('code/willLoadPanel');
|
|
4225
|
-
if (state$
|
|
4275
|
+
if (state$l.panelVisible) {
|
|
4226
4276
|
await showPanel();
|
|
4227
4277
|
}
|
|
4228
4278
|
mark('code/didLoadPanel');
|
|
@@ -4230,7 +4280,7 @@ const startup = async (config) => {
|
|
|
4230
4280
|
mark$1(PHASE_NINE);
|
|
4231
4281
|
|
|
4232
4282
|
mark('code/willLoadActivityBar');
|
|
4233
|
-
if (state$
|
|
4283
|
+
if (state$l.activityBarVisible) {
|
|
4234
4284
|
await showActivityBar();
|
|
4235
4285
|
}
|
|
4236
4286
|
mark('code/didLoadActivityBar');
|
|
@@ -4238,7 +4288,7 @@ const startup = async (config) => {
|
|
|
4238
4288
|
mark$1(PHASE_TEN);
|
|
4239
4289
|
|
|
4240
4290
|
mark('code/willLoadStatusBar');
|
|
4241
|
-
if (state$
|
|
4291
|
+
if (state$l.statusBarVisible) {
|
|
4242
4292
|
await showStatusBar();
|
|
4243
4293
|
}
|
|
4244
4294
|
mark('code/didLoadStatusBar');
|
|
@@ -4257,7 +4307,7 @@ const startup = async (config) => {
|
|
|
4257
4307
|
mark$1(PHASE_FOURTEEN);
|
|
4258
4308
|
|
|
4259
4309
|
mark('code/willLoadTitleBar');
|
|
4260
|
-
if (state$
|
|
4310
|
+
if (state$l.titleBarVisible) {
|
|
4261
4311
|
await showTitleBar();
|
|
4262
4312
|
}
|
|
4263
4313
|
mark('code/didLoadTitleBar');
|
|
@@ -4343,12 +4393,12 @@ const main = async () => {
|
|
|
4343
4393
|
|
|
4344
4394
|
main();
|
|
4345
4395
|
|
|
4346
|
-
const state$
|
|
4396
|
+
const state$j = {
|
|
4347
4397
|
notifications: [],
|
|
4348
4398
|
};
|
|
4349
4399
|
|
|
4350
4400
|
const create$s = async (type, text) => {
|
|
4351
|
-
state$
|
|
4401
|
+
state$j.notifications.push({ type, text });
|
|
4352
4402
|
await invoke$1(
|
|
4353
4403
|
/* Notification.create */ 991,
|
|
4354
4404
|
/* type */ type,
|
|
@@ -4357,7 +4407,7 @@ const create$s = async (type, text) => {
|
|
|
4357
4407
|
};
|
|
4358
4408
|
|
|
4359
4409
|
const showWithOptions = async (type, text, options) => {
|
|
4360
|
-
state$
|
|
4410
|
+
state$j.notifications.push({ type, text, options });
|
|
4361
4411
|
console.log({ type, text, options });
|
|
4362
4412
|
await invoke$1(
|
|
4363
4413
|
/* Notification.createWithOptions */ 993,
|
|
@@ -4369,7 +4419,7 @@ const showWithOptions = async (type, text, options) => {
|
|
|
4369
4419
|
|
|
4370
4420
|
const handleClick$7 = (index) => {
|
|
4371
4421
|
console.log('handle click');
|
|
4372
|
-
const notification = state$
|
|
4422
|
+
const notification = state$j.notifications[0];
|
|
4373
4423
|
if (!notification.options) {
|
|
4374
4424
|
throw new Error('notification has no options that can be clicked')
|
|
4375
4425
|
}
|
|
@@ -4381,7 +4431,7 @@ const dispose$o = async (id) => {
|
|
|
4381
4431
|
await invoke$1(/* Notification.dispose */ 992, /* id */ id);
|
|
4382
4432
|
};
|
|
4383
4433
|
|
|
4384
|
-
const __initialize__$
|
|
4434
|
+
const __initialize__$X = () => {
|
|
4385
4435
|
register$2(900, create$s);
|
|
4386
4436
|
register$2(901, dispose$o);
|
|
4387
4437
|
register$2(902, showWithOptions);
|
|
@@ -4390,7 +4440,7 @@ const __initialize__$W = () => {
|
|
|
4390
4440
|
|
|
4391
4441
|
var Notification_ipc = {
|
|
4392
4442
|
__proto__: null,
|
|
4393
|
-
__initialize__: __initialize__$
|
|
4443
|
+
__initialize__: __initialize__$X
|
|
4394
4444
|
};
|
|
4395
4445
|
|
|
4396
4446
|
const ACTIVITY_BAR_ITEM_HEIGHT = 48;
|
|
@@ -4514,7 +4564,7 @@ const getActivityBarItems = () => {
|
|
|
4514
4564
|
|
|
4515
4565
|
const loadContent$n = async (state) => {
|
|
4516
4566
|
const activityBarItems = getActivityBarItems();
|
|
4517
|
-
const sideBar = state$
|
|
4567
|
+
const sideBar = state$m.instances.SideBar;
|
|
4518
4568
|
const viewletId =
|
|
4519
4569
|
sideBar && sideBar.state ? sideBar.state.currentViewletId : '';
|
|
4520
4570
|
const selectedIndex = findIndex(activityBarItems, viewletId);
|
|
@@ -4673,7 +4723,7 @@ const handleContextMenu$2 = async (state, x, y) => {
|
|
|
4673
4723
|
return state
|
|
4674
4724
|
};
|
|
4675
4725
|
|
|
4676
|
-
const focusIndex$
|
|
4726
|
+
const focusIndex$9 = (state, index) => {
|
|
4677
4727
|
return {
|
|
4678
4728
|
...state,
|
|
4679
4729
|
focusedIndex: index,
|
|
@@ -4682,7 +4732,7 @@ const focusIndex$8 = (state, index) => {
|
|
|
4682
4732
|
|
|
4683
4733
|
const focus$2 = (state) => {
|
|
4684
4734
|
const indexToFocus = state.focusedIndex === -1 ? 0 : state.focusedIndex;
|
|
4685
|
-
return focusIndex$
|
|
4735
|
+
return focusIndex$9(state, indexToFocus)
|
|
4686
4736
|
};
|
|
4687
4737
|
|
|
4688
4738
|
const focusNext$8 = (state) => {
|
|
@@ -4690,22 +4740,22 @@ const focusNext$8 = (state) => {
|
|
|
4690
4740
|
if (state.focusedIndex === state.activityBarItems.length - 1) {
|
|
4691
4741
|
return state
|
|
4692
4742
|
}
|
|
4693
|
-
return focusIndex$
|
|
4743
|
+
return focusIndex$9(state, state.focusedIndex + 1)
|
|
4694
4744
|
};
|
|
4695
4745
|
|
|
4696
4746
|
const focusPrevious$8 = (state) => {
|
|
4697
4747
|
if (state.focusedIndex === 0) {
|
|
4698
4748
|
return state
|
|
4699
4749
|
}
|
|
4700
|
-
return focusIndex$
|
|
4750
|
+
return focusIndex$9(state, state.focusedIndex - 1)
|
|
4701
4751
|
};
|
|
4702
4752
|
|
|
4703
4753
|
const focusFirst$8 = (state) => {
|
|
4704
|
-
return focusIndex$
|
|
4754
|
+
return focusIndex$9(state, 0)
|
|
4705
4755
|
};
|
|
4706
4756
|
|
|
4707
4757
|
const focusLast$8 = (state) => {
|
|
4708
|
-
return focusIndex$
|
|
4758
|
+
return focusIndex$9(state, state.activityBarItems.length - 1)
|
|
4709
4759
|
};
|
|
4710
4760
|
|
|
4711
4761
|
const getPosition$2 = (state, index) => {
|
|
@@ -4803,7 +4853,7 @@ var ViewletActivityBar = {
|
|
|
4803
4853
|
toggleItem: toggleItem,
|
|
4804
4854
|
toggleActivityBarItem: toggleActivityBarItem,
|
|
4805
4855
|
handleContextMenu: handleContextMenu$2,
|
|
4806
|
-
focusIndex: focusIndex$
|
|
4856
|
+
focusIndex: focusIndex$9,
|
|
4807
4857
|
focus: focus$2,
|
|
4808
4858
|
focusNext: focusNext$8,
|
|
4809
4859
|
focusPrevious: focusPrevious$8,
|
|
@@ -4815,7 +4865,7 @@ var ViewletActivityBar = {
|
|
|
4815
4865
|
hasFunctionalRender: hasFunctionalRender$c
|
|
4816
4866
|
};
|
|
4817
4867
|
|
|
4818
|
-
const __initialize__$
|
|
4868
|
+
const __initialize__$W = () => {
|
|
4819
4869
|
register$2(8000, wrapViewletCommand('ActivityBar', toggleItem));
|
|
4820
4870
|
register$2(8001, wrapViewletCommand('ActivityBar', handleClick$6));
|
|
4821
4871
|
register$2(8002, wrapViewletCommand('ActivityBar', handleContextMenu$2));
|
|
@@ -4834,10 +4884,10 @@ const __initialize__$V = () => {
|
|
|
4834
4884
|
|
|
4835
4885
|
var ViewletActivityBar_ipc = {
|
|
4836
4886
|
__proto__: null,
|
|
4837
|
-
__initialize__: __initialize__$
|
|
4887
|
+
__initialize__: __initialize__$W
|
|
4838
4888
|
};
|
|
4839
4889
|
|
|
4840
|
-
const __initialize__$
|
|
4890
|
+
const __initialize__$V = () => {
|
|
4841
4891
|
register$2(8080, reload);
|
|
4842
4892
|
register$2(8081, minimize);
|
|
4843
4893
|
register$2(8082, maximize);
|
|
@@ -4850,7 +4900,7 @@ const __initialize__$U = () => {
|
|
|
4850
4900
|
|
|
4851
4901
|
var Window_ipc = {
|
|
4852
4902
|
__proto__: null,
|
|
4853
|
-
__initialize__: __initialize__$
|
|
4903
|
+
__initialize__: __initialize__$V
|
|
4854
4904
|
};
|
|
4855
4905
|
|
|
4856
4906
|
// interface Editor {
|
|
@@ -5050,15 +5100,15 @@ const openUri$1 = async (state, uri) => {
|
|
|
5050
5100
|
state.activeIndex = state.editors.length - 1;
|
|
5051
5101
|
const tabLabel = pathBaseName(uri);
|
|
5052
5102
|
const tabTitle = getTabTitle(uri);
|
|
5053
|
-
|
|
5103
|
+
await invoke$1(
|
|
5054
5104
|
/* Viewlet.send */ 3024,
|
|
5055
5105
|
/* id */ 'Main',
|
|
5056
5106
|
/* method */ 'openViewlet',
|
|
5057
5107
|
/* id */ id,
|
|
5058
5108
|
/* tabLabel */ tabLabel,
|
|
5059
5109
|
/* tabTitle */ tabTitle,
|
|
5060
|
-
/* oldActiveIndex */ oldActiveIndex
|
|
5061
|
-
|
|
5110
|
+
/* oldActiveIndex */ oldActiveIndex
|
|
5111
|
+
);
|
|
5062
5112
|
return load(instance)
|
|
5063
5113
|
};
|
|
5064
5114
|
|
|
@@ -5113,7 +5163,7 @@ const closeAllEditors = (state) => {
|
|
|
5113
5163
|
state.focusedIndex = -1;
|
|
5114
5164
|
state.selectedIndex = -1;
|
|
5115
5165
|
// TODO should call dispose method, but only in renderer-worker
|
|
5116
|
-
delete state$
|
|
5166
|
+
delete state$m.instances.EditorText;
|
|
5117
5167
|
};
|
|
5118
5168
|
|
|
5119
5169
|
const dispose$m = () => {};
|
|
@@ -5142,19 +5192,19 @@ const closeEditor = async (state, index) => {
|
|
|
5142
5192
|
// height: instance.state.height,
|
|
5143
5193
|
// columnWidth: COLUMN_WIDTH,
|
|
5144
5194
|
// })
|
|
5145
|
-
|
|
5195
|
+
await invoke$1(
|
|
5146
5196
|
/* Main.closeOneTab */ 2164,
|
|
5147
5197
|
/* closeIndex */ oldActiveIndex,
|
|
5148
|
-
/* focusIndex */ newActiveIndex
|
|
5149
|
-
|
|
5198
|
+
/* focusIndex */ newActiveIndex
|
|
5199
|
+
);
|
|
5150
5200
|
return
|
|
5151
5201
|
}
|
|
5152
|
-
|
|
5202
|
+
await invoke$1(
|
|
5153
5203
|
/* Viewlet.send */ 3024,
|
|
5154
5204
|
/* id */ 'Main',
|
|
5155
5205
|
/* method */ 'closeOneTabOnly',
|
|
5156
|
-
/* closeIndex */ index
|
|
5157
|
-
|
|
5206
|
+
/* closeIndex */ index
|
|
5207
|
+
);
|
|
5158
5208
|
state.editors.splice(index, 1);
|
|
5159
5209
|
if (index < state.activeIndex) {
|
|
5160
5210
|
state.activeIndex--;
|
|
@@ -5178,7 +5228,7 @@ const handleTabContextMenu = async (state, index, x, y) => {
|
|
|
5178
5228
|
);
|
|
5179
5229
|
};
|
|
5180
5230
|
|
|
5181
|
-
const focusIndex$
|
|
5231
|
+
const focusIndex$8 = (state, index) => {
|
|
5182
5232
|
if (index === state.activeIndex) {
|
|
5183
5233
|
console.log('index', index, ' is already active index');
|
|
5184
5234
|
return
|
|
@@ -5215,49 +5265,49 @@ const focusIndex$7 = (state, index) => {
|
|
|
5215
5265
|
};
|
|
5216
5266
|
|
|
5217
5267
|
const focusFirst$7 = (state) => {
|
|
5218
|
-
return focusIndex$
|
|
5268
|
+
return focusIndex$8(state, 0)
|
|
5219
5269
|
};
|
|
5220
5270
|
|
|
5221
5271
|
const focusLast$7 = (state) => {
|
|
5222
|
-
return focusIndex$
|
|
5272
|
+
return focusIndex$8(state, state.editors.length - 1)
|
|
5223
5273
|
};
|
|
5224
5274
|
|
|
5225
5275
|
const focusPrevious$7 = (state) => {
|
|
5226
5276
|
const previousIndex =
|
|
5227
5277
|
state.activeIndex === 0 ? state.editors.length - 1 : state.activeIndex - 1;
|
|
5228
|
-
return focusIndex$
|
|
5278
|
+
return focusIndex$8(state, previousIndex)
|
|
5229
5279
|
};
|
|
5230
5280
|
|
|
5231
5281
|
const focusNext$7 = (state) => {
|
|
5232
5282
|
const nextIndex =
|
|
5233
5283
|
state.activeIndex === state.editors.length - 1 ? 0 : state.activeIndex + 1;
|
|
5234
|
-
return focusIndex$
|
|
5284
|
+
return focusIndex$8(state, nextIndex)
|
|
5235
5285
|
};
|
|
5236
5286
|
|
|
5237
5287
|
const handleTabClick = (state, index) => {
|
|
5238
5288
|
console.log('focus index', index);
|
|
5239
|
-
return focusIndex$
|
|
5289
|
+
return focusIndex$8(state, index)
|
|
5240
5290
|
};
|
|
5241
5291
|
|
|
5242
5292
|
const closeOthers = async (state) => {
|
|
5243
5293
|
if (state.focusedIndex === state.activeIndex) {
|
|
5244
5294
|
// view is kept the same, only tabs are closed
|
|
5245
|
-
|
|
5295
|
+
await invoke$1(
|
|
5246
5296
|
/* Viewlet.send */ 3024,
|
|
5247
5297
|
/* id */ 'Main',
|
|
5248
5298
|
/* method */ 'closeOthers',
|
|
5249
5299
|
/* keepIndex */ state.focusedIndex,
|
|
5250
|
-
/* focusIndex */ state.focusedIndex
|
|
5251
|
-
|
|
5300
|
+
/* focusIndex */ state.focusedIndex
|
|
5301
|
+
);
|
|
5252
5302
|
} else {
|
|
5253
5303
|
// view needs to be switched to focused index
|
|
5254
|
-
|
|
5304
|
+
await invoke$1(
|
|
5255
5305
|
/* Viewlet.send */ 3024,
|
|
5256
5306
|
/* id */ 'Main',
|
|
5257
5307
|
/* method */ 'closeOthers',
|
|
5258
5308
|
/* keepIndex */ state.focusedIndex,
|
|
5259
|
-
/* focusIndex */ state.focusedIndex
|
|
5260
|
-
|
|
5309
|
+
/* focusIndex */ state.focusedIndex
|
|
5310
|
+
);
|
|
5261
5311
|
}
|
|
5262
5312
|
state.editors = [state.editors[state.focusedIndex]];
|
|
5263
5313
|
state.activeIndex = 0;
|
|
@@ -5267,20 +5317,20 @@ const closeOthers = async (state) => {
|
|
|
5267
5317
|
const closeTabsRight = async (state) => {
|
|
5268
5318
|
if (state.focusedIndex >= state.activeIndex) {
|
|
5269
5319
|
// view is kept the same, only tabs are closed
|
|
5270
|
-
|
|
5320
|
+
await invoke$1(
|
|
5271
5321
|
/* Viewlet.send */ 3024,
|
|
5272
5322
|
/* id */ 'Main',
|
|
5273
5323
|
/* method */ 'closeTabsRight',
|
|
5274
|
-
/* index */ state.focusedIndex
|
|
5275
|
-
|
|
5324
|
+
/* index */ state.focusedIndex
|
|
5325
|
+
);
|
|
5276
5326
|
} else {
|
|
5277
5327
|
// view needs to be switched to focused index
|
|
5278
|
-
|
|
5328
|
+
await invoke$1(
|
|
5279
5329
|
/* Viewlet.send */ 3024,
|
|
5280
5330
|
/* id */ 'Main',
|
|
5281
5331
|
/* method */ 'closeTabsRight',
|
|
5282
|
-
/* index */ state.focusedIndex
|
|
5283
|
-
|
|
5332
|
+
/* index */ state.focusedIndex
|
|
5333
|
+
);
|
|
5284
5334
|
}
|
|
5285
5335
|
state.editors = state.editors.slice(0, state.focusedIndex + 1);
|
|
5286
5336
|
state.activeIndex = state.focusedIndex;
|
|
@@ -5289,20 +5339,20 @@ const closeTabsRight = async (state) => {
|
|
|
5289
5339
|
const closeTabsLeft = async (state) => {
|
|
5290
5340
|
if (state.focusedIndex <= state.activeIndex) {
|
|
5291
5341
|
// view is kept the same, only tabs are closed
|
|
5292
|
-
|
|
5342
|
+
await invoke$1(
|
|
5293
5343
|
/* Viewlet.send */ 3024,
|
|
5294
5344
|
/* id */ 'Main',
|
|
5295
5345
|
/* method */ 'closeTabsLeft',
|
|
5296
|
-
/* index */ state.focusedIndex
|
|
5297
|
-
|
|
5346
|
+
/* index */ state.focusedIndex
|
|
5347
|
+
);
|
|
5298
5348
|
} else {
|
|
5299
5349
|
// view needs to be switched to focused index
|
|
5300
|
-
|
|
5350
|
+
await invoke$1(
|
|
5301
5351
|
/* Viewlet.send */ 3024,
|
|
5302
5352
|
/* id */ 'Main',
|
|
5303
5353
|
/* method */ 'closeTabsLeft',
|
|
5304
|
-
/* index */ state.focusedIndex
|
|
5305
|
-
|
|
5354
|
+
/* index */ state.focusedIndex
|
|
5355
|
+
);
|
|
5306
5356
|
}
|
|
5307
5357
|
state.editors = state.editors.slice(state.focusedIndex);
|
|
5308
5358
|
state.activeIndex = state.focusedIndex;
|
|
@@ -5346,7 +5396,7 @@ var ViewletMain = {
|
|
|
5346
5396
|
closeEditor: closeEditor,
|
|
5347
5397
|
closeFocusedTab: closeFocusedTab,
|
|
5348
5398
|
handleTabContextMenu: handleTabContextMenu,
|
|
5349
|
-
focusIndex: focusIndex$
|
|
5399
|
+
focusIndex: focusIndex$8,
|
|
5350
5400
|
focusFirst: focusFirst$7,
|
|
5351
5401
|
focusLast: focusLast$7,
|
|
5352
5402
|
focusPrevious: focusPrevious$7,
|
|
@@ -5358,7 +5408,7 @@ var ViewletMain = {
|
|
|
5358
5408
|
resize: resize$a
|
|
5359
5409
|
};
|
|
5360
5410
|
|
|
5361
|
-
const __initialize__$
|
|
5411
|
+
const __initialize__$U = () => {
|
|
5362
5412
|
register$2(89, wrapViewletCommand('Main', save));
|
|
5363
5413
|
register$2(92, wrapViewletCommand('Main', handleDrop));
|
|
5364
5414
|
register$2(93, wrapViewletCommand('Main', closeActiveEditor));
|
|
@@ -5380,7 +5430,7 @@ const __initialize__$T = () => {
|
|
|
5380
5430
|
|
|
5381
5431
|
var ViewletMain_ipc = {
|
|
5382
5432
|
__proto__: null,
|
|
5383
|
-
__initialize__: __initialize__$
|
|
5433
|
+
__initialize__: __initialize__$U
|
|
5384
5434
|
};
|
|
5385
5435
|
|
|
5386
5436
|
const getModule = (id) => {
|
|
@@ -5429,7 +5479,10 @@ const getMenuEntries$h = async (id) => {
|
|
|
5429
5479
|
return module.getMenuEntries()
|
|
5430
5480
|
};
|
|
5431
5481
|
|
|
5432
|
-
const state$
|
|
5482
|
+
const state$i = {
|
|
5483
|
+
/**
|
|
5484
|
+
* @type {any[]}
|
|
5485
|
+
*/
|
|
5433
5486
|
menus: [],
|
|
5434
5487
|
latestTimeStamp: 0,
|
|
5435
5488
|
enterTimeout: -1,
|
|
@@ -5462,17 +5515,17 @@ const getMenuHeight = (items) => {
|
|
|
5462
5515
|
};
|
|
5463
5516
|
|
|
5464
5517
|
const getCurrentMenu = () => {
|
|
5465
|
-
if (state$
|
|
5518
|
+
if (state$i.menus.length === 0) {
|
|
5466
5519
|
console.warn('menu not available');
|
|
5467
5520
|
}
|
|
5468
|
-
return state$
|
|
5521
|
+
return state$i.menus.at(-1)
|
|
5469
5522
|
};
|
|
5470
5523
|
|
|
5471
5524
|
const addMenuInternal = (menu) => {
|
|
5472
|
-
if (state$
|
|
5525
|
+
if (state$i.menus.length > 5) {
|
|
5473
5526
|
throw new Error('too many menus')
|
|
5474
5527
|
}
|
|
5475
|
-
state$
|
|
5528
|
+
state$i.menus.push(menu);
|
|
5476
5529
|
return menu
|
|
5477
5530
|
};
|
|
5478
5531
|
|
|
@@ -5480,8 +5533,8 @@ const getMenuBounds = (x, y, items) => {
|
|
|
5480
5533
|
const menuWidth = CONTEXT_MENU_WIDTH;
|
|
5481
5534
|
const menuHeight = getMenuHeight(items);
|
|
5482
5535
|
|
|
5483
|
-
const windowWidth = state$
|
|
5484
|
-
const windowHeight = state$
|
|
5536
|
+
const windowWidth = state$l.windowWidth;
|
|
5537
|
+
const windowHeight = state$l.windowHeight;
|
|
5485
5538
|
// TODO maybe only send labels and keybindings to ui (id not needed on ui)
|
|
5486
5539
|
// TODO what about separators?
|
|
5487
5540
|
|
|
@@ -5507,7 +5560,7 @@ const show$4 = async (x, y, id, mouseBlocking = false) => {
|
|
|
5507
5560
|
id,
|
|
5508
5561
|
items,
|
|
5509
5562
|
focusedIndex: -1,
|
|
5510
|
-
level: state$
|
|
5563
|
+
level: state$i.menus.length,
|
|
5511
5564
|
x: bounds.x,
|
|
5512
5565
|
y: bounds.y,
|
|
5513
5566
|
});
|
|
@@ -5526,15 +5579,15 @@ const show$4 = async (x, y, id, mouseBlocking = false) => {
|
|
|
5526
5579
|
|
|
5527
5580
|
const showSubMenuAtEnter = async (level, index, enterX, enterY) => {
|
|
5528
5581
|
// TODO delete old menus
|
|
5529
|
-
state$
|
|
5530
|
-
const parentMenu = state$
|
|
5582
|
+
state$i.menus = state$i.menus.slice(0, level + 1);
|
|
5583
|
+
const parentMenu = state$i.menus[level];
|
|
5531
5584
|
const item = parentMenu.items[index];
|
|
5532
5585
|
const subMenuItems = await getMenuEntries$h(item.id);
|
|
5533
5586
|
const subMenu = addMenuInternal({
|
|
5534
5587
|
id: item.id,
|
|
5535
5588
|
items: subMenuItems,
|
|
5536
5589
|
focusedIndex: -1,
|
|
5537
|
-
level: state$
|
|
5590
|
+
level: state$i.menus.length,
|
|
5538
5591
|
y: parentMenu.y + index * 25,
|
|
5539
5592
|
x: parentMenu.x + MENU_WIDTH,
|
|
5540
5593
|
enterX,
|
|
@@ -5559,7 +5612,7 @@ const showSubMenu = async (level, index) => {
|
|
|
5559
5612
|
};
|
|
5560
5613
|
|
|
5561
5614
|
const selectIndex$3 = async (level, index) => {
|
|
5562
|
-
const menu = state$
|
|
5615
|
+
const menu = state$i.menus[level];
|
|
5563
5616
|
menu.focusedIndex = index;
|
|
5564
5617
|
const item = menu.items[menu.focusedIndex];
|
|
5565
5618
|
switch (item.flags) {
|
|
@@ -5581,15 +5634,15 @@ const selectIndex$3 = async (level, index) => {
|
|
|
5581
5634
|
};
|
|
5582
5635
|
|
|
5583
5636
|
const selectCurrent$1 = async (level) => {
|
|
5584
|
-
const menu = state$
|
|
5637
|
+
const menu = state$i.menus[level];
|
|
5585
5638
|
await selectIndex$3(level, menu.focusedIndex);
|
|
5586
5639
|
};
|
|
5587
5640
|
|
|
5588
5641
|
const hide$1 = async () => {
|
|
5589
|
-
if (state$
|
|
5642
|
+
if (state$i.menus.length === 0) {
|
|
5590
5643
|
return
|
|
5591
5644
|
}
|
|
5592
|
-
state$
|
|
5645
|
+
state$i.menus = [];
|
|
5593
5646
|
await invoke$1(/* Menu.hide */ 7901);
|
|
5594
5647
|
};
|
|
5595
5648
|
|
|
@@ -5598,8 +5651,8 @@ const hide$1 = async () => {
|
|
|
5598
5651
|
// with keyboard -> don't open submenu, only focus
|
|
5599
5652
|
|
|
5600
5653
|
const hideSubMenus = async (level) => {
|
|
5601
|
-
if (level < state$
|
|
5602
|
-
state$
|
|
5654
|
+
if (level < state$i.menus.length) {
|
|
5655
|
+
state$i.menus = state$i.menus.slice(0, level + 1);
|
|
5603
5656
|
await invoke$1(
|
|
5604
5657
|
/* Menu.hideSubMenu */ 7904,
|
|
5605
5658
|
/* level */ level + 1
|
|
@@ -5620,27 +5673,27 @@ const handleMouseEnter$1 = async (
|
|
|
5620
5673
|
enterY,
|
|
5621
5674
|
enterTimeStamp
|
|
5622
5675
|
) => {
|
|
5623
|
-
state$
|
|
5624
|
-
if (level >= state$
|
|
5676
|
+
state$i.latestTimeStamp = enterTimeStamp;
|
|
5677
|
+
if (level >= state$i.menus.length) {
|
|
5625
5678
|
return
|
|
5626
5679
|
}
|
|
5627
|
-
const menu = state$
|
|
5680
|
+
const menu = state$i.menus[level];
|
|
5628
5681
|
if (menu.focusedIndex === index) {
|
|
5629
5682
|
return
|
|
5630
5683
|
}
|
|
5631
|
-
if (level < state$
|
|
5632
|
-
const subMenu = state$
|
|
5684
|
+
if (level < state$i.menus.length - 1) {
|
|
5685
|
+
const subMenu = state$i.menus[level + 1];
|
|
5633
5686
|
const subMenuEnterX = subMenu.enterX;
|
|
5634
5687
|
// TODO should check for triangle position here
|
|
5635
5688
|
if (enterX >= subMenuEnterX) {
|
|
5636
5689
|
await new Promise(resolveAfterTimeout);
|
|
5637
|
-
if (state$
|
|
5690
|
+
if (state$i.latestTimeStamp !== enterTimeStamp) {
|
|
5638
5691
|
return
|
|
5639
5692
|
}
|
|
5640
5693
|
}
|
|
5641
5694
|
}
|
|
5642
5695
|
const item = menu.items[index];
|
|
5643
|
-
await focusIndex$
|
|
5696
|
+
await focusIndex$7(menu, index);
|
|
5644
5697
|
switch (item.flags) {
|
|
5645
5698
|
case /* SubMenu */ 4:
|
|
5646
5699
|
await showSubMenuAtEnter(menu.level, index, enterX, enterY);
|
|
@@ -5651,7 +5704,7 @@ const handleMouseEnter$1 = async (
|
|
|
5651
5704
|
}
|
|
5652
5705
|
};
|
|
5653
5706
|
|
|
5654
|
-
const focusIndex$
|
|
5707
|
+
const focusIndex$7 = async (menu, index) => {
|
|
5655
5708
|
if (menu.items.length === 0) {
|
|
5656
5709
|
return
|
|
5657
5710
|
}
|
|
@@ -5684,7 +5737,7 @@ const focusFirst$6 = async () => {
|
|
|
5684
5737
|
}
|
|
5685
5738
|
const indexToFocus = getIndexToFocusNextStartingAt$1(menu.items, 0);
|
|
5686
5739
|
console.log({ first: indexToFocus });
|
|
5687
|
-
await focusIndex$
|
|
5740
|
+
await focusIndex$7(menu, indexToFocus);
|
|
5688
5741
|
};
|
|
5689
5742
|
|
|
5690
5743
|
const focusLast$6 = async () => {
|
|
@@ -5693,7 +5746,7 @@ const focusLast$6 = async () => {
|
|
|
5693
5746
|
menu.items,
|
|
5694
5747
|
menu.items.length - 1
|
|
5695
5748
|
);
|
|
5696
|
-
await focusIndex$
|
|
5749
|
+
await focusIndex$7(menu, indexToFocus);
|
|
5697
5750
|
};
|
|
5698
5751
|
|
|
5699
5752
|
// TODO this code seems a bit too complicated, maybe it can be simplified
|
|
@@ -5720,7 +5773,7 @@ const focusPrevious$6 = async () => {
|
|
|
5720
5773
|
return
|
|
5721
5774
|
}
|
|
5722
5775
|
const indexToFocus = getIndexToFocusPrevious(menu);
|
|
5723
|
-
await focusIndex$
|
|
5776
|
+
await focusIndex$7(menu, indexToFocus);
|
|
5724
5777
|
};
|
|
5725
5778
|
|
|
5726
5779
|
const canBeFocused = (item) => {
|
|
@@ -5738,7 +5791,7 @@ const focusNext$6 = async () => {
|
|
|
5738
5791
|
return
|
|
5739
5792
|
}
|
|
5740
5793
|
const indexToFocus = getIndexToFocusNext(menu);
|
|
5741
|
-
await focusIndex$
|
|
5794
|
+
await focusIndex$7(menu, indexToFocus);
|
|
5742
5795
|
};
|
|
5743
5796
|
|
|
5744
5797
|
// TODO handle printable letter and focus item that starts with that letter
|
|
@@ -5760,7 +5813,7 @@ const show$3 = async (x, y, id) => {
|
|
|
5760
5813
|
// TODO what about separators?
|
|
5761
5814
|
};
|
|
5762
5815
|
|
|
5763
|
-
const __initialize__$
|
|
5816
|
+
const __initialize__$T = () => {
|
|
5764
5817
|
register$2(950, undefined);
|
|
5765
5818
|
register$2(951, show$3);
|
|
5766
5819
|
register$2(952, undefined);
|
|
@@ -5774,10 +5827,10 @@ const __initialize__$S = () => {
|
|
|
5774
5827
|
|
|
5775
5828
|
var ContextMenu_ipc = {
|
|
5776
5829
|
__proto__: null,
|
|
5777
|
-
__initialize__: __initialize__$
|
|
5830
|
+
__initialize__: __initialize__$T
|
|
5778
5831
|
};
|
|
5779
5832
|
|
|
5780
|
-
const __initialize__$
|
|
5833
|
+
const __initialize__$S = () => {
|
|
5781
5834
|
register$2(1100, showSideBar);
|
|
5782
5835
|
register$2(1101, hideSideBar);
|
|
5783
5836
|
register$2(1102, toggleSideBar);
|
|
@@ -5790,30 +5843,31 @@ const __initialize__$R = () => {
|
|
|
5790
5843
|
register$2(1109, hydrate$5);
|
|
5791
5844
|
register$2(1110, undefined);
|
|
5792
5845
|
register$2(1111, handleResize);
|
|
5793
|
-
register$2(1112,
|
|
5846
|
+
register$2(1112, handleSashPointerMove);
|
|
5847
|
+
register$2(1113, handleSashPointerDown);
|
|
5794
5848
|
};
|
|
5795
5849
|
|
|
5796
5850
|
var Layout_ipc = {
|
|
5797
5851
|
__proto__: null,
|
|
5798
|
-
__initialize__: __initialize__$
|
|
5852
|
+
__initialize__: __initialize__$S
|
|
5799
5853
|
};
|
|
5800
5854
|
|
|
5801
|
-
const __initialize__$
|
|
5855
|
+
const __initialize__$R = () => {
|
|
5802
5856
|
register$2(2133, send);
|
|
5803
5857
|
};
|
|
5804
5858
|
|
|
5805
5859
|
var Viewlet_ipc = {
|
|
5806
5860
|
__proto__: null,
|
|
5807
|
-
__initialize__: __initialize__$
|
|
5861
|
+
__initialize__: __initialize__$R
|
|
5808
5862
|
};
|
|
5809
5863
|
|
|
5810
|
-
const __initialize__$
|
|
5864
|
+
const __initialize__$Q = () => {
|
|
5811
5865
|
register$2(47110, undefined);
|
|
5812
5866
|
};
|
|
5813
5867
|
|
|
5814
5868
|
var Workbench_ipc = {
|
|
5815
5869
|
__proto__: null,
|
|
5816
|
-
__initialize__: __initialize__$
|
|
5870
|
+
__initialize__: __initialize__$Q
|
|
5817
5871
|
};
|
|
5818
5872
|
|
|
5819
5873
|
// based on https://github.com/bevacqua/fuzzysearch/blob/master/index.js
|
|
@@ -5889,7 +5943,7 @@ const STATE_DEFAULT = 0;
|
|
|
5889
5943
|
const STATE_CREATING = 1;
|
|
5890
5944
|
const STATE_FINISHED = 2;
|
|
5891
5945
|
|
|
5892
|
-
const state$
|
|
5946
|
+
const state$h = {
|
|
5893
5947
|
state: STATE_DEFAULT,
|
|
5894
5948
|
picks: [],
|
|
5895
5949
|
filteredPicks: [],
|
|
@@ -5913,9 +5967,9 @@ const filterPicks = (picks, exclude, value) => {
|
|
|
5913
5967
|
if (exclude.has(pick.id)) {
|
|
5914
5968
|
return false
|
|
5915
5969
|
}
|
|
5916
|
-
if (!pick.label && !state$
|
|
5970
|
+
if (!pick.label && !state$h.warned.includes(JSON.stringify(pick))) {
|
|
5917
5971
|
console.warn('[QuickPick] item has missing label', pick);
|
|
5918
|
-
state$
|
|
5972
|
+
state$h.warned.push(JSON.stringify(pick));
|
|
5919
5973
|
return false
|
|
5920
5974
|
}
|
|
5921
5975
|
const labelMatch = fuzzySearch(value, pick.label || pick.id);
|
|
@@ -5956,75 +6010,75 @@ const toDisplayPicks = (picks) => {
|
|
|
5956
6010
|
};
|
|
5957
6011
|
|
|
5958
6012
|
const getVisiblePicks = (picks, filterValue) => {
|
|
5959
|
-
const filteredPicks = filterPicks(picks, state$
|
|
5960
|
-
state$
|
|
5961
|
-
state$
|
|
6013
|
+
const filteredPicks = filterPicks(picks, state$h.recentPickIds, filterValue);
|
|
6014
|
+
state$h.filteredPicks = filteredPicks;
|
|
6015
|
+
state$h.state = STATE_FINISHED;
|
|
5962
6016
|
const slicedPicks = slicePicks(filteredPicks);
|
|
5963
6017
|
return toDisplayPicks(slicedPicks)
|
|
5964
6018
|
};
|
|
5965
6019
|
|
|
5966
6020
|
// TODO have lazy loadable provider as argument
|
|
5967
6021
|
const show$2 = async (value, provider) => {
|
|
5968
|
-
state$
|
|
5969
|
-
if (state$
|
|
5970
|
-
const version = ++state$
|
|
6022
|
+
state$h.provider = provider;
|
|
6023
|
+
if (state$h.state === STATE_FINISHED) {
|
|
6024
|
+
const version = ++state$h.versionId;
|
|
5971
6025
|
// TODO if provider is immutable, don't necessarily need to get new picks
|
|
5972
6026
|
const newPicks = await provider.getPicks(value);
|
|
5973
6027
|
array(newPicks);
|
|
5974
|
-
if (version !== state$
|
|
6028
|
+
if (version !== state$h.versionId) {
|
|
5975
6029
|
return
|
|
5976
6030
|
}
|
|
5977
6031
|
const filterValue = provider.getFilterValue(value);
|
|
5978
6032
|
const visiblePicks = getVisiblePicks(newPicks, filterValue);
|
|
5979
6033
|
const placeholder = provider.getPlaceholder();
|
|
5980
6034
|
const label = provider.getLabel();
|
|
5981
|
-
|
|
6035
|
+
invoke$1(
|
|
5982
6036
|
/* Viewlet.send */ 3024,
|
|
5983
6037
|
/* id */ 'QuickPick',
|
|
5984
6038
|
/* method */ 'updateValueAndPicksAndPlaceholder',
|
|
5985
6039
|
/* value */ value,
|
|
5986
6040
|
/* picks */ visiblePicks,
|
|
5987
6041
|
/* focusIndex */ 0,
|
|
5988
|
-
/* unFocusIndex */ state$
|
|
6042
|
+
/* unFocusIndex */ state$h.focusedIndex,
|
|
5989
6043
|
/* placeholder */ placeholder,
|
|
5990
|
-
/* label */ label
|
|
5991
|
-
|
|
5992
|
-
state$
|
|
5993
|
-
state$
|
|
5994
|
-
state$
|
|
5995
|
-
state$
|
|
5996
|
-
state$
|
|
5997
|
-
state$
|
|
5998
|
-
state$
|
|
6044
|
+
/* label */ label
|
|
6045
|
+
);
|
|
6046
|
+
state$h.picks = newPicks;
|
|
6047
|
+
state$h.visiblePicks = visiblePicks;
|
|
6048
|
+
state$h.focusedIndex = 0;
|
|
6049
|
+
state$h.state = STATE_FINISHED;
|
|
6050
|
+
state$h.minLineY = 0;
|
|
6051
|
+
state$h.maxLineY = Math.min(
|
|
6052
|
+
state$h.minLineY + state$h.maxVisibleItems,
|
|
5999
6053
|
newPicks.length - 1
|
|
6000
6054
|
);
|
|
6001
6055
|
return
|
|
6002
6056
|
}
|
|
6003
|
-
state$
|
|
6004
|
-
const version = ++state$
|
|
6057
|
+
state$h.state = STATE_CREATING;
|
|
6058
|
+
const version = ++state$h.versionId;
|
|
6005
6059
|
// TODO also pass initial value here
|
|
6006
6060
|
await invoke$1(/* Viewlet.load */ 3030, /* id */ 'QuickPick');
|
|
6007
6061
|
const newPicks = await provider.getPicks(value);
|
|
6008
6062
|
array(newPicks);
|
|
6009
|
-
if (version !== state$
|
|
6063
|
+
if (version !== state$h.versionId) {
|
|
6010
6064
|
return
|
|
6011
6065
|
}
|
|
6012
6066
|
if (newPicks.length === 0) {
|
|
6013
6067
|
const noResults = await provider.getNoResults();
|
|
6014
|
-
|
|
6068
|
+
invoke$1(
|
|
6015
6069
|
/* Viewlet.send */ 3024,
|
|
6016
6070
|
/* id */ 'QuickPick',
|
|
6017
6071
|
/* method */ 'showNoResults',
|
|
6018
6072
|
/* noResults */ noResults,
|
|
6019
|
-
/* unfocusIndex */ state$
|
|
6020
|
-
|
|
6073
|
+
/* unfocusIndex */ state$h.focusedIndex
|
|
6074
|
+
);
|
|
6021
6075
|
return
|
|
6022
6076
|
}
|
|
6023
6077
|
const filterValue = provider.getFilterValue(value);
|
|
6024
6078
|
const visiblePicks = getVisiblePicks(newPicks, filterValue);
|
|
6025
6079
|
const placeholder = provider.getPlaceholder();
|
|
6026
6080
|
const label = provider.getLabel();
|
|
6027
|
-
|
|
6081
|
+
invoke$1(
|
|
6028
6082
|
/* Viewlet.send */ 3024,
|
|
6029
6083
|
/* id */ 'QuickPick',
|
|
6030
6084
|
/* method */ 'updateValueAndPicksAndPlaceholder',
|
|
@@ -6033,33 +6087,33 @@ const show$2 = async (value, provider) => {
|
|
|
6033
6087
|
/* focusIndex */ 0,
|
|
6034
6088
|
/* unFocusIndex */ -1,
|
|
6035
6089
|
/* placeholder */ placeholder,
|
|
6036
|
-
/* label */ label
|
|
6037
|
-
|
|
6038
|
-
state$
|
|
6039
|
-
state$
|
|
6040
|
-
state$
|
|
6041
|
-
state$
|
|
6042
|
-
state$
|
|
6043
|
-
state$
|
|
6044
|
-
state$
|
|
6090
|
+
/* label */ label
|
|
6091
|
+
);
|
|
6092
|
+
state$h.picks = newPicks;
|
|
6093
|
+
state$h.visiblePicks = visiblePicks;
|
|
6094
|
+
state$h.focusedIndex = 0;
|
|
6095
|
+
state$h.state = STATE_FINISHED;
|
|
6096
|
+
state$h.minLineY = 0;
|
|
6097
|
+
state$h.maxLineY = Math.min(
|
|
6098
|
+
state$h.minLineY + state$h.maxVisibleItems,
|
|
6045
6099
|
newPicks.length - 1
|
|
6046
6100
|
);
|
|
6047
6101
|
};
|
|
6048
6102
|
|
|
6049
6103
|
const dispose$l = () => {
|
|
6050
|
-
switch (state$
|
|
6104
|
+
switch (state$h.state) {
|
|
6051
6105
|
case STATE_DEFAULT:
|
|
6052
6106
|
case STATE_CREATING:
|
|
6053
6107
|
break
|
|
6054
6108
|
case STATE_FINISHED:
|
|
6055
|
-
state$
|
|
6056
|
-
|
|
6109
|
+
state$h.state = STATE_DEFAULT;
|
|
6110
|
+
invoke$1(/* Viewlet.dispose */ 3026, /* id */ 'QuickPick');
|
|
6057
6111
|
break
|
|
6058
6112
|
}
|
|
6059
6113
|
};
|
|
6060
6114
|
|
|
6061
6115
|
const handleBlur$1 = async () => {
|
|
6062
|
-
switch (state$
|
|
6116
|
+
switch (state$h.state) {
|
|
6063
6117
|
case STATE_DEFAULT:
|
|
6064
6118
|
case STATE_CREATING:
|
|
6065
6119
|
break
|
|
@@ -6081,13 +6135,13 @@ const getPick = (state, index) => {
|
|
|
6081
6135
|
};
|
|
6082
6136
|
|
|
6083
6137
|
const selectIndex$2 = async (index, button = /* left */ 0) => {
|
|
6084
|
-
const pick = getPick(state$
|
|
6085
|
-
const versionBefore = state$
|
|
6086
|
-
const selectPickResult = await state$
|
|
6138
|
+
const pick = getPick(state$h, index);
|
|
6139
|
+
const versionBefore = state$h.versionId;
|
|
6140
|
+
const selectPickResult = await state$h.provider.selectPick(pick, index, button);
|
|
6087
6141
|
object(selectPickResult);
|
|
6088
6142
|
string(selectPickResult.command);
|
|
6089
6143
|
const { command } = selectPickResult;
|
|
6090
|
-
const versionAfter = state$
|
|
6144
|
+
const versionAfter = state$h.versionId;
|
|
6091
6145
|
if (versionBefore !== versionAfter) {
|
|
6092
6146
|
// selecting a pick might have opened another quick pick
|
|
6093
6147
|
// so there is no need to hide the quick pick
|
|
@@ -6111,22 +6165,22 @@ const selectIndex$2 = async (index, button = /* left */ 0) => {
|
|
|
6111
6165
|
};
|
|
6112
6166
|
|
|
6113
6167
|
const selectCurrentIndex = async () => {
|
|
6114
|
-
await selectIndex$2(state$
|
|
6168
|
+
await selectIndex$2(state$h.focusedIndex);
|
|
6115
6169
|
};
|
|
6116
6170
|
|
|
6117
6171
|
// TODO when user types letters -> no need to query provider again -> just filter existing results
|
|
6118
6172
|
const handleInput$2 = async (value) => {
|
|
6119
|
-
if (state$
|
|
6173
|
+
if (state$h.state === STATE_DEFAULT) {
|
|
6120
6174
|
return
|
|
6121
6175
|
}
|
|
6122
|
-
state$
|
|
6123
|
-
const version = ++state$
|
|
6176
|
+
state$h.state = STATE_CREATING;
|
|
6177
|
+
const version = ++state$h.versionId;
|
|
6124
6178
|
// TODO if provider is immutable, don't necessarily need to get new picks
|
|
6125
|
-
const newPicks = await state$
|
|
6126
|
-
if (version !== state$
|
|
6179
|
+
const newPicks = await state$h.provider.getPicks(value);
|
|
6180
|
+
if (version !== state$h.versionId) {
|
|
6127
6181
|
return
|
|
6128
6182
|
}
|
|
6129
|
-
const filterValue = state$
|
|
6183
|
+
const filterValue = state$h.provider.getFilterValue(value);
|
|
6130
6184
|
const visiblePicks = getVisiblePicks(newPicks, filterValue);
|
|
6131
6185
|
|
|
6132
6186
|
send$1([
|
|
@@ -6134,12 +6188,12 @@ const handleInput$2 = async (value) => {
|
|
|
6134
6188
|
/* id */ 'QuickPick',
|
|
6135
6189
|
/* method */ 'updatePicks',
|
|
6136
6190
|
/* picks */ visiblePicks,
|
|
6137
|
-
/* unFocusIndex */ state$
|
|
6191
|
+
/* unFocusIndex */ state$h.focusedIndex,
|
|
6138
6192
|
]);
|
|
6139
|
-
state$
|
|
6140
|
-
state$
|
|
6141
|
-
state$
|
|
6142
|
-
state$
|
|
6193
|
+
state$h.picks = newPicks;
|
|
6194
|
+
state$h.visiblePicks = visiblePicks;
|
|
6195
|
+
state$h.focusedIndex = 0;
|
|
6196
|
+
state$h.state = STATE_FINISHED;
|
|
6143
6197
|
};
|
|
6144
6198
|
|
|
6145
6199
|
// TODO use reactive Programming
|
|
@@ -6156,103 +6210,103 @@ const handleInput$2 = async (value) => {
|
|
|
6156
6210
|
//
|
|
6157
6211
|
// })
|
|
6158
6212
|
|
|
6159
|
-
const focusIndex$
|
|
6160
|
-
console.log({ index, maxLineY: state$
|
|
6161
|
-
if (index < state$
|
|
6162
|
-
state$
|
|
6163
|
-
state$
|
|
6164
|
-
index + state$
|
|
6165
|
-
state$
|
|
6213
|
+
const focusIndex$6 = async (index) => {
|
|
6214
|
+
console.log({ index, maxLineY: state$h.maxLineY });
|
|
6215
|
+
if (index < state$h.minLineY) {
|
|
6216
|
+
state$h.minLineY = index;
|
|
6217
|
+
state$h.maxLineY = Math.min(
|
|
6218
|
+
index + state$h.maxVisibleItems,
|
|
6219
|
+
state$h.filteredPicks.length - 1
|
|
6166
6220
|
);
|
|
6167
|
-
const slicedPicks = state$
|
|
6168
|
-
state$
|
|
6169
|
-
state$
|
|
6221
|
+
const slicedPicks = state$h.filteredPicks.slice(
|
|
6222
|
+
state$h.minLineY,
|
|
6223
|
+
state$h.maxLineY
|
|
6170
6224
|
);
|
|
6171
6225
|
const displayPicks = toDisplayPicks(slicedPicks);
|
|
6172
|
-
const relativeFocusIndex = index - state$
|
|
6173
|
-
const relativeUnFocusIndex = state$
|
|
6174
|
-
|
|
6226
|
+
const relativeFocusIndex = index - state$h.minLineY;
|
|
6227
|
+
const relativeUnFocusIndex = state$h.focusedIndex - state$h.minLineY;
|
|
6228
|
+
invoke$1(
|
|
6175
6229
|
/* Viewlet.send */ 3024,
|
|
6176
6230
|
/* id */ 'QuickPick',
|
|
6177
6231
|
/* method */ 'updateValueAndPicks', // TODO don't need to update value, just picks and focus
|
|
6178
|
-
/* value */ state$
|
|
6232
|
+
/* value */ state$h.value,
|
|
6179
6233
|
/* visiblePicks */ displayPicks,
|
|
6180
6234
|
/* focusIndex */ relativeFocusIndex,
|
|
6181
|
-
/* unFocusIndex */ relativeUnFocusIndex
|
|
6182
|
-
|
|
6235
|
+
/* unFocusIndex */ relativeUnFocusIndex
|
|
6236
|
+
);
|
|
6183
6237
|
// TODO need to scroll up
|
|
6184
|
-
} else if (index > state$
|
|
6238
|
+
} else if (index > state$h.maxLineY) {
|
|
6185
6239
|
// TODO need to scroll down
|
|
6186
|
-
state$
|
|
6187
|
-
state$
|
|
6188
|
-
index + state$
|
|
6189
|
-
state$
|
|
6240
|
+
state$h.minLineY = Math.max(0, index - state$h.maxVisibleItems);
|
|
6241
|
+
state$h.maxLineY = Math.min(
|
|
6242
|
+
index + state$h.maxVisibleItems - 1,
|
|
6243
|
+
state$h.filteredPicks.length - 1
|
|
6190
6244
|
);
|
|
6191
|
-
const slicedPicks = state$
|
|
6192
|
-
state$
|
|
6193
|
-
state$
|
|
6245
|
+
const slicedPicks = state$h.filteredPicks.slice(
|
|
6246
|
+
state$h.minLineY,
|
|
6247
|
+
state$h.maxLineY
|
|
6194
6248
|
);
|
|
6195
6249
|
console.log(
|
|
6196
6250
|
'scroll down',
|
|
6197
6251
|
index,
|
|
6198
|
-
state$
|
|
6199
|
-
state$
|
|
6252
|
+
state$h.minLineY,
|
|
6253
|
+
state$h.maxLineY,
|
|
6200
6254
|
slicedPicks
|
|
6201
6255
|
);
|
|
6202
6256
|
const displayPicks = toDisplayPicks(slicedPicks);
|
|
6203
|
-
const relativeFocusIndex = index - state$
|
|
6204
|
-
const relativeUnFocusIndex = state$
|
|
6257
|
+
const relativeFocusIndex = index - state$h.minLineY;
|
|
6258
|
+
const relativeUnFocusIndex = state$h.focusedIndex - state$h.minLineY;
|
|
6205
6259
|
console.log({
|
|
6206
6260
|
relativeFocusIndex,
|
|
6207
6261
|
relativeUnFocusIndex,
|
|
6208
6262
|
});
|
|
6209
|
-
|
|
6263
|
+
invoke$1(
|
|
6210
6264
|
/* Viewlet.send */ 3024,
|
|
6211
6265
|
/* id */ 'QuickPick',
|
|
6212
6266
|
/* method */ 'updateValueAndPicks', // TODO don't need to update value, just picks and focus
|
|
6213
|
-
/* value */ state$
|
|
6267
|
+
/* value */ state$h.value,
|
|
6214
6268
|
/* visiblePicks */ displayPicks,
|
|
6215
6269
|
/* focusIndex */ relativeFocusIndex,
|
|
6216
|
-
/* unFocusIndex */ relativeUnFocusIndex
|
|
6217
|
-
|
|
6270
|
+
/* unFocusIndex */ relativeUnFocusIndex
|
|
6271
|
+
);
|
|
6218
6272
|
} else {
|
|
6219
|
-
|
|
6273
|
+
invoke$1(
|
|
6220
6274
|
/* Viewlet.send */ 3024,
|
|
6221
6275
|
/* id */ 'QuickPick',
|
|
6222
6276
|
/* method */ 'focusIndex',
|
|
6223
|
-
/* unFocusIndex */ state$
|
|
6224
|
-
/* index */ index
|
|
6225
|
-
|
|
6277
|
+
/* unFocusIndex */ state$h.focusedIndex,
|
|
6278
|
+
/* index */ index
|
|
6279
|
+
);
|
|
6226
6280
|
}
|
|
6227
6281
|
|
|
6228
|
-
state$
|
|
6282
|
+
state$h.focusedIndex = index;
|
|
6229
6283
|
// TODO get types working
|
|
6230
6284
|
// @ts-ignore
|
|
6231
|
-
if (state$
|
|
6285
|
+
if (state$h.provider.focusPick) {
|
|
6232
6286
|
// @ts-ignore
|
|
6233
|
-
await state$
|
|
6287
|
+
await state$h.provider.focusPick(state$h.filteredPicks[index]);
|
|
6234
6288
|
}
|
|
6235
6289
|
};
|
|
6236
6290
|
|
|
6237
6291
|
const focusFirst$5 = async () => {
|
|
6238
|
-
await focusIndex$
|
|
6292
|
+
await focusIndex$6(0);
|
|
6239
6293
|
};
|
|
6240
6294
|
|
|
6241
6295
|
const focusLast$5 = async () => {
|
|
6242
|
-
await focusIndex$
|
|
6296
|
+
await focusIndex$6(state$h.filteredPicks.length - 1);
|
|
6243
6297
|
};
|
|
6244
6298
|
|
|
6245
6299
|
const focusPrevious$5 = async () => {
|
|
6246
6300
|
const previousIndex =
|
|
6247
|
-
state$
|
|
6248
|
-
? state$
|
|
6249
|
-
: state$
|
|
6250
|
-
await focusIndex$
|
|
6301
|
+
state$h.focusedIndex === 0
|
|
6302
|
+
? state$h.filteredPicks.length - 1
|
|
6303
|
+
: state$h.focusedIndex - 1;
|
|
6304
|
+
await focusIndex$6(previousIndex);
|
|
6251
6305
|
};
|
|
6252
6306
|
|
|
6253
6307
|
const focusNext$5 = async () => {
|
|
6254
|
-
const nextIndex = (state$
|
|
6255
|
-
await focusIndex$
|
|
6308
|
+
const nextIndex = (state$h.focusedIndex + 1) % state$h.filteredPicks.length;
|
|
6309
|
+
await focusIndex$6(nextIndex);
|
|
6256
6310
|
};
|
|
6257
6311
|
|
|
6258
6312
|
// TODO not sure these should be in this file
|
|
@@ -6315,7 +6369,7 @@ const showExtensionsQuickPick = async (items) => {
|
|
|
6315
6369
|
await show$2('', provider);
|
|
6316
6370
|
};
|
|
6317
6371
|
|
|
6318
|
-
const __initialize__$
|
|
6372
|
+
const __initialize__$P = () => {
|
|
6319
6373
|
register$2(71179, openEverythingQuickPick);
|
|
6320
6374
|
register$2(71178, dispose$l);
|
|
6321
6375
|
register$2(71180, selectCurrentIndex);
|
|
@@ -6337,7 +6391,7 @@ const __initialize__$O = () => {
|
|
|
6337
6391
|
|
|
6338
6392
|
var QuickPick_ipc = {
|
|
6339
6393
|
__proto__: null,
|
|
6340
|
-
__initialize__: __initialize__$
|
|
6394
|
+
__initialize__: __initialize__$P
|
|
6341
6395
|
};
|
|
6342
6396
|
|
|
6343
6397
|
const name$m = 'Panel';
|
|
@@ -6437,7 +6491,7 @@ var ViewletPanel = {
|
|
|
6437
6491
|
tabsHandleClick: tabsHandleClick
|
|
6438
6492
|
};
|
|
6439
6493
|
|
|
6440
|
-
const __initialize__$
|
|
6494
|
+
const __initialize__$O = () => {
|
|
6441
6495
|
register$2(711, wrapViewletCommand('Panel', tabsHandleClick));
|
|
6442
6496
|
register$2(712, wrapViewletCommand('Panel', openViewlet$1));
|
|
6443
6497
|
register$2(713, create$p);
|
|
@@ -6445,23 +6499,23 @@ const __initialize__$N = () => {
|
|
|
6445
6499
|
|
|
6446
6500
|
var Panel_ipc = {
|
|
6447
6501
|
__proto__: null,
|
|
6448
|
-
__initialize__: __initialize__$
|
|
6502
|
+
__initialize__: __initialize__$O
|
|
6449
6503
|
};
|
|
6450
6504
|
|
|
6451
|
-
const state$
|
|
6505
|
+
const state$g = {
|
|
6452
6506
|
id: 0,
|
|
6453
6507
|
};
|
|
6454
6508
|
|
|
6455
6509
|
const create$o = () => {
|
|
6456
|
-
return ++state$
|
|
6510
|
+
return ++state$g.id
|
|
6457
6511
|
};
|
|
6458
6512
|
|
|
6459
|
-
const state$
|
|
6513
|
+
const state$f = {
|
|
6460
6514
|
activeWidget: undefined,
|
|
6461
6515
|
};
|
|
6462
6516
|
|
|
6463
6517
|
const create$n = ({ getText }) => {
|
|
6464
|
-
state$
|
|
6518
|
+
state$f.activeWidget = {
|
|
6465
6519
|
id: create$o(),
|
|
6466
6520
|
searchValue: '',
|
|
6467
6521
|
// TODO how does find widget get text from editor? Both are complete separated
|
|
@@ -6470,7 +6524,7 @@ const create$n = ({ getText }) => {
|
|
|
6470
6524
|
};
|
|
6471
6525
|
send$1([
|
|
6472
6526
|
/* FindWidget.create */ 4100,
|
|
6473
|
-
/* id */ state$
|
|
6527
|
+
/* id */ state$f.activeWidget.id,
|
|
6474
6528
|
]);
|
|
6475
6529
|
};
|
|
6476
6530
|
|
|
@@ -6490,8 +6544,8 @@ const update = async (widget) => {
|
|
|
6490
6544
|
};
|
|
6491
6545
|
|
|
6492
6546
|
const setValue$1 = async (value) => {
|
|
6493
|
-
state$
|
|
6494
|
-
update(state$
|
|
6547
|
+
state$f.activeWidget.value = value;
|
|
6548
|
+
update(state$f.activeWidget);
|
|
6495
6549
|
};
|
|
6496
6550
|
|
|
6497
6551
|
const previousMatch = () => {};
|
|
@@ -6499,19 +6553,19 @@ const previousMatch = () => {};
|
|
|
6499
6553
|
const nextMatch = () => {};
|
|
6500
6554
|
|
|
6501
6555
|
const dispose$j = () => {
|
|
6502
|
-
if (!state$
|
|
6556
|
+
if (!state$f.activeWidget) {
|
|
6503
6557
|
return
|
|
6504
6558
|
}
|
|
6505
6559
|
send$1([
|
|
6506
6560
|
/* FindWidget.dispose */ 4102,
|
|
6507
|
-
/* id */ state$
|
|
6561
|
+
/* id */ state$f.activeWidget.id,
|
|
6508
6562
|
]);
|
|
6509
|
-
state$
|
|
6563
|
+
state$f.activeWidget = undefined;
|
|
6510
6564
|
};
|
|
6511
6565
|
|
|
6512
6566
|
var FindWidget = {
|
|
6513
6567
|
__proto__: null,
|
|
6514
|
-
state: state$
|
|
6568
|
+
state: state$f,
|
|
6515
6569
|
create: create$n,
|
|
6516
6570
|
setValue: setValue$1,
|
|
6517
6571
|
previousMatch: previousMatch,
|
|
@@ -6519,7 +6573,7 @@ var FindWidget = {
|
|
|
6519
6573
|
dispose: dispose$j
|
|
6520
6574
|
};
|
|
6521
6575
|
|
|
6522
|
-
const __initialize__$
|
|
6576
|
+
const __initialize__$N = () => {
|
|
6523
6577
|
register$2(212333, create$n);
|
|
6524
6578
|
register$2(212334, dispose$j);
|
|
6525
6579
|
register$2(4101, setValue$1);
|
|
@@ -6528,10 +6582,10 @@ const __initialize__$M = () => {
|
|
|
6528
6582
|
|
|
6529
6583
|
var FindWidget_ipc = {
|
|
6530
6584
|
__proto__: null,
|
|
6531
|
-
__initialize__: __initialize__$
|
|
6585
|
+
__initialize__: __initialize__$N
|
|
6532
6586
|
};
|
|
6533
6587
|
|
|
6534
|
-
const __initialize__$
|
|
6588
|
+
const __initialize__$M = () => {
|
|
6535
6589
|
register$2(1200, openSettingsJson);
|
|
6536
6590
|
register$2(1201, openSettingsJson);
|
|
6537
6591
|
// TODO rename to openKeyBindingsJson -> similar to openSettingsJson
|
|
@@ -6542,7 +6596,7 @@ const __initialize__$L = () => {
|
|
|
6542
6596
|
|
|
6543
6597
|
var Preferences_ipc = {
|
|
6544
6598
|
__proto__: null,
|
|
6545
|
-
__initialize__: __initialize__$
|
|
6599
|
+
__initialize__: __initialize__$M
|
|
6546
6600
|
};
|
|
6547
6601
|
|
|
6548
6602
|
const BYTE_UNITS = [
|
|
@@ -6995,8 +7049,8 @@ const getMemoryUsageContent = async () => {
|
|
|
6995
7049
|
extensionHostMemoryUsage
|
|
6996
7050
|
);
|
|
6997
7051
|
const rendererWorkerMemoryUsage = await getRendererWorkerMemoryUsage();
|
|
6998
|
-
const totalSent = state$
|
|
6999
|
-
const totalReceived = state$
|
|
7052
|
+
const totalSent = state$A.totalSent;
|
|
7053
|
+
const totalReceived = state$A.totalReceived;
|
|
7000
7054
|
const formattedRendererWorkerMemoryUsage = formatRendererWorkerData({
|
|
7001
7055
|
memory: rendererWorkerMemoryUsage.memory,
|
|
7002
7056
|
userAgentSpecificMemory: rendererWorkerMemoryUsage.userAgentSpecificMemory,
|
|
@@ -7054,14 +7108,14 @@ const allocateMemoryInSharedProcess = async () => {
|
|
|
7054
7108
|
);
|
|
7055
7109
|
};
|
|
7056
7110
|
|
|
7057
|
-
const crashSharedProcess = () => {
|
|
7058
|
-
|
|
7111
|
+
const crashSharedProcess = async () => {
|
|
7112
|
+
await invoke$2(
|
|
7059
7113
|
/* Developer.crashSharedProcess */ 'Developer.crashSharedProcess'
|
|
7060
7114
|
);
|
|
7061
7115
|
};
|
|
7062
7116
|
|
|
7063
|
-
const crashMainProcess = () => {
|
|
7064
|
-
|
|
7117
|
+
const crashMainProcess = async () => {
|
|
7118
|
+
await invoke$2(
|
|
7065
7119
|
/* Electron.crashMainProcess */ 'Electron.crashMainProcess'
|
|
7066
7120
|
);
|
|
7067
7121
|
};
|
|
@@ -7075,8 +7129,10 @@ const openLogsFolder = async () => {
|
|
|
7075
7129
|
await execute$1(/* Open.openNativeFolder */ 1370, /* path */ logsFolder);
|
|
7076
7130
|
};
|
|
7077
7131
|
|
|
7078
|
-
const toggleDeveloperTools = () => {
|
|
7079
|
-
|
|
7132
|
+
const toggleDeveloperTools = async () => {
|
|
7133
|
+
await invoke$2(
|
|
7134
|
+
/* Electron.toggleDevtools */ 'Electron.toggleDevtools'
|
|
7135
|
+
);
|
|
7080
7136
|
};
|
|
7081
7137
|
|
|
7082
7138
|
const showIconThemeCss = async () => {
|
|
@@ -7144,7 +7200,7 @@ const openProcessExplorer = async () => {
|
|
|
7144
7200
|
);
|
|
7145
7201
|
};
|
|
7146
7202
|
|
|
7147
|
-
const __initialize__$
|
|
7203
|
+
const __initialize__$L = () => {
|
|
7148
7204
|
register$2(820, getStartupPerformanceContent);
|
|
7149
7205
|
register$2(821, getMemoryUsageContent);
|
|
7150
7206
|
register$2(822, allocateMemoryInSharedProcess);
|
|
@@ -7170,15 +7226,15 @@ const __initialize__$K = () => {
|
|
|
7170
7226
|
|
|
7171
7227
|
var Developer_ipc = {
|
|
7172
7228
|
__proto__: null,
|
|
7173
|
-
__initialize__: __initialize__$
|
|
7229
|
+
__initialize__: __initialize__$L
|
|
7174
7230
|
};
|
|
7175
7231
|
|
|
7176
|
-
const state$
|
|
7232
|
+
const state$e = {
|
|
7177
7233
|
blurListeners: [],
|
|
7178
7234
|
};
|
|
7179
7235
|
|
|
7180
7236
|
const editorBlur = (editor) => {
|
|
7181
|
-
for (const listener of state$
|
|
7237
|
+
for (const listener of state$e.blurListeners) {
|
|
7182
7238
|
listener(editor);
|
|
7183
7239
|
}
|
|
7184
7240
|
// TODO save on blur
|
|
@@ -7187,7 +7243,7 @@ const editorBlur = (editor) => {
|
|
|
7187
7243
|
};
|
|
7188
7244
|
|
|
7189
7245
|
const removeListener = (fn) => {
|
|
7190
|
-
state$
|
|
7246
|
+
state$e.blurListeners.splice(state$e.blurListeners.indexOf(fn), 1);
|
|
7191
7247
|
};
|
|
7192
7248
|
|
|
7193
7249
|
// based on https://github.com/microsoft/vscode/blob/c0769274fa136b45799edeccc0d0a2f645b75caf/src/vs/base/common/arrays.ts#L625 (License MIT)
|
|
@@ -7430,7 +7486,7 @@ var TokenizePlainText = {
|
|
|
7430
7486
|
tokenizeLine: tokenizeLine
|
|
7431
7487
|
};
|
|
7432
7488
|
|
|
7433
|
-
const state$
|
|
7489
|
+
const state$d = {
|
|
7434
7490
|
tokenizers: Object.create(null),
|
|
7435
7491
|
tokenizePaths: Object.create(null),
|
|
7436
7492
|
listeners: [],
|
|
@@ -7439,7 +7495,7 @@ const state$g = {
|
|
|
7439
7495
|
|
|
7440
7496
|
// TODO more dynamic: should come from extensions anywhere on file system
|
|
7441
7497
|
const getTokenizePath = (languageId) => {
|
|
7442
|
-
for (const language of state$
|
|
7498
|
+
for (const language of state$t.languages) {
|
|
7443
7499
|
if (language.id === languageId && language.tokenize) {
|
|
7444
7500
|
return language.tokenize
|
|
7445
7501
|
}
|
|
@@ -7449,7 +7505,7 @@ const getTokenizePath = (languageId) => {
|
|
|
7449
7505
|
|
|
7450
7506
|
// TODO loadTokenizer should be invoked from renderer worker
|
|
7451
7507
|
const loadTokenizer = async (languageId) => {
|
|
7452
|
-
if (languageId in state$
|
|
7508
|
+
if (languageId in state$d.tokenizers) {
|
|
7453
7509
|
return
|
|
7454
7510
|
}
|
|
7455
7511
|
const tokenizePath = getTokenizePath(languageId);
|
|
@@ -7477,9 +7533,9 @@ const loadTokenizer = async (languageId) => {
|
|
|
7477
7533
|
);
|
|
7478
7534
|
return
|
|
7479
7535
|
}
|
|
7480
|
-
state$
|
|
7536
|
+
state$d.tokenizers[languageId] = tokenizer;
|
|
7481
7537
|
} catch (error) {
|
|
7482
|
-
state$
|
|
7538
|
+
state$d.tokenizers[languageId] = TokenizePlainText;
|
|
7483
7539
|
// TODO better error handling
|
|
7484
7540
|
console.error(error);
|
|
7485
7541
|
return
|
|
@@ -7488,10 +7544,10 @@ const loadTokenizer = async (languageId) => {
|
|
|
7488
7544
|
};
|
|
7489
7545
|
|
|
7490
7546
|
const getTokenizer = (languageId) => {
|
|
7491
|
-
if (languageId in state$
|
|
7492
|
-
return state$
|
|
7547
|
+
if (languageId in state$d.tokenizers) {
|
|
7548
|
+
return state$d.tokenizers[languageId]
|
|
7493
7549
|
}
|
|
7494
|
-
if (languageId in state$
|
|
7550
|
+
if (languageId in state$d.pending) {
|
|
7495
7551
|
return TokenizePlainText
|
|
7496
7552
|
}
|
|
7497
7553
|
return TokenizePlainText
|
|
@@ -8549,7 +8605,7 @@ const openFromType = async (editor, text) => {
|
|
|
8549
8605
|
// } else if (state.isOpened) {
|
|
8550
8606
|
// await close()
|
|
8551
8607
|
// }
|
|
8552
|
-
return state$
|
|
8608
|
+
return state$m.instances['EditorText'].state
|
|
8553
8609
|
};
|
|
8554
8610
|
|
|
8555
8611
|
const close$3 = async (editor) => {
|
|
@@ -8560,13 +8616,13 @@ const close$3 = async (editor) => {
|
|
|
8560
8616
|
return editor
|
|
8561
8617
|
};
|
|
8562
8618
|
|
|
8563
|
-
const state$
|
|
8619
|
+
const state$c = {
|
|
8564
8620
|
isComposing: false,
|
|
8565
8621
|
compositionText: '',
|
|
8566
8622
|
};
|
|
8567
8623
|
|
|
8568
8624
|
const editorCompositionStart = (editor, event) => {
|
|
8569
|
-
state$
|
|
8625
|
+
state$c.isComposing = true;
|
|
8570
8626
|
console.log({ event });
|
|
8571
8627
|
console.log('composition start');
|
|
8572
8628
|
return editor
|
|
@@ -8577,7 +8633,7 @@ const getCompositionChanges = (editor, data) => {
|
|
|
8577
8633
|
for (const selection of editor.selections) {
|
|
8578
8634
|
const startRowIndex = selection.start.rowIndex;
|
|
8579
8635
|
const startColumnIndex =
|
|
8580
|
-
selection.start.columnIndex - state$
|
|
8636
|
+
selection.start.columnIndex - state$c.compositionText.length;
|
|
8581
8637
|
changes.push({
|
|
8582
8638
|
start: {
|
|
8583
8639
|
rowIndex: startRowIndex,
|
|
@@ -8585,7 +8641,7 @@ const getCompositionChanges = (editor, data) => {
|
|
|
8585
8641
|
},
|
|
8586
8642
|
end: selection.end,
|
|
8587
8643
|
inserted: [data],
|
|
8588
|
-
deleted: [state$
|
|
8644
|
+
deleted: [state$c.compositionText],
|
|
8589
8645
|
origin: 'compositionUpdate',
|
|
8590
8646
|
});
|
|
8591
8647
|
}
|
|
@@ -8595,15 +8651,15 @@ const getCompositionChanges = (editor, data) => {
|
|
|
8595
8651
|
const editorCompositionUpdate = (editor, data) => {
|
|
8596
8652
|
const changes = getCompositionChanges(editor, data);
|
|
8597
8653
|
console.log('composition update', { changes });
|
|
8598
|
-
state$
|
|
8654
|
+
state$c.compositionText = data;
|
|
8599
8655
|
return scheduleDocumentAndCursorsSelections(editor, changes)
|
|
8600
8656
|
};
|
|
8601
8657
|
|
|
8602
8658
|
const editorCompositionEnd = (editor, data) => {
|
|
8603
8659
|
const changes = getCompositionChanges(editor, data);
|
|
8604
8660
|
console.log('composition end', { changes });
|
|
8605
|
-
state$
|
|
8606
|
-
state$
|
|
8661
|
+
state$c.isComposing = false;
|
|
8662
|
+
state$c.compositionText = '';
|
|
8607
8663
|
return scheduleDocumentAndCursorsSelections(editor, changes)
|
|
8608
8664
|
};
|
|
8609
8665
|
|
|
@@ -9306,7 +9362,7 @@ const executeDefinitionProvider = async (editor, offset) => {
|
|
|
9306
9362
|
)
|
|
9307
9363
|
};
|
|
9308
9364
|
|
|
9309
|
-
const state$
|
|
9365
|
+
const state$b = {
|
|
9310
9366
|
timeout: -1,
|
|
9311
9367
|
};
|
|
9312
9368
|
|
|
@@ -9329,14 +9385,16 @@ const editorShowMessage = async (editor, position, message) => {
|
|
|
9329
9385
|
console.log('ran timeout fn');
|
|
9330
9386
|
editorHideMessage(editor);
|
|
9331
9387
|
};
|
|
9388
|
+
|
|
9389
|
+
// TODO use wrapper timing module instead of this
|
|
9332
9390
|
// @ts-ignore
|
|
9333
|
-
state$
|
|
9391
|
+
state$b.timeout = setTimeout(handleTimeout, 3_000);
|
|
9334
9392
|
return editor
|
|
9335
9393
|
};
|
|
9336
9394
|
|
|
9337
9395
|
const editorHideMessage = async (editor) => {
|
|
9338
|
-
clearTimeout(state$
|
|
9339
|
-
state$
|
|
9396
|
+
clearTimeout(state$b.timeout);
|
|
9397
|
+
state$b.timeout = -1;
|
|
9340
9398
|
await invoke$1(
|
|
9341
9399
|
/* Viewlet.send */ 3024,
|
|
9342
9400
|
/* id */ 'EditorText',
|
|
@@ -9552,7 +9610,7 @@ const editorHandleNativeSelectionChange = (editor, range) => {
|
|
|
9552
9610
|
return scheduleSelections(editor, selections)
|
|
9553
9611
|
};
|
|
9554
9612
|
|
|
9555
|
-
const state$
|
|
9613
|
+
const state$a = {
|
|
9556
9614
|
/**
|
|
9557
9615
|
* Offset at which scrollbar thumb has been clicked
|
|
9558
9616
|
*/
|
|
@@ -9590,14 +9648,14 @@ const editorHandleScrollBarClick = (editor, y) => {
|
|
|
9590
9648
|
const diff = relativeY - currentScrollBarY;
|
|
9591
9649
|
console.log({ diff });
|
|
9592
9650
|
if (diff >= 0 && diff < editor.scrollBarHeight) {
|
|
9593
|
-
state$
|
|
9651
|
+
state$a.handleOffset = diff;
|
|
9594
9652
|
console.log({ handleOffset: diff });
|
|
9595
9653
|
return editor
|
|
9596
9654
|
}
|
|
9597
9655
|
const newPercent = getNewDeltaPercent$1(editor, relativeY);
|
|
9598
9656
|
console.log({ newPercent });
|
|
9599
9657
|
// TODO
|
|
9600
|
-
state$
|
|
9658
|
+
state$a.handleOffset = editor.scrollBarHeight / 2;
|
|
9601
9659
|
// TODO when diff is greater, position scrollbar in the middle around cursor
|
|
9602
9660
|
const newDeltaY = newPercent * editor.finalDeltaY;
|
|
9603
9661
|
return setDeltaYFixedValue(editor, newDeltaY)
|
|
@@ -9620,8 +9678,8 @@ const getNewPercent$1 = (editor, relativeY) => {
|
|
|
9620
9678
|
|
|
9621
9679
|
const editorHandleScrollBarMove = (editor, y) => {
|
|
9622
9680
|
const relativeY =
|
|
9623
|
-
y - editor.top - state$
|
|
9624
|
-
console.log('handle offset', state$
|
|
9681
|
+
y - editor.top - state$a.handleOffset;
|
|
9682
|
+
console.log('handle offset', state$a.handleOffset);
|
|
9625
9683
|
const newPercent = getNewPercent$1(editor, relativeY);
|
|
9626
9684
|
const newDeltaY = newPercent * editor.finalDeltaY;
|
|
9627
9685
|
return setDeltaYFixedValue(editor, newDeltaY)
|
|
@@ -9629,7 +9687,7 @@ const editorHandleScrollBarMove = (editor, y) => {
|
|
|
9629
9687
|
|
|
9630
9688
|
// TODO not sure where this state should be
|
|
9631
9689
|
// TODO maybe rename to selection anchor
|
|
9632
|
-
const state$
|
|
9690
|
+
const state$9 = {
|
|
9633
9691
|
position: {
|
|
9634
9692
|
rowIndex: 0,
|
|
9635
9693
|
columnIndex: 0,
|
|
@@ -9684,7 +9742,7 @@ const editorMoveSelectionForwards = (editor, anchor, position) => {
|
|
|
9684
9742
|
};
|
|
9685
9743
|
|
|
9686
9744
|
const editorMoveSelection = (editor, position) => {
|
|
9687
|
-
const anchor = state$
|
|
9745
|
+
const anchor = state$9.position;
|
|
9688
9746
|
// TODO if selection equals previous selection -> do nothing
|
|
9689
9747
|
switch (compare(position, anchor)) {
|
|
9690
9748
|
case -1:
|
|
@@ -9722,10 +9780,10 @@ const editorHandleSingleClick = async (
|
|
|
9722
9780
|
return newEditor
|
|
9723
9781
|
}
|
|
9724
9782
|
}
|
|
9725
|
-
state$
|
|
9783
|
+
state$9.position = position;
|
|
9726
9784
|
return editorCursorSet(
|
|
9727
9785
|
editor,
|
|
9728
|
-
state$
|
|
9786
|
+
state$9.position
|
|
9729
9787
|
)
|
|
9730
9788
|
};
|
|
9731
9789
|
|
|
@@ -9869,7 +9927,7 @@ const isSlash = (text) => {
|
|
|
9869
9927
|
};
|
|
9870
9928
|
|
|
9871
9929
|
const editorTypeWithBraceCompletion = async (editor, text) => {
|
|
9872
|
-
if (!state$
|
|
9930
|
+
if (!state$t.loaded) {
|
|
9873
9931
|
await waitForLoad();
|
|
9874
9932
|
}
|
|
9875
9933
|
editor.languageId = getLanguageId(editor.uri); // TODO avoid side effect here
|
|
@@ -9892,7 +9950,7 @@ const editorTypeWithBraceCompletion = async (editor, text) => {
|
|
|
9892
9950
|
};
|
|
9893
9951
|
|
|
9894
9952
|
const editorTypeWithSlashCompletion = async (editor, text) => {
|
|
9895
|
-
if (!state$
|
|
9953
|
+
if (!state$t.loaded) {
|
|
9896
9954
|
await waitForLoad();
|
|
9897
9955
|
}
|
|
9898
9956
|
editor.languageId = getLanguageId(editor.uri); // TODO avoid side effect here
|
|
@@ -10000,7 +10058,7 @@ const editorHandleTab = async (editor) => {
|
|
|
10000
10058
|
|
|
10001
10059
|
// main()
|
|
10002
10060
|
|
|
10003
|
-
const state$
|
|
10061
|
+
const state$8 = {
|
|
10004
10062
|
touchOffsetY: 0,
|
|
10005
10063
|
deltaY: 0,
|
|
10006
10064
|
};
|
|
@@ -10011,8 +10069,8 @@ const editorHandleTouchStart = (editor, touchEvent) => {
|
|
|
10011
10069
|
}
|
|
10012
10070
|
console.log('touch start');
|
|
10013
10071
|
const firstTouch = touchEvent.touches[0];
|
|
10014
|
-
state$
|
|
10015
|
-
state$
|
|
10072
|
+
state$8.touchOffsetY = firstTouch.y;
|
|
10073
|
+
state$8.deltaY = editor.deltaY;
|
|
10016
10074
|
// const position = EditorPosition.at(editor, firstTouch.x, firstTouch.y)
|
|
10017
10075
|
// EditorMoveSelection.state.position = position
|
|
10018
10076
|
// state.date = Date.now()
|
|
@@ -10027,10 +10085,10 @@ const editorHandleTouchEnd = (editor, touchEvent) => {
|
|
|
10027
10085
|
const firstTouch = touchEvent.changedTouches[0];
|
|
10028
10086
|
const position = at(editor, firstTouch.x, firstTouch.y);
|
|
10029
10087
|
if (
|
|
10030
|
-
state$
|
|
10031
|
-
state$
|
|
10088
|
+
state$9.position.rowIndex === position.rowIndex &&
|
|
10089
|
+
state$9.position.columnIndex === position.columnIndex
|
|
10032
10090
|
) {
|
|
10033
|
-
if (Date.now() - state$
|
|
10091
|
+
if (Date.now() - state$8.date > LONG_TOUCH_THRESHOLD) {
|
|
10034
10092
|
editorSelectWord(
|
|
10035
10093
|
editor,
|
|
10036
10094
|
position.rowIndex,
|
|
@@ -10198,7 +10256,7 @@ const editorMoveLineUp = (editor) => {
|
|
|
10198
10256
|
};
|
|
10199
10257
|
|
|
10200
10258
|
const editorMoveRectangleSelection = (editor, position) => {
|
|
10201
|
-
const anchor = state$
|
|
10259
|
+
const anchor = state$9.position;
|
|
10202
10260
|
const startRowIndex = anchor.rowIndex;
|
|
10203
10261
|
const startColumnIndex = anchor.columnIndex;
|
|
10204
10262
|
const endRowIndex = position.rowIndex;
|
|
@@ -10260,7 +10318,7 @@ const editorSave = async (editor) => {
|
|
|
10260
10318
|
const betterError = new Error(`Failed to save file "${uri}"`, {
|
|
10261
10319
|
cause: error,
|
|
10262
10320
|
});
|
|
10263
|
-
await
|
|
10321
|
+
await handleError$1(betterError);
|
|
10264
10322
|
return
|
|
10265
10323
|
}
|
|
10266
10324
|
await emitEvent('editor.save', editor);
|
|
@@ -11207,12 +11265,12 @@ const setLanguageId = async (editor, languageId) => {
|
|
|
11207
11265
|
await loadTokenizer(languageId);
|
|
11208
11266
|
const tokenizer = getTokenizer(languageId);
|
|
11209
11267
|
if (tokenizer === editor.tokenizer) {
|
|
11210
|
-
return state$
|
|
11268
|
+
return state$m.instances['EditorText'].state
|
|
11211
11269
|
}
|
|
11212
11270
|
// TODO update syntax highlighting
|
|
11213
11271
|
// TODO get edits
|
|
11214
11272
|
|
|
11215
|
-
const latestEditor = state$
|
|
11273
|
+
const latestEditor = state$m.instances['EditorText'].state;
|
|
11216
11274
|
|
|
11217
11275
|
return {
|
|
11218
11276
|
...latestEditor,
|
|
@@ -11441,7 +11499,7 @@ const setDecorations = (editor, decorations) => {
|
|
|
11441
11499
|
}
|
|
11442
11500
|
};
|
|
11443
11501
|
|
|
11444
|
-
const __initialize__$
|
|
11502
|
+
const __initialize__$K = () => {
|
|
11445
11503
|
register$2(341, wrapViewletCommand('EditorText', editorCursorsDown));
|
|
11446
11504
|
register$2(342, wrapViewletCommand('EditorText', editorCursorCharacterLeft));
|
|
11447
11505
|
register$2(343, wrapViewletCommand('EditorText', editorCursorsCharacterRight));
|
|
@@ -11530,17 +11588,17 @@ const __initialize__$J = () => {
|
|
|
11530
11588
|
|
|
11531
11589
|
var EditorCommand_ipc = {
|
|
11532
11590
|
__proto__: null,
|
|
11533
|
-
__initialize__: __initialize__$
|
|
11591
|
+
__initialize__: __initialize__$K
|
|
11534
11592
|
};
|
|
11535
11593
|
|
|
11536
|
-
const __initialize__$
|
|
11594
|
+
const __initialize__$J = () => {
|
|
11537
11595
|
register$2(1422, handleKeyBinding);
|
|
11538
11596
|
register$2(1423, hydrate$6);
|
|
11539
11597
|
};
|
|
11540
11598
|
|
|
11541
11599
|
var KeyBindings_ipc = {
|
|
11542
11600
|
__proto__: null,
|
|
11543
|
-
__initialize__: __initialize__$
|
|
11601
|
+
__initialize__: __initialize__$J
|
|
11544
11602
|
};
|
|
11545
11603
|
|
|
11546
11604
|
const openNativeFolder = async (absolutePath) => {
|
|
@@ -11560,14 +11618,14 @@ const openCachedExtensionsFolder = async () => {
|
|
|
11560
11618
|
await openNativeFolder(cachedExtensionsFolder);
|
|
11561
11619
|
};
|
|
11562
11620
|
|
|
11563
|
-
const __initialize__$
|
|
11621
|
+
const __initialize__$I = () => {
|
|
11564
11622
|
register$2(7650, openExtensionsFolder);
|
|
11565
11623
|
register$2(7651, openCachedExtensionsFolder);
|
|
11566
11624
|
};
|
|
11567
11625
|
|
|
11568
11626
|
var Extensions_ipc = {
|
|
11569
11627
|
__proto__: null,
|
|
11570
|
-
__initialize__: __initialize__$
|
|
11628
|
+
__initialize__: __initialize__$I
|
|
11571
11629
|
};
|
|
11572
11630
|
|
|
11573
11631
|
// TODO viewlet should only have create and refresh functions
|
|
@@ -11663,7 +11721,7 @@ const create$k = (id, uri, left, top, width, height) => {
|
|
|
11663
11721
|
return {
|
|
11664
11722
|
root: '',
|
|
11665
11723
|
dirents: [],
|
|
11666
|
-
focusedIndex: -
|
|
11724
|
+
focusedIndex: -2,
|
|
11667
11725
|
hoverIndex: -1,
|
|
11668
11726
|
top,
|
|
11669
11727
|
left,
|
|
@@ -11682,7 +11740,7 @@ const getPathSeparator = (root) => {
|
|
|
11682
11740
|
};
|
|
11683
11741
|
|
|
11684
11742
|
const loadContent$k = async (state) => {
|
|
11685
|
-
const root = state$
|
|
11743
|
+
const root = state$w.workspacePath;
|
|
11686
11744
|
const pathSeparator = await getPathSeparator(root); // TODO only load path separator once
|
|
11687
11745
|
const dirents = await getTopLevelDirents({ root, pathSeparator });
|
|
11688
11746
|
return {
|
|
@@ -11735,9 +11793,9 @@ const contentLoadedEffects$3 = (state) => {
|
|
|
11735
11793
|
|
|
11736
11794
|
// TODO hoist function
|
|
11737
11795
|
addListener('workspace.change', async () => {
|
|
11738
|
-
state.root = state$
|
|
11796
|
+
state.root = state$w.workspacePath;
|
|
11739
11797
|
const newState = await loadContent$k(state);
|
|
11740
|
-
state$
|
|
11798
|
+
state$m.instances['Explorer'].state = newState;
|
|
11741
11799
|
await contentLoaded$k(newState);
|
|
11742
11800
|
// TODO
|
|
11743
11801
|
});
|
|
@@ -11846,7 +11904,7 @@ const removeDirent = async (state) => {
|
|
|
11846
11904
|
|
|
11847
11905
|
// TODO removing of file and setting focus should happen at the same time
|
|
11848
11906
|
await scheduleDirents(state);
|
|
11849
|
-
await focusIndex$
|
|
11907
|
+
await focusIndex$5(state, indexToFocus);
|
|
11850
11908
|
};
|
|
11851
11909
|
|
|
11852
11910
|
const renameDirent = async (state) => {
|
|
@@ -12024,7 +12082,7 @@ const acceptRename = async (state) => {
|
|
|
12024
12082
|
// TODO move focused index
|
|
12025
12083
|
state.dirents = newDirents;
|
|
12026
12084
|
await contentLoaded$k(state);
|
|
12027
|
-
await focusIndex$
|
|
12085
|
+
await focusIndex$5(state, focusedIndex);
|
|
12028
12086
|
|
|
12029
12087
|
// await updateDirents(state)
|
|
12030
12088
|
};
|
|
@@ -12058,7 +12116,7 @@ const newDirent = async (state) => {
|
|
|
12058
12116
|
// TODO do it like vscode, select position between folders and files
|
|
12059
12117
|
const focusedIndex = state.focusedIndex;
|
|
12060
12118
|
const index = state.focusedIndex + 1;
|
|
12061
|
-
if (focusedIndex
|
|
12119
|
+
if (focusedIndex >= 0) {
|
|
12062
12120
|
const dirent = state.dirents[state.focusedIndex];
|
|
12063
12121
|
console.log({ dirent, dirents: state.dirents, fi: state.focusedIndex });
|
|
12064
12122
|
if (dirent.type === 'directory') {
|
|
@@ -12251,7 +12309,7 @@ const handleClickDirectoryExpanded = async (state, dirent, index) => {
|
|
|
12251
12309
|
|
|
12252
12310
|
const handleClick$5 = async (state, index) => {
|
|
12253
12311
|
if (index === -1) {
|
|
12254
|
-
state
|
|
12312
|
+
await focusIndex$5(state, -1);
|
|
12255
12313
|
return
|
|
12256
12314
|
}
|
|
12257
12315
|
const actualIndex = index + state.minLineY;
|
|
@@ -12280,13 +12338,15 @@ const handleClickCurrent = async (state) => {
|
|
|
12280
12338
|
await handleClick$5(state, state.focusedIndex);
|
|
12281
12339
|
};
|
|
12282
12340
|
|
|
12283
|
-
const focusIndex$
|
|
12341
|
+
const focusIndex$5 = async (state, index) => {
|
|
12342
|
+
const oldFocusedIndex = state.focusedIndex;
|
|
12284
12343
|
state.focusedIndex = index;
|
|
12285
12344
|
await invoke$1(
|
|
12286
12345
|
/* viewSend */ 3024,
|
|
12287
12346
|
/* id */ 'Explorer',
|
|
12288
|
-
/* method */ '
|
|
12289
|
-
/*
|
|
12347
|
+
/* method */ 'setFocusedIndex',
|
|
12348
|
+
/* oldIndex */ oldFocusedIndex,
|
|
12349
|
+
/* newIndex */ state.focusedIndex
|
|
12290
12350
|
);
|
|
12291
12351
|
};
|
|
12292
12352
|
|
|
@@ -12294,7 +12354,7 @@ const focusNext$4 = async (state) => {
|
|
|
12294
12354
|
if (state.focusedIndex === state.dirents.length - 1) {
|
|
12295
12355
|
return
|
|
12296
12356
|
}
|
|
12297
|
-
await focusIndex$
|
|
12357
|
+
await focusIndex$5(state, state.focusedIndex + 1);
|
|
12298
12358
|
};
|
|
12299
12359
|
|
|
12300
12360
|
const focusPrevious$4 = async (state) => {
|
|
@@ -12303,12 +12363,12 @@ const focusPrevious$4 = async (state) => {
|
|
|
12303
12363
|
if (state.dirents.length === 0) {
|
|
12304
12364
|
break
|
|
12305
12365
|
}
|
|
12306
|
-
await focusIndex$
|
|
12366
|
+
await focusIndex$5(state, state.dirents.length - 1);
|
|
12307
12367
|
break
|
|
12308
12368
|
case 0:
|
|
12309
12369
|
break
|
|
12310
12370
|
default:
|
|
12311
|
-
await focusIndex$
|
|
12371
|
+
await focusIndex$5(state, state.focusedIndex - 1);
|
|
12312
12372
|
break
|
|
12313
12373
|
}
|
|
12314
12374
|
};
|
|
@@ -12317,7 +12377,7 @@ const focusFirst$4 = async (state) => {
|
|
|
12317
12377
|
if (state.dirents.length === 0 || state.focusedIndex === 0) {
|
|
12318
12378
|
return
|
|
12319
12379
|
}
|
|
12320
|
-
await focusIndex$
|
|
12380
|
+
await focusIndex$5(state, 0);
|
|
12321
12381
|
};
|
|
12322
12382
|
|
|
12323
12383
|
const focusLast$4 = async (state) => {
|
|
@@ -12327,7 +12387,7 @@ const focusLast$4 = async (state) => {
|
|
|
12327
12387
|
) {
|
|
12328
12388
|
return
|
|
12329
12389
|
}
|
|
12330
|
-
await focusIndex$
|
|
12390
|
+
await focusIndex$5(state, state.dirents.length - 1);
|
|
12331
12391
|
};
|
|
12332
12392
|
|
|
12333
12393
|
const scrollUp = () => {};
|
|
@@ -12352,7 +12412,7 @@ const handleArrowRight = async (state) => {
|
|
|
12352
12412
|
}
|
|
12353
12413
|
const nextDirent = state.dirents[state.focusedIndex + 1];
|
|
12354
12414
|
if (nextDirent.depth === dirent.depth + 1) {
|
|
12355
|
-
await focusIndex$
|
|
12415
|
+
await focusIndex$5(state, state.focusedIndex + 1);
|
|
12356
12416
|
}
|
|
12357
12417
|
break
|
|
12358
12418
|
}
|
|
@@ -12366,7 +12426,7 @@ const focusParentFolder = async (state) => {
|
|
|
12366
12426
|
if (parentStartIndex === -1) {
|
|
12367
12427
|
return
|
|
12368
12428
|
}
|
|
12369
|
-
await focusIndex$
|
|
12429
|
+
await focusIndex$5(state, parentStartIndex);
|
|
12370
12430
|
};
|
|
12371
12431
|
|
|
12372
12432
|
const handleArrowLeft = async (state) => {
|
|
@@ -12624,7 +12684,7 @@ var ViewletExplorer = {
|
|
|
12624
12684
|
newFolder: newFolder,
|
|
12625
12685
|
handleClick: handleClick$5,
|
|
12626
12686
|
handleClickCurrent: handleClickCurrent,
|
|
12627
|
-
focusIndex: focusIndex$
|
|
12687
|
+
focusIndex: focusIndex$5,
|
|
12628
12688
|
focusNext: focusNext$4,
|
|
12629
12689
|
focusPrevious: focusPrevious$4,
|
|
12630
12690
|
focusFirst: focusFirst$4,
|
|
@@ -12644,7 +12704,7 @@ var ViewletExplorer = {
|
|
|
12644
12704
|
collapseAll: collapseAll
|
|
12645
12705
|
};
|
|
12646
12706
|
|
|
12647
|
-
const __initialize__$
|
|
12707
|
+
const __initialize__$H = () => {
|
|
12648
12708
|
register$2(142, wrapViewletCommand('Explorer', focusNext$4));
|
|
12649
12709
|
register$2(143, wrapViewletCommand('Explorer', focusPrevious$4));
|
|
12650
12710
|
register$2(144, wrapViewletCommand('Explorer', scrollUp));
|
|
@@ -12680,28 +12740,28 @@ const __initialize__$G = () => {
|
|
|
12680
12740
|
|
|
12681
12741
|
var ViewletExplorer_ipc = {
|
|
12682
12742
|
__proto__: null,
|
|
12683
|
-
__initialize__: __initialize__$
|
|
12743
|
+
__initialize__: __initialize__$H
|
|
12684
12744
|
};
|
|
12685
12745
|
|
|
12686
|
-
const state$
|
|
12746
|
+
const state$7 = {
|
|
12687
12747
|
count: 0,
|
|
12688
12748
|
decorations: [],
|
|
12689
12749
|
listeners: [],
|
|
12690
12750
|
};
|
|
12691
12751
|
|
|
12692
12752
|
const updateDecorations = () => {
|
|
12693
|
-
for (const listener of state$
|
|
12753
|
+
for (const listener of state$7.listeners) {
|
|
12694
12754
|
listener();
|
|
12695
12755
|
}
|
|
12696
12756
|
};
|
|
12697
12757
|
|
|
12698
|
-
const __initialize__$
|
|
12758
|
+
const __initialize__$G = () => {
|
|
12699
12759
|
register$2(1300, updateDecorations);
|
|
12700
12760
|
};
|
|
12701
12761
|
|
|
12702
12762
|
var SourceControl_ipc = {
|
|
12703
12763
|
__proto__: null,
|
|
12704
|
-
__initialize__: __initialize__$
|
|
12764
|
+
__initialize__: __initialize__$G
|
|
12705
12765
|
};
|
|
12706
12766
|
|
|
12707
12767
|
const name$k = 'Terminal';
|
|
@@ -12730,17 +12790,17 @@ const contentLoadedEffects$2 = async (state) => {
|
|
|
12730
12790
|
send$2(
|
|
12731
12791
|
/* createTerminal */ 'Terminal.create',
|
|
12732
12792
|
/* id */ state.id,
|
|
12733
|
-
/* cwd */ state$
|
|
12793
|
+
/* cwd */ state$w.workspacePath
|
|
12734
12794
|
);
|
|
12735
12795
|
};
|
|
12736
12796
|
|
|
12737
|
-
const handleData$1 = (state, data) => {
|
|
12797
|
+
const handleData$1 = async (state, data) => {
|
|
12738
12798
|
// Terminal.handleData(state, data)
|
|
12739
12799
|
const parsedData = new Uint8Array(data.data);
|
|
12740
|
-
|
|
12800
|
+
await invoke$1(
|
|
12741
12801
|
/* ViewletTerminal.write */ 9922,
|
|
12742
|
-
/* data */ parsedData
|
|
12743
|
-
|
|
12802
|
+
/* data */ parsedData
|
|
12803
|
+
);
|
|
12744
12804
|
};
|
|
12745
12805
|
|
|
12746
12806
|
const write = async (state, input) => {
|
|
@@ -12773,11 +12833,11 @@ const resize$8 = async (state, width, height) => {
|
|
|
12773
12833
|
// Terminal.resize(state, width, height)
|
|
12774
12834
|
};
|
|
12775
12835
|
|
|
12776
|
-
const clear$2 = (state) => {
|
|
12777
|
-
|
|
12836
|
+
const clear$2 = async (state) => {
|
|
12837
|
+
await invoke$1(
|
|
12778
12838
|
/* ViewletTerminal.write */ 9922,
|
|
12779
|
-
/* data */ new TextEncoder().encode('TODO clear terminal')
|
|
12780
|
-
|
|
12839
|
+
/* data */ new TextEncoder().encode('TODO clear terminal')
|
|
12840
|
+
);
|
|
12781
12841
|
};
|
|
12782
12842
|
|
|
12783
12843
|
var ViewletTerminal = {
|
|
@@ -12794,14 +12854,14 @@ var ViewletTerminal = {
|
|
|
12794
12854
|
clear: clear$2
|
|
12795
12855
|
};
|
|
12796
12856
|
|
|
12797
|
-
const __initialize__$
|
|
12857
|
+
const __initialize__$F = () => {
|
|
12798
12858
|
register$2(4870, wrapViewletCommand('Terminal', write));
|
|
12799
12859
|
register$2(4871 , wrapViewletCommand('Terminal', clear$2));
|
|
12800
12860
|
};
|
|
12801
12861
|
|
|
12802
12862
|
var ViewletTerminal_ipc = {
|
|
12803
12863
|
__proto__: null,
|
|
12804
|
-
__initialize__: __initialize__$
|
|
12864
|
+
__initialize__: __initialize__$F
|
|
12805
12865
|
};
|
|
12806
12866
|
|
|
12807
12867
|
const open$1 = () => {
|
|
@@ -12812,7 +12872,7 @@ const close$2 = () => {
|
|
|
12812
12872
|
console.log('TODO close color picker');
|
|
12813
12873
|
};
|
|
12814
12874
|
|
|
12815
|
-
const __initialize__$
|
|
12875
|
+
const __initialize__$E = () => {
|
|
12816
12876
|
register$2(1400, open$1);
|
|
12817
12877
|
register$2(1401, close$2);
|
|
12818
12878
|
|
|
@@ -12820,7 +12880,7 @@ const __initialize__$D = () => {
|
|
|
12820
12880
|
|
|
12821
12881
|
var ColorPicker_ipc = {
|
|
12822
12882
|
__proto__: null,
|
|
12823
|
-
__initialize__: __initialize__$
|
|
12883
|
+
__initialize__: __initialize__$E
|
|
12824
12884
|
};
|
|
12825
12885
|
|
|
12826
12886
|
const install = (id) => {
|
|
@@ -13191,7 +13251,7 @@ const handleInput$1 = async (state, value) => {
|
|
|
13191
13251
|
}
|
|
13192
13252
|
};
|
|
13193
13253
|
|
|
13194
|
-
const focusIndex$
|
|
13254
|
+
const focusIndex$4 = (state, index) => {
|
|
13195
13255
|
if (index === -1) {
|
|
13196
13256
|
return {
|
|
13197
13257
|
...state,
|
|
@@ -13234,14 +13294,14 @@ const focusIndex$3 = (state, index) => {
|
|
|
13234
13294
|
|
|
13235
13295
|
// TODO lazyload this
|
|
13236
13296
|
const handleClick$4 = (state, index) => {
|
|
13237
|
-
return focusIndex$
|
|
13297
|
+
return focusIndex$4(state, index)
|
|
13238
13298
|
};
|
|
13239
13299
|
|
|
13240
13300
|
const focusNext$3 = (state) => {
|
|
13241
13301
|
if (state.focusedIndex === state.filteredExtensions.length - 1) {
|
|
13242
13302
|
return state
|
|
13243
13303
|
}
|
|
13244
|
-
return focusIndex$
|
|
13304
|
+
return focusIndex$4(state, state.focusedIndex + 1)
|
|
13245
13305
|
};
|
|
13246
13306
|
|
|
13247
13307
|
const focusNextPage = (state) => {
|
|
@@ -13252,14 +13312,14 @@ const focusNextPage = (state) => {
|
|
|
13252
13312
|
state.maxLineY + (state.maxLineY - state.minLineY) - 2,
|
|
13253
13313
|
state.filteredExtensions.length - 1
|
|
13254
13314
|
);
|
|
13255
|
-
return focusIndex$
|
|
13315
|
+
return focusIndex$4(state, indexNextPage)
|
|
13256
13316
|
};
|
|
13257
13317
|
|
|
13258
13318
|
const focusPrevious$3 = (state) => {
|
|
13259
13319
|
if (state.focusedIndex === 0 || state.focusedIndex === -1) {
|
|
13260
13320
|
return state
|
|
13261
13321
|
}
|
|
13262
|
-
return focusIndex$
|
|
13322
|
+
return focusIndex$4(state, state.focusedIndex - 1)
|
|
13263
13323
|
};
|
|
13264
13324
|
|
|
13265
13325
|
const focusPreviousPage = (state) => {
|
|
@@ -13271,21 +13331,21 @@ const focusPreviousPage = (state) => {
|
|
|
13271
13331
|
state.minLineY - (state.maxLineY - state.minLineY) + 1,
|
|
13272
13332
|
0
|
|
13273
13333
|
);
|
|
13274
|
-
return focusIndex$
|
|
13334
|
+
return focusIndex$4(state, indexPreviousPage)
|
|
13275
13335
|
};
|
|
13276
13336
|
|
|
13277
13337
|
const focusFirst$3 = (state) => {
|
|
13278
13338
|
if (state.filteredExtensions.length === 0) {
|
|
13279
13339
|
return state
|
|
13280
13340
|
}
|
|
13281
|
-
return focusIndex$
|
|
13341
|
+
return focusIndex$4(state, 0)
|
|
13282
13342
|
};
|
|
13283
13343
|
|
|
13284
13344
|
const focusLast$3 = (state) => {
|
|
13285
13345
|
if (state.filteredExtensions.length === 0) {
|
|
13286
13346
|
return state
|
|
13287
13347
|
}
|
|
13288
|
-
return focusIndex$
|
|
13348
|
+
return focusIndex$4(state, state.filteredExtensions.length - 1)
|
|
13289
13349
|
};
|
|
13290
13350
|
|
|
13291
13351
|
// TODO show error / warning when installment fails / times out
|
|
@@ -13622,7 +13682,7 @@ var ViewletExtensions = {
|
|
|
13622
13682
|
contentLoaded: contentLoaded$i,
|
|
13623
13683
|
dispose: dispose$g,
|
|
13624
13684
|
handleInput: handleInput$1,
|
|
13625
|
-
focusIndex: focusIndex$
|
|
13685
|
+
focusIndex: focusIndex$4,
|
|
13626
13686
|
handleClick: handleClick$4,
|
|
13627
13687
|
focusNext: focusNext$3,
|
|
13628
13688
|
focusNextPage: focusNextPage,
|
|
@@ -13647,7 +13707,7 @@ var ViewletExtensions = {
|
|
|
13647
13707
|
render: render$b
|
|
13648
13708
|
};
|
|
13649
13709
|
|
|
13650
|
-
const __initialize__$
|
|
13710
|
+
const __initialize__$D = () => {
|
|
13651
13711
|
register$2(860, wrapViewletCommand('Extensions', openSuggest));
|
|
13652
13712
|
register$2(861, wrapViewletCommand('Extensions', closeSuggest));
|
|
13653
13713
|
register$2(862, wrapViewletCommand('Extensions', toggleSuggest));
|
|
@@ -13656,7 +13716,7 @@ const __initialize__$C = () => {
|
|
|
13656
13716
|
register$2(865, wrapViewletCommand('Extensions', handleInstall));
|
|
13657
13717
|
register$2(866, wrapViewletCommand('Extensions', handleUninstall));
|
|
13658
13718
|
register$2(867, wrapViewletCommand('Extensions', handleClick$4));
|
|
13659
|
-
register$2(868, wrapViewletCommand('Extensions', focusIndex$
|
|
13719
|
+
register$2(868, wrapViewletCommand('Extensions', focusIndex$4));
|
|
13660
13720
|
register$2(869, wrapViewletCommand('Extensions', focusFirst$3));
|
|
13661
13721
|
register$2(870, wrapViewletCommand('Extensions', focusLast$3));
|
|
13662
13722
|
register$2(871, wrapViewletCommand('Extensions', focusPrevious$3));
|
|
@@ -13671,49 +13731,42 @@ const __initialize__$C = () => {
|
|
|
13671
13731
|
|
|
13672
13732
|
var ViewletExtensions_ipc = {
|
|
13673
13733
|
__proto__: null,
|
|
13674
|
-
__initialize__: __initialize__$
|
|
13734
|
+
__initialize__: __initialize__$D
|
|
13675
13735
|
};
|
|
13676
13736
|
|
|
13677
|
-
const
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13689
|
-
error.message === 'navigator.clipboard.readText is not a function'
|
|
13690
|
-
) {
|
|
13691
|
-
console.warn(
|
|
13692
|
-
'Failed to paste text: The Clipboard Api is not available in Firefox'
|
|
13693
|
-
);
|
|
13694
|
-
} else {
|
|
13695
|
-
console.warn(error);
|
|
13696
|
-
}
|
|
13697
|
-
return
|
|
13698
|
-
}
|
|
13699
|
-
return text
|
|
13700
|
-
},
|
|
13701
|
-
async writeText(path) {
|
|
13702
|
-
try {
|
|
13737
|
+
const readText = async () => {
|
|
13738
|
+
let text;
|
|
13739
|
+
try {
|
|
13740
|
+
// @ts-ignore
|
|
13741
|
+
text = await navigator.clipboard.readText();
|
|
13742
|
+
} catch (error) {
|
|
13743
|
+
// @ts-ignore
|
|
13744
|
+
if (error.message === 'Read permission denied.') {
|
|
13745
|
+
console.warn(
|
|
13746
|
+
'Failed to paste text: The Browser disallowed reading from clipboard'
|
|
13747
|
+
);
|
|
13748
|
+
} else if (
|
|
13703
13749
|
// @ts-ignore
|
|
13704
|
-
|
|
13705
|
-
|
|
13750
|
+
error.message === 'navigator.clipboard.readText is not a function'
|
|
13751
|
+
) {
|
|
13752
|
+
console.warn(
|
|
13753
|
+
'Failed to paste text: The Clipboard Api is not available in Firefox'
|
|
13754
|
+
);
|
|
13755
|
+
} else {
|
|
13706
13756
|
console.warn(error);
|
|
13707
13757
|
}
|
|
13708
|
-
|
|
13709
|
-
}
|
|
13710
|
-
|
|
13711
|
-
const readText = () => {
|
|
13712
|
-
return state$9.readText()
|
|
13758
|
+
return
|
|
13759
|
+
}
|
|
13760
|
+
return text
|
|
13713
13761
|
};
|
|
13714
13762
|
|
|
13715
13763
|
const writeText = async (path) => {
|
|
13716
|
-
|
|
13764
|
+
try {
|
|
13765
|
+
// @ts-ignore
|
|
13766
|
+
await navigator.clipboard.writeText(path);
|
|
13767
|
+
} catch (error) {
|
|
13768
|
+
console.warn(error);
|
|
13769
|
+
}
|
|
13717
13770
|
};
|
|
13718
13771
|
|
|
13719
13772
|
const writeNativeFiles = (type, files) => {
|
|
@@ -13728,7 +13781,7 @@ const readNativeFiles = () => {
|
|
|
13728
13781
|
return invoke$2(/* command */ 'ClipBoard.readFiles')
|
|
13729
13782
|
};
|
|
13730
13783
|
|
|
13731
|
-
const __initialize__$
|
|
13784
|
+
const __initialize__$C = () => {
|
|
13732
13785
|
register$2(240, readText);
|
|
13733
13786
|
register$2(241, writeText);
|
|
13734
13787
|
register$2(243, writeNativeFiles);
|
|
@@ -13737,7 +13790,7 @@ const __initialize__$B = () => {
|
|
|
13737
13790
|
|
|
13738
13791
|
var ClipBoard_ipc = {
|
|
13739
13792
|
__proto__: null,
|
|
13740
|
-
__initialize__: __initialize__$
|
|
13793
|
+
__initialize__: __initialize__$C
|
|
13741
13794
|
};
|
|
13742
13795
|
|
|
13743
13796
|
class HTTPError extends Error {
|
|
@@ -14084,26 +14137,13 @@ const createInstance = (defaults) => {
|
|
|
14084
14137
|
};
|
|
14085
14138
|
const ky = createInstance();
|
|
14086
14139
|
|
|
14087
|
-
const
|
|
14088
|
-
|
|
14140
|
+
const getJson$3 = async (url, options = {}) => {
|
|
14141
|
+
try {
|
|
14089
14142
|
// cannot use ky(url).json() because it sets "accept: application/json"
|
|
14090
14143
|
// which doesn't work with preload, see
|
|
14091
14144
|
// https://stackoverflow.com/questions/41655955/why-are-preload-link-not-working-for-json-requests#answer-48645748
|
|
14092
14145
|
const response = await ky(url, options);
|
|
14093
14146
|
return response.json()
|
|
14094
|
-
},
|
|
14095
|
-
async getText(url, options) {
|
|
14096
|
-
return ky(url, options).text()
|
|
14097
|
-
},
|
|
14098
|
-
};
|
|
14099
|
-
|
|
14100
|
-
/**
|
|
14101
|
-
* @throws
|
|
14102
|
-
*/
|
|
14103
|
-
const getJson$3 = async (url, options = {}) => {
|
|
14104
|
-
try {
|
|
14105
|
-
const result = await state$8.getJson(url, options);
|
|
14106
|
-
return result
|
|
14107
14147
|
} catch (error) {
|
|
14108
14148
|
if (
|
|
14109
14149
|
error &&
|
|
@@ -14128,6 +14168,7 @@ const getJson$3 = async (url, options = {}) => {
|
|
|
14128
14168
|
throw new Error(`Failed to request json from "${url}": ${json.message}`)
|
|
14129
14169
|
}
|
|
14130
14170
|
}
|
|
14171
|
+
// @ts-ignore
|
|
14131
14172
|
error.message = `Failed to request json from "${url}": ${error.message}`;
|
|
14132
14173
|
throw error
|
|
14133
14174
|
}
|
|
@@ -14135,8 +14176,7 @@ const getJson$3 = async (url, options = {}) => {
|
|
|
14135
14176
|
|
|
14136
14177
|
const getText$1 = async (url, options = {}) => {
|
|
14137
14178
|
try {
|
|
14138
|
-
|
|
14139
|
-
return result
|
|
14179
|
+
return ky(url, options).text()
|
|
14140
14180
|
} catch (error) {
|
|
14141
14181
|
if (
|
|
14142
14182
|
error &&
|
|
@@ -14150,19 +14190,22 @@ const getText$1 = async (url, options = {}) => {
|
|
|
14150
14190
|
}
|
|
14151
14191
|
)
|
|
14152
14192
|
}
|
|
14153
|
-
throw new Error(`Failed to request text from "${url}"`, {
|
|
14193
|
+
throw new Error(`Failed to request text from "${url}"`, {
|
|
14194
|
+
// @ts-ignore
|
|
14195
|
+
cause: error,
|
|
14196
|
+
})
|
|
14154
14197
|
}
|
|
14155
14198
|
};
|
|
14156
14199
|
|
|
14157
14200
|
// TODO only use Ajax module via ipc -> that way is is always lazyloaded
|
|
14158
|
-
const __initialize__$
|
|
14201
|
+
const __initialize__$B = () => {
|
|
14159
14202
|
register$2(270, getJson$3);
|
|
14160
14203
|
register$2(271, getText$1);
|
|
14161
14204
|
};
|
|
14162
14205
|
|
|
14163
14206
|
var Ajax_ipc = {
|
|
14164
14207
|
__proto__: null,
|
|
14165
|
-
__initialize__: __initialize__$
|
|
14208
|
+
__initialize__: __initialize__$B
|
|
14166
14209
|
};
|
|
14167
14210
|
|
|
14168
14211
|
const hydrate$1 = async () => {
|
|
@@ -14170,26 +14213,26 @@ const hydrate$1 = async () => {
|
|
|
14170
14213
|
// EditorSave.onDidSave(onDidSaveEditor)
|
|
14171
14214
|
};
|
|
14172
14215
|
|
|
14173
|
-
const __initialize__$
|
|
14216
|
+
const __initialize__$A = () => {
|
|
14174
14217
|
register$2(3380, hydrate$1);
|
|
14175
14218
|
};
|
|
14176
14219
|
|
|
14177
14220
|
var Format_ipc = {
|
|
14178
14221
|
__proto__: null,
|
|
14179
|
-
__initialize__: __initialize__$
|
|
14222
|
+
__initialize__: __initialize__$A
|
|
14180
14223
|
};
|
|
14181
14224
|
|
|
14182
|
-
const __initialize__$
|
|
14225
|
+
const __initialize__$z = () => {
|
|
14183
14226
|
register$2(5610, hydrate$8);
|
|
14184
14227
|
register$2(5611, setColorTheme$1);
|
|
14185
14228
|
};
|
|
14186
14229
|
|
|
14187
14230
|
var ColorTheme_ipc = {
|
|
14188
14231
|
__proto__: null,
|
|
14189
|
-
__initialize__: __initialize__$
|
|
14232
|
+
__initialize__: __initialize__$z
|
|
14190
14233
|
};
|
|
14191
14234
|
|
|
14192
|
-
const __initialize__$
|
|
14235
|
+
const __initialize__$y = () => {
|
|
14193
14236
|
// TODO command necessary?
|
|
14194
14237
|
register$2(3030, undefined);
|
|
14195
14238
|
// TODO hydrate should be an alias for reload/load
|
|
@@ -14199,10 +14242,10 @@ const __initialize__$x = () => {
|
|
|
14199
14242
|
|
|
14200
14243
|
var IconTheme_ipc = {
|
|
14201
14244
|
__proto__: null,
|
|
14202
|
-
__initialize__: __initialize__$
|
|
14245
|
+
__initialize__: __initialize__$y
|
|
14203
14246
|
};
|
|
14204
14247
|
|
|
14205
|
-
const __initialize__$
|
|
14248
|
+
const __initialize__$x = () => {
|
|
14206
14249
|
register$2(7400, show$4);
|
|
14207
14250
|
register$2(7401, hide$1);
|
|
14208
14251
|
register$2(7403, selectIndex$3);
|
|
@@ -14210,18 +14253,21 @@ const __initialize__$w = () => {
|
|
|
14210
14253
|
register$2(7405, focusPrevious$6);
|
|
14211
14254
|
register$2(7406, focusFirst$6);
|
|
14212
14255
|
register$2(7407, focusLast$6);
|
|
14213
|
-
register$2(7408, focusIndex$
|
|
14256
|
+
register$2(7408, focusIndex$7);
|
|
14214
14257
|
register$2(7409, handleMouseEnter$1);
|
|
14215
14258
|
};
|
|
14216
14259
|
|
|
14217
14260
|
var Menu_ipc = {
|
|
14218
14261
|
__proto__: null,
|
|
14219
|
-
__initialize__: __initialize__$
|
|
14262
|
+
__initialize__: __initialize__$x
|
|
14220
14263
|
};
|
|
14221
14264
|
|
|
14222
14265
|
// TODO menu should not be needed initially, only when item is selected and menu is opened
|
|
14223
14266
|
|
|
14224
|
-
const state$
|
|
14267
|
+
const state$6 = {
|
|
14268
|
+
/**
|
|
14269
|
+
* @type{any[]}
|
|
14270
|
+
*/
|
|
14225
14271
|
titleBarEntries: [],
|
|
14226
14272
|
focusedIndex: 0,
|
|
14227
14273
|
isMenuOpen: false,
|
|
@@ -14231,8 +14277,8 @@ const state$7 = {
|
|
|
14231
14277
|
// TODO only compute once if is electron and filter out during build process
|
|
14232
14278
|
|
|
14233
14279
|
const getEntries = async () => {
|
|
14234
|
-
state$
|
|
14235
|
-
return state$
|
|
14280
|
+
state$6.titleBarEntries = await getMenuEntries$h('titleBar');
|
|
14281
|
+
return state$6.titleBarEntries
|
|
14236
14282
|
};
|
|
14237
14283
|
|
|
14238
14284
|
/**
|
|
@@ -14244,9 +14290,9 @@ const openMenuAtIndex = async (index, shouldBeFocused) => {
|
|
|
14244
14290
|
// TODO send renderer process
|
|
14245
14291
|
// 1. open menu, items to show
|
|
14246
14292
|
// 2. focus menu
|
|
14247
|
-
const id = state$
|
|
14293
|
+
const id = state$6.titleBarEntries[index].id;
|
|
14248
14294
|
const items = await getMenuEntries$h(id);
|
|
14249
|
-
state$
|
|
14295
|
+
state$i.menus = [];
|
|
14250
14296
|
const bounds = await invoke$1(
|
|
14251
14297
|
/* Viewlet.send */ 3024,
|
|
14252
14298
|
/* id */ 'TitleBar',
|
|
@@ -14264,7 +14310,7 @@ const openMenuAtIndex = async (index, shouldBeFocused) => {
|
|
|
14264
14310
|
id,
|
|
14265
14311
|
items,
|
|
14266
14312
|
focusedIndex: menuFocusedIndex,
|
|
14267
|
-
level: state$
|
|
14313
|
+
level: state$i.menus.length,
|
|
14268
14314
|
x,
|
|
14269
14315
|
y,
|
|
14270
14316
|
});
|
|
@@ -14272,7 +14318,7 @@ const openMenuAtIndex = async (index, shouldBeFocused) => {
|
|
|
14272
14318
|
/* Viewlet.send */ 3024,
|
|
14273
14319
|
/* id */ 'TitleBar',
|
|
14274
14320
|
/* method */ 'menuOpen',
|
|
14275
|
-
/* unFocusIndex */ state$
|
|
14321
|
+
/* unFocusIndex */ state$6.focusedIndex,
|
|
14276
14322
|
/* index */ index,
|
|
14277
14323
|
/* level */ menu.level,
|
|
14278
14324
|
/* menuItems */ menu.items,
|
|
@@ -14283,55 +14329,55 @@ const openMenuAtIndex = async (index, shouldBeFocused) => {
|
|
|
14283
14329
|
/* width */ width,
|
|
14284
14330
|
/* height */ height,
|
|
14285
14331
|
]);
|
|
14286
|
-
state$
|
|
14332
|
+
state$6.isMenuOpen = true;
|
|
14287
14333
|
};
|
|
14288
14334
|
|
|
14289
14335
|
/**
|
|
14290
14336
|
* @param {boolean} focus
|
|
14291
14337
|
*/
|
|
14292
14338
|
const openMenu = async (focus) => {
|
|
14293
|
-
if (state$
|
|
14339
|
+
if (state$6.focusedIndex === -1) {
|
|
14294
14340
|
return
|
|
14295
14341
|
}
|
|
14296
|
-
await openMenuAtIndex(state$
|
|
14342
|
+
await openMenuAtIndex(state$6.focusedIndex, focus);
|
|
14297
14343
|
};
|
|
14298
14344
|
|
|
14299
|
-
const closeMenu = (keepFocus) => {
|
|
14345
|
+
const closeMenu = async (keepFocus) => {
|
|
14300
14346
|
// TODO send to renderer process
|
|
14301
14347
|
// 1. close menu
|
|
14302
14348
|
// 2. focus top level entry
|
|
14303
|
-
const focusIndex = keepFocus ? state$
|
|
14349
|
+
const focusIndex = keepFocus ? state$6.focusedIndex : -1;
|
|
14304
14350
|
// TODO use Viewlet.dispose instead
|
|
14305
|
-
|
|
14351
|
+
state$6.isMenuOpen = false;
|
|
14352
|
+
await invoke$1(
|
|
14306
14353
|
/* Viewlet.send */ 3024,
|
|
14307
14354
|
/* id */ 'TitleBar',
|
|
14308
14355
|
/* method */ 'menuClose',
|
|
14309
|
-
/* unFocusIndex */ state$
|
|
14310
|
-
/* focusIndex */ focusIndex
|
|
14311
|
-
|
|
14312
|
-
state$7.isMenuOpen = false;
|
|
14356
|
+
/* unFocusIndex */ state$6.focusedIndex,
|
|
14357
|
+
/* focusIndex */ focusIndex
|
|
14358
|
+
);
|
|
14313
14359
|
};
|
|
14314
14360
|
|
|
14315
|
-
const focusIndex$
|
|
14316
|
-
if (state$
|
|
14361
|
+
const focusIndex$3 = async (index) => {
|
|
14362
|
+
if (state$6.isMenuOpen) {
|
|
14317
14363
|
await openMenuAtIndex(index, /* focus */ false);
|
|
14318
14364
|
} else {
|
|
14319
|
-
|
|
14365
|
+
await invoke$1(
|
|
14320
14366
|
/* TitleBarMenuBar.focusIndex */ 1371,
|
|
14321
|
-
/* unFocusIndex */ state$
|
|
14322
|
-
/* index */ index
|
|
14323
|
-
|
|
14367
|
+
/* unFocusIndex */ state$6.focusedIndex,
|
|
14368
|
+
/* index */ index
|
|
14369
|
+
);
|
|
14324
14370
|
}
|
|
14325
|
-
state$
|
|
14371
|
+
state$6.focusedIndex = index;
|
|
14326
14372
|
};
|
|
14327
14373
|
|
|
14328
14374
|
const toggleIndex = async (index) => {
|
|
14329
|
-
if (state$
|
|
14375
|
+
if (state$6.isMenuOpen && state$6.focusedIndex === index) {
|
|
14330
14376
|
closeMenu(/* keepFocus */ true);
|
|
14331
14377
|
} else {
|
|
14332
14378
|
await openMenuAtIndex(index, /* focus */ false);
|
|
14333
14379
|
}
|
|
14334
|
-
state$
|
|
14380
|
+
state$6.focusedIndex = index;
|
|
14335
14381
|
};
|
|
14336
14382
|
|
|
14337
14383
|
const focus$1 = async () => {
|
|
@@ -14344,10 +14390,10 @@ const getIndexToFocusPreviousStartingAt = (items, index) => {
|
|
|
14344
14390
|
|
|
14345
14391
|
const focusPrevious$2 = async () => {
|
|
14346
14392
|
const indexToFocus = getIndexToFocusPreviousStartingAt(
|
|
14347
|
-
state$
|
|
14348
|
-
state$
|
|
14393
|
+
state$6.titleBarEntries,
|
|
14394
|
+
state$6.focusedIndex - 1
|
|
14349
14395
|
);
|
|
14350
|
-
await focusIndex$
|
|
14396
|
+
await focusIndex$3(indexToFocus);
|
|
14351
14397
|
};
|
|
14352
14398
|
|
|
14353
14399
|
const getIndexToFocusNextStartingAt = (items, index) => {
|
|
@@ -14355,29 +14401,28 @@ const getIndexToFocusNextStartingAt = (items, index) => {
|
|
|
14355
14401
|
};
|
|
14356
14402
|
|
|
14357
14403
|
const focusNext$2 = async () => {
|
|
14358
|
-
console.log('ff next');
|
|
14359
14404
|
const indexToFocus = getIndexToFocusNextStartingAt(
|
|
14360
|
-
state$
|
|
14361
|
-
state$
|
|
14405
|
+
state$6.titleBarEntries,
|
|
14406
|
+
state$6.focusedIndex + 1
|
|
14362
14407
|
);
|
|
14363
|
-
await focusIndex$
|
|
14408
|
+
await focusIndex$3(indexToFocus);
|
|
14364
14409
|
};
|
|
14365
14410
|
|
|
14366
14411
|
const focusFirst$2 = async () => {
|
|
14367
|
-
const indexToFocus = getIndexToFocusNextStartingAt(state$
|
|
14368
|
-
await focusIndex$
|
|
14412
|
+
const indexToFocus = getIndexToFocusNextStartingAt(state$6.titleBarEntries, 0);
|
|
14413
|
+
await focusIndex$3(indexToFocus);
|
|
14369
14414
|
};
|
|
14370
14415
|
|
|
14371
14416
|
const focusLast$2 = async () => {
|
|
14372
14417
|
const indexToFocus = getIndexToFocusPreviousStartingAt(
|
|
14373
|
-
state$
|
|
14374
|
-
state$
|
|
14418
|
+
state$6.titleBarEntries,
|
|
14419
|
+
state$6.titleBarEntries.length - 1
|
|
14375
14420
|
);
|
|
14376
|
-
await focusIndex$
|
|
14421
|
+
await focusIndex$3(indexToFocus);
|
|
14377
14422
|
};
|
|
14378
14423
|
|
|
14379
14424
|
const handleKeyArrowLeft = async () => {
|
|
14380
|
-
if (state$
|
|
14425
|
+
if (state$6.isMenuOpen && state$i.menus.length > 1) {
|
|
14381
14426
|
return
|
|
14382
14427
|
}
|
|
14383
14428
|
// TODO menu collapse
|
|
@@ -14385,7 +14430,7 @@ const handleKeyArrowLeft = async () => {
|
|
|
14385
14430
|
};
|
|
14386
14431
|
|
|
14387
14432
|
const handleKeyArrowUp = () => {
|
|
14388
|
-
if (!state$
|
|
14433
|
+
if (!state$6.isMenuOpen) {
|
|
14389
14434
|
return
|
|
14390
14435
|
}
|
|
14391
14436
|
focusPrevious$6();
|
|
@@ -14393,12 +14438,12 @@ const handleKeyArrowUp = () => {
|
|
|
14393
14438
|
|
|
14394
14439
|
const handleKeyArrowRight = async () => {
|
|
14395
14440
|
console.log('arrow right');
|
|
14396
|
-
if (state$
|
|
14441
|
+
if (state$6.isMenuOpen) {
|
|
14397
14442
|
// if menu can open sub menu to the right -> do that
|
|
14398
|
-
const menu = state$
|
|
14443
|
+
const menu = state$i.menus.at(-1);
|
|
14399
14444
|
const item = menu.items[menu.focusedIndex];
|
|
14400
14445
|
if (item.flags === /* SubMenu */ 4) {
|
|
14401
|
-
await showSubMenu(state$
|
|
14446
|
+
await showSubMenu(state$i.menus.length - 1, menu.focusedIndex);
|
|
14402
14447
|
return
|
|
14403
14448
|
}
|
|
14404
14449
|
}
|
|
@@ -14406,7 +14451,7 @@ const handleKeyArrowRight = async () => {
|
|
|
14406
14451
|
};
|
|
14407
14452
|
|
|
14408
14453
|
const handleKeyHome = async () => {
|
|
14409
|
-
if (state$
|
|
14454
|
+
if (state$6.isMenuOpen) {
|
|
14410
14455
|
focusFirst$6();
|
|
14411
14456
|
} else {
|
|
14412
14457
|
await focusFirst$2();
|
|
@@ -14415,7 +14460,7 @@ const handleKeyHome = async () => {
|
|
|
14415
14460
|
|
|
14416
14461
|
// TODO this is also use for pagedown -> maybe find a better name for this function
|
|
14417
14462
|
const handleKeyEnd = async () => {
|
|
14418
|
-
if (state$
|
|
14463
|
+
if (state$6.isMenuOpen) {
|
|
14419
14464
|
focusLast$6();
|
|
14420
14465
|
} else {
|
|
14421
14466
|
await focusLast$2();
|
|
@@ -14424,7 +14469,7 @@ const handleKeyEnd = async () => {
|
|
|
14424
14469
|
|
|
14425
14470
|
// TODO this is same as handle key enter -> merge the functions
|
|
14426
14471
|
const handleKeySpace = async () => {
|
|
14427
|
-
if (state$
|
|
14472
|
+
if (state$6.isMenuOpen) {
|
|
14428
14473
|
await selectCurrent$1();
|
|
14429
14474
|
} else {
|
|
14430
14475
|
openMenu(/* focus */ true);
|
|
@@ -14432,7 +14477,7 @@ const handleKeySpace = async () => {
|
|
|
14432
14477
|
};
|
|
14433
14478
|
|
|
14434
14479
|
const handleKeyEnter = async () => {
|
|
14435
|
-
if (state$
|
|
14480
|
+
if (state$6.isMenuOpen) {
|
|
14436
14481
|
await selectCurrent$1();
|
|
14437
14482
|
} else {
|
|
14438
14483
|
openMenu(/* focus */ true);
|
|
@@ -14440,25 +14485,25 @@ const handleKeyEnter = async () => {
|
|
|
14440
14485
|
};
|
|
14441
14486
|
|
|
14442
14487
|
const handleKeyEscape = () => {
|
|
14443
|
-
if (!state$
|
|
14488
|
+
if (!state$6.isMenuOpen) {
|
|
14444
14489
|
return
|
|
14445
14490
|
}
|
|
14446
14491
|
closeMenu(/* keepFocus */ true);
|
|
14447
14492
|
};
|
|
14448
14493
|
|
|
14449
14494
|
const handleKeyArrowDown = async () => {
|
|
14450
|
-
if (state$
|
|
14495
|
+
if (state$6.isMenuOpen) {
|
|
14451
14496
|
focusNext$6();
|
|
14452
14497
|
} else {
|
|
14453
14498
|
await openMenu(/* focus */ true);
|
|
14454
14499
|
}
|
|
14455
14500
|
};
|
|
14456
14501
|
|
|
14457
|
-
const __initialize__$
|
|
14502
|
+
const __initialize__$w = () => {
|
|
14458
14503
|
register$2(4610, toggleIndex);
|
|
14459
14504
|
register$2(4611, undefined);
|
|
14460
14505
|
register$2(4612, focus$1);
|
|
14461
|
-
register$2(4613, focusIndex$
|
|
14506
|
+
register$2(4613, focusIndex$3);
|
|
14462
14507
|
register$2(4614, focusPrevious$2);
|
|
14463
14508
|
register$2(4615, focusNext$2);
|
|
14464
14509
|
register$2(4616, closeMenu);
|
|
@@ -14476,16 +14521,16 @@ const __initialize__$v = () => {
|
|
|
14476
14521
|
|
|
14477
14522
|
var TitleBarMenuBar_ipc = {
|
|
14478
14523
|
__proto__: null,
|
|
14479
|
-
__initialize__: __initialize__$
|
|
14524
|
+
__initialize__: __initialize__$w
|
|
14480
14525
|
};
|
|
14481
14526
|
|
|
14482
|
-
const __initialize__$
|
|
14527
|
+
const __initialize__$v = () => {
|
|
14483
14528
|
register$2(440, handleError$1);
|
|
14484
14529
|
};
|
|
14485
14530
|
|
|
14486
14531
|
var ErrorHandling_ipc = {
|
|
14487
14532
|
__proto__: null,
|
|
14488
|
-
__initialize__: __initialize__$
|
|
14533
|
+
__initialize__: __initialize__$v
|
|
14489
14534
|
};
|
|
14490
14535
|
|
|
14491
14536
|
// TODO maybe rename this module to Focus
|
|
@@ -14497,55 +14542,49 @@ const PART_STATUS_BAR = 4;
|
|
|
14497
14542
|
const PART_SIDE_BAR = 5;
|
|
14498
14543
|
const PART_ACTIVITY_BAR = 6;
|
|
14499
14544
|
|
|
14500
|
-
const state$
|
|
14545
|
+
const state$5 = {
|
|
14501
14546
|
focusedPart: PART_TITLE_BAR,
|
|
14502
14547
|
};
|
|
14503
14548
|
|
|
14504
|
-
const focusActivityBar = () => {
|
|
14505
|
-
|
|
14549
|
+
const focusActivityBar = async () => {
|
|
14550
|
+
await invoke$1(/* ActivityBar.focus */ 717115);
|
|
14506
14551
|
};
|
|
14507
14552
|
|
|
14508
|
-
const focusStatusBar = () => {
|
|
14509
|
-
|
|
14553
|
+
const focusStatusBar = async () => {
|
|
14554
|
+
await invoke$1(/* StatusBar.focus */ 8882);
|
|
14510
14555
|
};
|
|
14511
14556
|
|
|
14512
|
-
const focusPanel = () => {
|
|
14513
|
-
|
|
14557
|
+
const focusPanel = async () => {
|
|
14558
|
+
await invoke$1(/* Panel.focus */ 6664);
|
|
14514
14559
|
};
|
|
14515
14560
|
|
|
14516
|
-
const focusSideBar = () => {
|
|
14517
|
-
|
|
14561
|
+
const focusSideBar = async () => {
|
|
14562
|
+
await invoke$1(/* SideBar.focus */ 5554);
|
|
14518
14563
|
};
|
|
14519
14564
|
|
|
14520
|
-
const focusTitleBar = () => {
|
|
14521
|
-
|
|
14565
|
+
const focusTitleBar = async () => {
|
|
14566
|
+
await invoke$1(/* TitleBar.focus */ 1331);
|
|
14522
14567
|
};
|
|
14523
14568
|
|
|
14524
|
-
const focusMain = () => {
|
|
14525
|
-
|
|
14569
|
+
const focusMain = async () => {
|
|
14570
|
+
await invoke$1(/* Main.focus */ 2145);
|
|
14526
14571
|
};
|
|
14527
14572
|
|
|
14528
14573
|
const focusPart = (part) => {
|
|
14529
|
-
state$
|
|
14530
|
-
switch (state$
|
|
14574
|
+
state$5.focusedPart = part;
|
|
14575
|
+
switch (state$5.focusedPart) {
|
|
14531
14576
|
case PART_TITLE_BAR:
|
|
14532
|
-
focusTitleBar()
|
|
14533
|
-
break
|
|
14577
|
+
return focusTitleBar()
|
|
14534
14578
|
case PART_MAIN:
|
|
14535
|
-
focusMain()
|
|
14536
|
-
break
|
|
14579
|
+
return focusMain()
|
|
14537
14580
|
case PART_PANEL:
|
|
14538
|
-
focusPanel()
|
|
14539
|
-
break
|
|
14581
|
+
return focusPanel()
|
|
14540
14582
|
case PART_STATUS_BAR:
|
|
14541
|
-
focusStatusBar()
|
|
14542
|
-
break
|
|
14583
|
+
return focusStatusBar()
|
|
14543
14584
|
case PART_SIDE_BAR:
|
|
14544
|
-
focusSideBar()
|
|
14545
|
-
break
|
|
14585
|
+
return focusSideBar()
|
|
14546
14586
|
case PART_ACTIVITY_BAR:
|
|
14547
|
-
focusActivityBar()
|
|
14548
|
-
break
|
|
14587
|
+
return focusActivityBar()
|
|
14549
14588
|
default:
|
|
14550
14589
|
throw console.warn(`unknown part ${part}`)
|
|
14551
14590
|
}
|
|
@@ -14606,22 +14645,22 @@ const getVisiblePartPrevious = (part) => {
|
|
|
14606
14645
|
|
|
14607
14646
|
const getCurrentPart = () => {
|
|
14608
14647
|
// TODO ask renderer process
|
|
14609
|
-
return state$
|
|
14648
|
+
return state$5.focusedPart
|
|
14610
14649
|
};
|
|
14611
14650
|
|
|
14612
|
-
const focusNextPart = () => {
|
|
14651
|
+
const focusNextPart = async () => {
|
|
14613
14652
|
const currentPart = getCurrentPart();
|
|
14614
14653
|
const nextPart = getVisiblePartNext(currentPart);
|
|
14615
|
-
focusPart(nextPart);
|
|
14654
|
+
await focusPart(nextPart);
|
|
14616
14655
|
};
|
|
14617
14656
|
|
|
14618
|
-
const focusPreviousPart = () => {
|
|
14657
|
+
const focusPreviousPart = async () => {
|
|
14619
14658
|
const currentPart = getCurrentPart();
|
|
14620
14659
|
const previousPart = getVisiblePartPrevious(currentPart);
|
|
14621
|
-
focusPart(previousPart);
|
|
14660
|
+
await focusPart(previousPart);
|
|
14622
14661
|
};
|
|
14623
14662
|
|
|
14624
|
-
const __initialize__$
|
|
14663
|
+
const __initialize__$u = () => {
|
|
14625
14664
|
register$2(5740, focusPreviousPart);
|
|
14626
14665
|
register$2(5741, focusNextPart);
|
|
14627
14666
|
register$2(5742, focusActivityBar);
|
|
@@ -14634,10 +14673,10 @@ const __initialize__$t = () => {
|
|
|
14634
14673
|
|
|
14635
14674
|
var Navigation_ipc = {
|
|
14636
14675
|
__proto__: null,
|
|
14637
|
-
__initialize__: __initialize__$
|
|
14676
|
+
__initialize__: __initialize__$u
|
|
14638
14677
|
};
|
|
14639
14678
|
|
|
14640
|
-
const CACHE_NAME = 'lvce-runtime-
|
|
14679
|
+
const CACHE_NAME = 'lvce-runtime-09bf9c7';
|
|
14641
14680
|
|
|
14642
14681
|
const shouldIgnoreError = (error) => {
|
|
14643
14682
|
// Firefox throws dom exception in private mode
|
|
@@ -14648,37 +14687,6 @@ const shouldIgnoreError = (error) => {
|
|
|
14648
14687
|
)
|
|
14649
14688
|
};
|
|
14650
14689
|
|
|
14651
|
-
const state$5 = {
|
|
14652
|
-
async getJson(key) {
|
|
14653
|
-
try {
|
|
14654
|
-
const response = await getResponse(key);
|
|
14655
|
-
if (!response) {
|
|
14656
|
-
return undefined
|
|
14657
|
-
}
|
|
14658
|
-
const json = await response.json();
|
|
14659
|
-
return json
|
|
14660
|
-
} catch (error) {
|
|
14661
|
-
if (shouldIgnoreError(error)) {
|
|
14662
|
-
return undefined
|
|
14663
|
-
}
|
|
14664
|
-
throw new Error(`Failed to get json from cache "${key}"`, {
|
|
14665
|
-
cause: error,
|
|
14666
|
-
})
|
|
14667
|
-
}
|
|
14668
|
-
},
|
|
14669
|
-
async setJson(key, value) {
|
|
14670
|
-
try {
|
|
14671
|
-
await setResponse(key, JSON.stringify(value), 'application/json');
|
|
14672
|
-
} catch (error) {
|
|
14673
|
-
if (shouldIgnoreError(error)) {
|
|
14674
|
-
return
|
|
14675
|
-
}
|
|
14676
|
-
throw new Error(`Failed to put json into cache "${key}"`, {
|
|
14677
|
-
cause: error,
|
|
14678
|
-
})
|
|
14679
|
-
}
|
|
14680
|
-
},
|
|
14681
|
-
};
|
|
14682
14690
|
// TODO when caches is not defined -> should return undefined
|
|
14683
14691
|
|
|
14684
14692
|
const getCache = async () => {
|
|
@@ -14698,11 +14706,23 @@ const getResponse = async (key) => {
|
|
|
14698
14706
|
return response
|
|
14699
14707
|
};
|
|
14700
14708
|
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
|
|
14704
|
-
|
|
14705
|
-
|
|
14709
|
+
const getJson$2 = async (key) => {
|
|
14710
|
+
try {
|
|
14711
|
+
const response = await getResponse(key);
|
|
14712
|
+
if (!response) {
|
|
14713
|
+
return undefined
|
|
14714
|
+
}
|
|
14715
|
+
const json = await response.json();
|
|
14716
|
+
return json
|
|
14717
|
+
} catch (error) {
|
|
14718
|
+
if (shouldIgnoreError(error)) {
|
|
14719
|
+
return undefined
|
|
14720
|
+
}
|
|
14721
|
+
throw new Error(`Failed to get json from cache "${key}"`, {
|
|
14722
|
+
// @ts-ignore
|
|
14723
|
+
cause: error,
|
|
14724
|
+
})
|
|
14725
|
+
}
|
|
14706
14726
|
};
|
|
14707
14727
|
|
|
14708
14728
|
const setResponse = async (key, value, contentType) => {
|
|
@@ -14733,12 +14753,19 @@ const setResponse = async (key, value, contentType) => {
|
|
|
14733
14753
|
};
|
|
14734
14754
|
|
|
14735
14755
|
const setJson$1 = async (key, value) => {
|
|
14736
|
-
|
|
14756
|
+
try {
|
|
14757
|
+
await setResponse(key, JSON.stringify(value), 'application/json');
|
|
14758
|
+
} catch (error) {
|
|
14759
|
+
if (shouldIgnoreError(error)) {
|
|
14760
|
+
return
|
|
14761
|
+
}
|
|
14762
|
+
throw new Error(`Failed to put json into cache "${key}"`, {
|
|
14763
|
+
// @ts-ignore
|
|
14764
|
+
cause: error,
|
|
14765
|
+
})
|
|
14766
|
+
}
|
|
14737
14767
|
};
|
|
14738
14768
|
|
|
14739
|
-
/**
|
|
14740
|
-
* @throws
|
|
14741
|
-
*/
|
|
14742
14769
|
const clearCache = async () => {
|
|
14743
14770
|
if (typeof caches === 'undefined') {
|
|
14744
14771
|
return
|
|
@@ -14750,6 +14777,7 @@ const clearCache = async () => {
|
|
|
14750
14777
|
return
|
|
14751
14778
|
}
|
|
14752
14779
|
throw new Error('Failed to clear cache', {
|
|
14780
|
+
// @ts-ignore
|
|
14753
14781
|
cause: error,
|
|
14754
14782
|
})
|
|
14755
14783
|
}
|
|
@@ -14757,7 +14785,7 @@ const clearCache = async () => {
|
|
|
14757
14785
|
|
|
14758
14786
|
// TODO only use CacheStorage module via ipc -> that way is is always lazyloaded
|
|
14759
14787
|
|
|
14760
|
-
const __initialize__$
|
|
14788
|
+
const __initialize__$t = () => {
|
|
14761
14789
|
register$2(6800, clearCache);
|
|
14762
14790
|
register$2(6801, setJson$1);
|
|
14763
14791
|
register$2(6802, getJson$2);
|
|
@@ -14765,7 +14793,7 @@ const __initialize__$s = () => {
|
|
|
14765
14793
|
|
|
14766
14794
|
var CacheStorage_ipc = {
|
|
14767
14795
|
__proto__: null,
|
|
14768
|
-
__initialize__: __initialize__$
|
|
14796
|
+
__initialize__: __initialize__$t
|
|
14769
14797
|
};
|
|
14770
14798
|
|
|
14771
14799
|
const clear$1 = async () => {
|
|
@@ -14807,7 +14835,7 @@ const setJson = async (key, value) => {
|
|
|
14807
14835
|
|
|
14808
14836
|
// TODO only use LocalStorage module via ipc -> that way is is always lazyloaded
|
|
14809
14837
|
|
|
14810
|
-
const __initialize__$
|
|
14838
|
+
const __initialize__$s = () => {
|
|
14811
14839
|
register$2(6900, clear$1);
|
|
14812
14840
|
register$2(6901, setJson);
|
|
14813
14841
|
register$2(6902, getJson$1);
|
|
@@ -14817,7 +14845,7 @@ const __initialize__$r = () => {
|
|
|
14817
14845
|
|
|
14818
14846
|
var LocalStorage_ipc = {
|
|
14819
14847
|
__proto__: null,
|
|
14820
|
-
__initialize__: __initialize__$
|
|
14848
|
+
__initialize__: __initialize__$s
|
|
14821
14849
|
};
|
|
14822
14850
|
|
|
14823
14851
|
const clear = async () => {
|
|
@@ -14841,24 +14869,24 @@ const getJson = async (key) => {
|
|
|
14841
14869
|
|
|
14842
14870
|
// TODO only use SessionStorage module via ipc -> that way is is always lazyloaded
|
|
14843
14871
|
|
|
14844
|
-
const __initialize__$
|
|
14872
|
+
const __initialize__$r = () => {
|
|
14845
14873
|
register$2(6755, clear);
|
|
14846
14874
|
register$2(6756, getJson);
|
|
14847
14875
|
};
|
|
14848
14876
|
|
|
14849
14877
|
var SessionStorage_ipc = {
|
|
14850
14878
|
__proto__: null,
|
|
14851
|
-
__initialize__: __initialize__$
|
|
14879
|
+
__initialize__: __initialize__$r
|
|
14852
14880
|
};
|
|
14853
14881
|
|
|
14854
|
-
const __initialize__$
|
|
14882
|
+
const __initialize__$q = () => {
|
|
14855
14883
|
register$2(67330, resolve);
|
|
14856
14884
|
register$2(67331, reject);
|
|
14857
14885
|
};
|
|
14858
14886
|
|
|
14859
14887
|
var Callback_ipc = {
|
|
14860
14888
|
__proto__: null,
|
|
14861
|
-
__initialize__: __initialize__$
|
|
14889
|
+
__initialize__: __initialize__$q
|
|
14862
14890
|
};
|
|
14863
14891
|
|
|
14864
14892
|
/**
|
|
@@ -15318,13 +15346,13 @@ const getCommandInfo = (id) => {
|
|
|
15318
15346
|
}
|
|
15319
15347
|
};
|
|
15320
15348
|
|
|
15321
|
-
const __initialize__$
|
|
15349
|
+
const __initialize__$p = () => {
|
|
15322
15350
|
register$2(1592, getCommandInfo);
|
|
15323
15351
|
};
|
|
15324
15352
|
|
|
15325
15353
|
var CommandInfo_ipc = {
|
|
15326
15354
|
__proto__: null,
|
|
15327
|
-
__initialize__: __initialize__$
|
|
15355
|
+
__initialize__: __initialize__$p
|
|
15328
15356
|
};
|
|
15329
15357
|
|
|
15330
15358
|
const state$4 = {
|
|
@@ -15428,7 +15456,7 @@ const handleClick$3 = async (index) => {
|
|
|
15428
15456
|
}
|
|
15429
15457
|
};
|
|
15430
15458
|
|
|
15431
|
-
const __initialize__$
|
|
15459
|
+
const __initialize__$o = () => {
|
|
15432
15460
|
register$2(1492, openFolder);
|
|
15433
15461
|
register$2(1493, showAbout);
|
|
15434
15462
|
register$2(1494, showMessage);
|
|
@@ -15438,10 +15466,10 @@ const __initialize__$n = () => {
|
|
|
15438
15466
|
|
|
15439
15467
|
var Dialog_ipc = {
|
|
15440
15468
|
__proto__: null,
|
|
15441
|
-
__initialize__: __initialize__$
|
|
15469
|
+
__initialize__: __initialize__$o
|
|
15442
15470
|
};
|
|
15443
15471
|
|
|
15444
|
-
const __initialize__$
|
|
15472
|
+
const __initialize__$n = () => {
|
|
15445
15473
|
register$2(7633, setPath);
|
|
15446
15474
|
register$2(7634, hydrate$b);
|
|
15447
15475
|
register$2(7635, setUri);
|
|
@@ -15449,7 +15477,7 @@ const __initialize__$m = () => {
|
|
|
15449
15477
|
|
|
15450
15478
|
var Workspace_ipc = {
|
|
15451
15479
|
__proto__: null,
|
|
15452
|
-
__initialize__: __initialize__$
|
|
15480
|
+
__initialize__: __initialize__$n
|
|
15453
15481
|
};
|
|
15454
15482
|
|
|
15455
15483
|
const transparent = (color, factor) => {
|
|
@@ -15555,16 +15583,16 @@ const createColorThemeFromJson = (colorThemeId, colorThemeJson) => {
|
|
|
15555
15583
|
// }) //?.
|
|
15556
15584
|
// }
|
|
15557
15585
|
|
|
15558
|
-
const __initialize__$
|
|
15586
|
+
const __initialize__$m = () => {
|
|
15559
15587
|
register$2(232, createColorThemeFromJson);
|
|
15560
15588
|
};
|
|
15561
15589
|
|
|
15562
15590
|
var ColorThemeFromJson_ipc = {
|
|
15563
15591
|
__proto__: null,
|
|
15564
|
-
__initialize__: __initialize__$
|
|
15592
|
+
__initialize__: __initialize__$m
|
|
15565
15593
|
};
|
|
15566
15594
|
|
|
15567
|
-
const __initialize__$
|
|
15595
|
+
const __initialize__$l = () => {
|
|
15568
15596
|
register$2(5430, getRecentlyOpened$2);
|
|
15569
15597
|
register$2(5432, clearRecentlyOpened);
|
|
15570
15598
|
register$2(5433, addToRecentlyOpened);
|
|
@@ -15573,13 +15601,13 @@ const __initialize__$k = () => {
|
|
|
15573
15601
|
|
|
15574
15602
|
var RecentlyOpened_ipc = {
|
|
15575
15603
|
__proto__: null,
|
|
15576
|
-
__initialize__: __initialize__$
|
|
15604
|
+
__initialize__: __initialize__$l
|
|
15577
15605
|
};
|
|
15578
15606
|
|
|
15579
15607
|
// TODO who calls this?
|
|
15580
15608
|
// TODO how to return value?
|
|
15581
15609
|
|
|
15582
|
-
const __initialize__$
|
|
15610
|
+
const __initialize__$k = () => {
|
|
15583
15611
|
register$2(501, readFile);
|
|
15584
15612
|
register$2(502, remove);
|
|
15585
15613
|
register$2(503, readDirWithFileTypes);
|
|
@@ -15589,12 +15617,12 @@ const __initialize__$j = () => {
|
|
|
15589
15617
|
|
|
15590
15618
|
var FileSystem_ipc = {
|
|
15591
15619
|
__proto__: null,
|
|
15592
|
-
__initialize__: __initialize__$
|
|
15620
|
+
__initialize__: __initialize__$k
|
|
15593
15621
|
};
|
|
15594
15622
|
|
|
15595
15623
|
const findInWorkspace = async (searchTerm) => {
|
|
15596
15624
|
// TODO ask shared process
|
|
15597
|
-
const root = state$
|
|
15625
|
+
const root = state$w.workspacePath;
|
|
15598
15626
|
const result = await invoke$2(
|
|
15599
15627
|
/* Search.search */ 'Search.search',
|
|
15600
15628
|
/* folder */ root,
|
|
@@ -15603,15 +15631,15 @@ const findInWorkspace = async (searchTerm) => {
|
|
|
15603
15631
|
return result
|
|
15604
15632
|
};
|
|
15605
15633
|
|
|
15606
|
-
const __initialize__$
|
|
15634
|
+
const __initialize__$j = () => {
|
|
15607
15635
|
register$2(5200, findInWorkspace);
|
|
15608
15636
|
console.log('register command');
|
|
15609
|
-
console.log(state$
|
|
15637
|
+
console.log(state$C.commands);
|
|
15610
15638
|
};
|
|
15611
15639
|
|
|
15612
15640
|
var FindInWorkspace_ipc = {
|
|
15613
15641
|
__proto__: null,
|
|
15614
|
-
__initialize__: __initialize__$
|
|
15642
|
+
__initialize__: __initialize__$j
|
|
15615
15643
|
};
|
|
15616
15644
|
|
|
15617
15645
|
const executeDiagnosticProvider = async (editor) => {
|
|
@@ -15647,13 +15675,13 @@ const hydrate = () => {
|
|
|
15647
15675
|
|
|
15648
15676
|
// see also https://tink.uk/using-the-web-speech-api-to-simulate-css-speech-support/
|
|
15649
15677
|
|
|
15650
|
-
const __initialize__$
|
|
15678
|
+
const __initialize__$i = () => {
|
|
15651
15679
|
register$2(8786, hydrate);
|
|
15652
15680
|
};
|
|
15653
15681
|
|
|
15654
15682
|
var EditorDiagnostics_ipc = {
|
|
15655
15683
|
__proto__: null,
|
|
15656
|
-
__initialize__: __initialize__$
|
|
15684
|
+
__initialize__: __initialize__$i
|
|
15657
15685
|
};
|
|
15658
15686
|
|
|
15659
15687
|
const executePrepareRenameProvider = async (editor, offset) => {
|
|
@@ -15696,11 +15724,11 @@ const open = async (editor) => {
|
|
|
15696
15724
|
const y$1 = y(editor, editor.cursor);
|
|
15697
15725
|
// const prepareRenameResult = await prepareRename(editor)
|
|
15698
15726
|
// console.log({ prepareRenameResult })
|
|
15699
|
-
|
|
15727
|
+
await invoke$1(
|
|
15700
15728
|
/* EditorRename.openWidget */ 4512,
|
|
15701
15729
|
/* x */ x$1,
|
|
15702
|
-
/* y */ y$1
|
|
15703
|
-
|
|
15730
|
+
/* y */ y$1
|
|
15731
|
+
);
|
|
15704
15732
|
} else {
|
|
15705
15733
|
// TODO also show error when promise rejects
|
|
15706
15734
|
await execute$1(
|
|
@@ -15755,11 +15783,11 @@ const finish = async (editor) => {
|
|
|
15755
15783
|
// console.log({ workspaceEdits })
|
|
15756
15784
|
};
|
|
15757
15785
|
|
|
15758
|
-
const abort = () => {
|
|
15759
|
-
|
|
15786
|
+
const abort = async () => {
|
|
15787
|
+
await invoke$1(/* EditorRename.closeWidget */ 4514);
|
|
15760
15788
|
};
|
|
15761
15789
|
|
|
15762
|
-
const __initialize__$
|
|
15790
|
+
const __initialize__$h = () => {
|
|
15763
15791
|
register$2(3300, open);
|
|
15764
15792
|
register$2(3301, finish);
|
|
15765
15793
|
register$2(3302, abort);
|
|
@@ -15767,27 +15795,27 @@ const __initialize__$g = () => {
|
|
|
15767
15795
|
|
|
15768
15796
|
var EditorRename_ipc = {
|
|
15769
15797
|
__proto__: null,
|
|
15770
|
-
__initialize__: __initialize__$
|
|
15798
|
+
__initialize__: __initialize__$h
|
|
15771
15799
|
};
|
|
15772
15800
|
|
|
15773
|
-
const show$1 = (editor, message, position) => {
|
|
15801
|
+
const show$1 = async (editor, message, position) => {
|
|
15774
15802
|
const x$1 = x(editor, position);
|
|
15775
15803
|
const y$1 = y(editor, position);
|
|
15776
|
-
|
|
15804
|
+
await invoke$1(
|
|
15777
15805
|
/* EditorError.show */ 3700,
|
|
15778
15806
|
/* message */ message,
|
|
15779
15807
|
/* x */ x$1,
|
|
15780
|
-
/* y */ y$1
|
|
15781
|
-
|
|
15808
|
+
/* y */ y$1
|
|
15809
|
+
);
|
|
15782
15810
|
};
|
|
15783
15811
|
|
|
15784
|
-
const __initialize__$
|
|
15812
|
+
const __initialize__$g = () => {
|
|
15785
15813
|
register$2(3900, show$1);
|
|
15786
15814
|
};
|
|
15787
15815
|
|
|
15788
15816
|
var EditorError_ipc = {
|
|
15789
15817
|
__proto__: null,
|
|
15790
|
-
__initialize__: __initialize__$
|
|
15818
|
+
__initialize__: __initialize__$g
|
|
15791
15819
|
};
|
|
15792
15820
|
|
|
15793
15821
|
// TODO should avoid many promises somehow
|
|
@@ -15817,22 +15845,22 @@ const getKeyBindings = async () => {
|
|
|
15817
15845
|
return keyBindings
|
|
15818
15846
|
};
|
|
15819
15847
|
|
|
15820
|
-
const __initialize__$
|
|
15848
|
+
const __initialize__$f = () => {
|
|
15821
15849
|
register$2(8961, getKeyBindings);
|
|
15822
15850
|
};
|
|
15823
15851
|
|
|
15824
15852
|
var KeyBindingsInitial_ipc = {
|
|
15825
15853
|
__proto__: null,
|
|
15826
|
-
__initialize__: __initialize__$
|
|
15854
|
+
__initialize__: __initialize__$f
|
|
15827
15855
|
};
|
|
15828
15856
|
|
|
15829
|
-
const __initialize__$
|
|
15857
|
+
const __initialize__$e = () => {
|
|
15830
15858
|
register$2(6661, hydrate$4);
|
|
15831
15859
|
};
|
|
15832
15860
|
|
|
15833
15861
|
var SaveState_ipc = {
|
|
15834
15862
|
__proto__: null,
|
|
15835
|
-
__initialize__: __initialize__$
|
|
15863
|
+
__initialize__: __initialize__$e
|
|
15836
15864
|
};
|
|
15837
15865
|
|
|
15838
15866
|
const acceptInput$1 = async (text) => {
|
|
@@ -15975,23 +16003,23 @@ var ViewletSourceControl = {
|
|
|
15975
16003
|
render: render$a
|
|
15976
16004
|
};
|
|
15977
16005
|
|
|
15978
|
-
const __initialize__$
|
|
16006
|
+
const __initialize__$d = () => {
|
|
15979
16007
|
register$2(6532, wrapViewletCommand('Source Control',acceptInput));
|
|
15980
16008
|
};
|
|
15981
16009
|
|
|
15982
16010
|
var ViewletSourceControl_ipc = {
|
|
15983
16011
|
__proto__: null,
|
|
15984
|
-
__initialize__: __initialize__$
|
|
16012
|
+
__initialize__: __initialize__$d
|
|
15985
16013
|
};
|
|
15986
16014
|
|
|
15987
|
-
const __initialize__$
|
|
16015
|
+
const __initialize__$c = () => {
|
|
15988
16016
|
register$2(5783, hydrate$3);
|
|
15989
16017
|
register$2(5784, uninstall$1);
|
|
15990
16018
|
};
|
|
15991
16019
|
|
|
15992
16020
|
var ServiceWorker_ipc = {
|
|
15993
16021
|
__proto__: null,
|
|
15994
|
-
__initialize__: __initialize__$
|
|
16022
|
+
__initialize__: __initialize__$c
|
|
15995
16023
|
};
|
|
15996
16024
|
|
|
15997
16025
|
const state$3 = {
|
|
@@ -16044,14 +16072,14 @@ const hide = async () => {
|
|
|
16044
16072
|
|
|
16045
16073
|
// TODO only use ImagePreview module via ipc -> that way is is always lazyloaded
|
|
16046
16074
|
|
|
16047
|
-
const __initialize__$
|
|
16075
|
+
const __initialize__$b = () => {
|
|
16048
16076
|
register$2(9081, show);
|
|
16049
16077
|
register$2(9082, hide);
|
|
16050
16078
|
};
|
|
16051
16079
|
|
|
16052
16080
|
var ImagePreview_ipc = {
|
|
16053
16081
|
__proto__: null,
|
|
16054
|
-
__initialize__: __initialize__$
|
|
16082
|
+
__initialize__: __initialize__$b
|
|
16055
16083
|
};
|
|
16056
16084
|
|
|
16057
16085
|
/**
|
|
@@ -16162,13 +16190,13 @@ const decode = (encoded) => {
|
|
|
16162
16190
|
return decoded
|
|
16163
16191
|
};
|
|
16164
16192
|
|
|
16165
|
-
const __initialize__$
|
|
16193
|
+
const __initialize__$a = () => {
|
|
16166
16194
|
register$2(7890, decode);
|
|
16167
16195
|
};
|
|
16168
16196
|
|
|
16169
16197
|
var Base64_ipc = {
|
|
16170
16198
|
__proto__: null,
|
|
16171
|
-
__initialize__: __initialize__$
|
|
16199
|
+
__initialize__: __initialize__$a
|
|
16172
16200
|
};
|
|
16173
16201
|
|
|
16174
16202
|
function createBlob(parts, properties) {
|
|
@@ -16210,22 +16238,22 @@ const base64StringToBlob = (base64String) => {
|
|
|
16210
16238
|
return base64StringToBlob$1(base64String)
|
|
16211
16239
|
};
|
|
16212
16240
|
|
|
16213
|
-
const __initialize__$
|
|
16241
|
+
const __initialize__$9 = () => {
|
|
16214
16242
|
register$2(4356, base64StringToBlob);
|
|
16215
16243
|
};
|
|
16216
16244
|
|
|
16217
16245
|
var Blob_ipc = {
|
|
16218
16246
|
__proto__: null,
|
|
16219
|
-
__initialize__: __initialize__$
|
|
16247
|
+
__initialize__: __initialize__$9
|
|
16220
16248
|
};
|
|
16221
16249
|
|
|
16222
|
-
const __initialize__$
|
|
16250
|
+
const __initialize__$8 = () => {
|
|
16223
16251
|
register$2(1370, openNativeFolder);
|
|
16224
16252
|
};
|
|
16225
16253
|
|
|
16226
16254
|
var Open_ipc = {
|
|
16227
16255
|
__proto__: null,
|
|
16228
|
-
__initialize__: __initialize__$
|
|
16256
|
+
__initialize__: __initialize__$8
|
|
16229
16257
|
};
|
|
16230
16258
|
|
|
16231
16259
|
const playBell = async () => {
|
|
@@ -16233,13 +16261,13 @@ const playBell = async () => {
|
|
|
16233
16261
|
await invoke$1(/* Audio.play */ 3211, /* src */ src);
|
|
16234
16262
|
};
|
|
16235
16263
|
|
|
16236
|
-
const __initialize__$
|
|
16264
|
+
const __initialize__$7 = () => {
|
|
16237
16265
|
register$2(4444, playBell);
|
|
16238
16266
|
};
|
|
16239
16267
|
|
|
16240
16268
|
var Audio_ipc = {
|
|
16241
16269
|
__proto__: null,
|
|
16242
|
-
__initialize__: __initialize__$
|
|
16270
|
+
__initialize__: __initialize__$7
|
|
16243
16271
|
};
|
|
16244
16272
|
|
|
16245
16273
|
const create$g = (id, uri, left, top, width, height) => {
|
|
@@ -16409,14 +16437,14 @@ var ViewletSideBar = {
|
|
|
16409
16437
|
resize: resize$5
|
|
16410
16438
|
};
|
|
16411
16439
|
|
|
16412
|
-
const __initialize__$
|
|
16440
|
+
const __initialize__$6 = () => {
|
|
16413
16441
|
register$2(553, wrapViewletCommand('SideBar', showOrHideViewlet));
|
|
16414
16442
|
register$2(554, wrapViewletCommand('SideBar', openViewlet));
|
|
16415
16443
|
};
|
|
16416
16444
|
|
|
16417
16445
|
var ViewletSideBar_ipc = {
|
|
16418
16446
|
__proto__: null,
|
|
16419
|
-
__initialize__: __initialize__$
|
|
16447
|
+
__initialize__: __initialize__$6
|
|
16420
16448
|
};
|
|
16421
16449
|
|
|
16422
16450
|
const state$2 = Object.create(null);
|
|
@@ -16617,22 +16645,22 @@ var ViewletStatusBar = {
|
|
|
16617
16645
|
render: render$9
|
|
16618
16646
|
};
|
|
16619
16647
|
|
|
16620
|
-
const __initialize__$
|
|
16648
|
+
const __initialize__$5 = () => {
|
|
16621
16649
|
register$2(2260, wrapViewletCommand('StatusBar', updateStatusBarItems));
|
|
16622
16650
|
};
|
|
16623
16651
|
|
|
16624
16652
|
var ViewletStatusBar_ipc = {
|
|
16625
16653
|
__proto__: null,
|
|
16626
|
-
__initialize__: __initialize__$
|
|
16654
|
+
__initialize__: __initialize__$5
|
|
16627
16655
|
};
|
|
16628
16656
|
|
|
16629
|
-
const __initialize__$
|
|
16657
|
+
const __initialize__$4 = () => {
|
|
16630
16658
|
register$2(3444, execute);
|
|
16631
16659
|
};
|
|
16632
16660
|
|
|
16633
16661
|
var Listener_ipc = {
|
|
16634
16662
|
__proto__: null,
|
|
16635
|
-
__initialize__: __initialize__$
|
|
16663
|
+
__initialize__: __initialize__$4
|
|
16636
16664
|
};
|
|
16637
16665
|
|
|
16638
16666
|
const name$g = 'Search';
|
|
@@ -16793,14 +16821,14 @@ var ViewletSearch = {
|
|
|
16793
16821
|
render: render$8
|
|
16794
16822
|
};
|
|
16795
16823
|
|
|
16796
|
-
const __initialize__$
|
|
16824
|
+
const __initialize__$3 = () => {
|
|
16797
16825
|
register$2(9444, wrapViewletCommand('Search', handleInput));
|
|
16798
16826
|
register$2(9445, wrapViewletCommand('Search', handleClick));
|
|
16799
16827
|
};
|
|
16800
16828
|
|
|
16801
16829
|
var ViewletSearch_ipc = {
|
|
16802
16830
|
__proto__: null,
|
|
16803
|
-
__initialize__: __initialize__$
|
|
16831
|
+
__initialize__: __initialize__$3
|
|
16804
16832
|
};
|
|
16805
16833
|
|
|
16806
16834
|
const executeCompletionProvider = async (editor, offset) => {
|
|
@@ -16968,7 +16996,7 @@ const selectIndex$1 = (state, index) => {
|
|
|
16968
16996
|
return select(state, completionItem)
|
|
16969
16997
|
};
|
|
16970
16998
|
|
|
16971
|
-
const focusIndex$
|
|
16999
|
+
const focusIndex$2 = (state, index) => {
|
|
16972
17000
|
return {
|
|
16973
17001
|
...state,
|
|
16974
17002
|
focusedIndex: index,
|
|
@@ -16976,25 +17004,25 @@ const focusIndex$1 = (state, index) => {
|
|
|
16976
17004
|
};
|
|
16977
17005
|
|
|
16978
17006
|
const focusFirst$1 = (state) => {
|
|
16979
|
-
return focusIndex$
|
|
17007
|
+
return focusIndex$2(state, 0)
|
|
16980
17008
|
};
|
|
16981
17009
|
|
|
16982
17010
|
const focusLast$1 = (state) => {
|
|
16983
|
-
return focusIndex$
|
|
17011
|
+
return focusIndex$2(state, state.completionItems.length - 1)
|
|
16984
17012
|
};
|
|
16985
17013
|
|
|
16986
17014
|
const focusPrevious$1 = (state) => {
|
|
16987
17015
|
if (state.focusedIndex === 0) {
|
|
16988
17016
|
return focusLast$1(state)
|
|
16989
17017
|
}
|
|
16990
|
-
return focusIndex$
|
|
17018
|
+
return focusIndex$2(state, state.focusedIndex - 1)
|
|
16991
17019
|
};
|
|
16992
17020
|
|
|
16993
17021
|
const focusNext$1 = (state) => {
|
|
16994
17022
|
if (state.focusedIndex === state.completionItems.length - 1) {
|
|
16995
17023
|
return focusFirst$1(state)
|
|
16996
17024
|
}
|
|
16997
|
-
return focusIndex$
|
|
17025
|
+
return focusIndex$2(state, state.focusedIndex + 1)
|
|
16998
17026
|
};
|
|
16999
17027
|
|
|
17000
17028
|
const hasFunctionalRender$7 = true;
|
|
@@ -17039,7 +17067,7 @@ var ViewletEditorCompletion = {
|
|
|
17039
17067
|
handleSelectionChange: handleSelectionChange,
|
|
17040
17068
|
advance: advance,
|
|
17041
17069
|
selectIndex: selectIndex$1,
|
|
17042
|
-
focusIndex: focusIndex$
|
|
17070
|
+
focusIndex: focusIndex$2,
|
|
17043
17071
|
focusFirst: focusFirst$1,
|
|
17044
17072
|
focusLast: focusLast$1,
|
|
17045
17073
|
focusPrevious: focusPrevious$1,
|
|
@@ -17049,7 +17077,7 @@ var ViewletEditorCompletion = {
|
|
|
17049
17077
|
dispose: dispose$c
|
|
17050
17078
|
};
|
|
17051
17079
|
|
|
17052
|
-
const __initialize__$
|
|
17080
|
+
const __initialize__$2 = () => {
|
|
17053
17081
|
register$2(981, wrapViewletCommand('EditorCompletion', dispose$c));
|
|
17054
17082
|
register$2(982, wrapViewletCommand('EditorCompletion', selectIndex$1));
|
|
17055
17083
|
register$2(983, wrapViewletCommand('EditorCompletion', focusFirst$1));
|
|
@@ -17061,7 +17089,7 @@ const __initialize__$1 = () => {
|
|
|
17061
17089
|
|
|
17062
17090
|
var ViewletEditorCompletion_ipc = {
|
|
17063
17091
|
__proto__: null,
|
|
17064
|
-
__initialize__: __initialize__$
|
|
17092
|
+
__initialize__: __initialize__$2
|
|
17065
17093
|
};
|
|
17066
17094
|
|
|
17067
17095
|
const name$f = 'Locations';
|
|
@@ -17257,7 +17285,7 @@ const render$6 = (oldState, newState) => {
|
|
|
17257
17285
|
return changes
|
|
17258
17286
|
};
|
|
17259
17287
|
|
|
17260
|
-
const focusIndex = (state, index) => {
|
|
17288
|
+
const focusIndex$1 = (state, index) => {
|
|
17261
17289
|
return {
|
|
17262
17290
|
...state,
|
|
17263
17291
|
focusedIndex: index,
|
|
@@ -17268,28 +17296,28 @@ const focusFirst = (state) => {
|
|
|
17268
17296
|
if (state.displayReferences.length === 0) {
|
|
17269
17297
|
return state
|
|
17270
17298
|
}
|
|
17271
|
-
return focusIndex(state, 0)
|
|
17299
|
+
return focusIndex$1(state, 0)
|
|
17272
17300
|
};
|
|
17273
17301
|
|
|
17274
17302
|
const focusPrevious = (state) => {
|
|
17275
17303
|
if (state.focusedIndex === 0 || state.focusedIndex === -1) {
|
|
17276
17304
|
return state
|
|
17277
17305
|
}
|
|
17278
|
-
return focusIndex(state, state.focusedIndex - 1)
|
|
17306
|
+
return focusIndex$1(state, state.focusedIndex - 1)
|
|
17279
17307
|
};
|
|
17280
17308
|
|
|
17281
17309
|
const focusNext = (state) => {
|
|
17282
17310
|
if (state.focusedIndex === state.displayReferences.length - 1) {
|
|
17283
17311
|
return state
|
|
17284
17312
|
}
|
|
17285
|
-
return focusIndex(state, state.focusedIndex + 1)
|
|
17313
|
+
return focusIndex$1(state, state.focusedIndex + 1)
|
|
17286
17314
|
};
|
|
17287
17315
|
|
|
17288
17316
|
const focusLast = (state) => {
|
|
17289
17317
|
if (state.focusedIndex === state.displayReferences.length - 1) {
|
|
17290
17318
|
return state
|
|
17291
17319
|
}
|
|
17292
|
-
return focusIndex(state, state.displayReferences.length - 1)
|
|
17320
|
+
return focusIndex$1(state, state.displayReferences.length - 1)
|
|
17293
17321
|
};
|
|
17294
17322
|
|
|
17295
17323
|
const selectCurrent = (state) => {
|
|
@@ -17309,7 +17337,7 @@ var ViewletLocations = {
|
|
|
17309
17337
|
selectIndex: selectIndex,
|
|
17310
17338
|
hasFunctionalRender: hasFunctionalRender$6,
|
|
17311
17339
|
render: render$6,
|
|
17312
|
-
focusIndex: focusIndex,
|
|
17340
|
+
focusIndex: focusIndex$1,
|
|
17313
17341
|
focusFirst: focusFirst,
|
|
17314
17342
|
focusPrevious: focusPrevious,
|
|
17315
17343
|
focusNext: focusNext,
|
|
@@ -17317,37 +17345,61 @@ var ViewletLocations = {
|
|
|
17317
17345
|
selectCurrent: selectCurrent
|
|
17318
17346
|
};
|
|
17319
17347
|
|
|
17320
|
-
const __initialize__ = () => {
|
|
17348
|
+
const __initialize__$1 = () => {
|
|
17321
17349
|
register$2(7100, wrapViewletCommand('Locations', selectIndex));
|
|
17322
17350
|
register$2(7101, wrapViewletCommand('Locations', focusFirst));
|
|
17323
17351
|
register$2(7102, wrapViewletCommand('Locations', focusLast));
|
|
17324
17352
|
register$2(7103, wrapViewletCommand('Locations', focusNext));
|
|
17325
17353
|
register$2(7104, wrapViewletCommand('Locations', focusPrevious));
|
|
17326
17354
|
register$2(7105, wrapViewletCommand('Locations', selectCurrent));
|
|
17327
|
-
register$2(7106, wrapViewletCommand('Locations', focusIndex));
|
|
17355
|
+
register$2(7106, wrapViewletCommand('Locations', focusIndex$1));
|
|
17328
17356
|
};
|
|
17329
17357
|
|
|
17330
17358
|
var ViewletLocations_ipc = {
|
|
17331
17359
|
__proto__: null,
|
|
17332
|
-
__initialize__: __initialize__
|
|
17360
|
+
__initialize__: __initialize__$1
|
|
17333
17361
|
};
|
|
17334
17362
|
|
|
17335
|
-
const name$e = '
|
|
17363
|
+
const name$e = 'Problems';
|
|
17336
17364
|
|
|
17337
|
-
const create$b = (
|
|
17365
|
+
const create$b = () => {
|
|
17338
17366
|
return {
|
|
17339
|
-
|
|
17367
|
+
problems: [],
|
|
17340
17368
|
disposed: false,
|
|
17369
|
+
focusedIndex: -2,
|
|
17341
17370
|
}
|
|
17342
17371
|
};
|
|
17343
17372
|
|
|
17373
|
+
const toProblem = (diagnostic) => {
|
|
17374
|
+
return diagnostic.message
|
|
17375
|
+
};
|
|
17376
|
+
|
|
17344
17377
|
const loadContent$b = async (state) => {
|
|
17345
|
-
|
|
17378
|
+
const instance = state$m.instances['EditorText'];
|
|
17379
|
+
if (!instance) {
|
|
17380
|
+
return state
|
|
17381
|
+
}
|
|
17382
|
+
const editor = instance.state;
|
|
17383
|
+
const diagnostics = await executeDiagnosticProvider(
|
|
17384
|
+
editor
|
|
17385
|
+
);
|
|
17386
|
+
const problems = diagnostics.map(toProblem);
|
|
17387
|
+
return {
|
|
17388
|
+
...state,
|
|
17389
|
+
problems,
|
|
17390
|
+
}
|
|
17346
17391
|
};
|
|
17347
17392
|
|
|
17348
17393
|
const contentLoaded$b = async (state) => {};
|
|
17349
17394
|
|
|
17350
|
-
|
|
17395
|
+
const focusIndex = (state, index) => {
|
|
17396
|
+
console.log({ index });
|
|
17397
|
+
return {
|
|
17398
|
+
...state,
|
|
17399
|
+
focusedIndex: index,
|
|
17400
|
+
}
|
|
17401
|
+
};
|
|
17402
|
+
|
|
17351
17403
|
const dispose$a = (state) => {
|
|
17352
17404
|
return {
|
|
17353
17405
|
...state,
|
|
@@ -17355,30 +17407,58 @@ const dispose$a = (state) => {
|
|
|
17355
17407
|
}
|
|
17356
17408
|
};
|
|
17357
17409
|
|
|
17358
|
-
const
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17364
|
-
|
|
17410
|
+
const hasFunctionalRender$5 = true;
|
|
17411
|
+
|
|
17412
|
+
const render$5 = (oldState, newState) => {
|
|
17413
|
+
console.log('render', oldState, newState);
|
|
17414
|
+
const changes = [];
|
|
17415
|
+
if (oldState.problems !== newState.problems) {
|
|
17416
|
+
changes.push([
|
|
17417
|
+
/* Viewlet.invoke */ 3024,
|
|
17418
|
+
/* id */ 'Problems',
|
|
17419
|
+
/* method */ 'setProblems',
|
|
17420
|
+
/* problems */ newState.problems,
|
|
17421
|
+
]);
|
|
17365
17422
|
}
|
|
17423
|
+
if (oldState.focusedIndex !== newState.focusedIndex) {
|
|
17424
|
+
console.log('focused idnex changed');
|
|
17425
|
+
changes.push([
|
|
17426
|
+
/* Viewlet.invoke */ 3024,
|
|
17427
|
+
/* id */ 'Problems',
|
|
17428
|
+
/* method */ 'setFocusedIndex',
|
|
17429
|
+
/* focusedIndex */ newState.focusedIndex,
|
|
17430
|
+
]);
|
|
17431
|
+
}
|
|
17432
|
+
return changes
|
|
17366
17433
|
};
|
|
17367
17434
|
|
|
17368
|
-
var
|
|
17435
|
+
var ViewletProblems = {
|
|
17369
17436
|
__proto__: null,
|
|
17370
17437
|
name: name$e,
|
|
17371
17438
|
create: create$b,
|
|
17372
17439
|
loadContent: loadContent$b,
|
|
17373
17440
|
contentLoaded: contentLoaded$b,
|
|
17441
|
+
focusIndex: focusIndex,
|
|
17374
17442
|
dispose: dispose$a,
|
|
17375
|
-
|
|
17443
|
+
hasFunctionalRender: hasFunctionalRender$5,
|
|
17444
|
+
render: render$5
|
|
17445
|
+
};
|
|
17446
|
+
|
|
17447
|
+
// prettier-ignore
|
|
17448
|
+
const __initialize__ = () => {
|
|
17449
|
+
register$2(7550, wrapViewletCommand('Problems', focusIndex));
|
|
17450
|
+
};
|
|
17451
|
+
|
|
17452
|
+
var ViewletProblems_ipc = {
|
|
17453
|
+
__proto__: null,
|
|
17454
|
+
__initialize__: __initialize__
|
|
17376
17455
|
};
|
|
17377
17456
|
|
|
17378
|
-
const name$d = '
|
|
17457
|
+
const name$d = 'RunAndDebug';
|
|
17379
17458
|
|
|
17380
|
-
const create$a = () => {
|
|
17459
|
+
const create$a = (id) => {
|
|
17381
17460
|
return {
|
|
17461
|
+
id,
|
|
17382
17462
|
disposed: false,
|
|
17383
17463
|
}
|
|
17384
17464
|
};
|
|
@@ -17389,6 +17469,7 @@ const loadContent$a = async (state) => {
|
|
|
17389
17469
|
|
|
17390
17470
|
const contentLoaded$a = async (state) => {};
|
|
17391
17471
|
|
|
17472
|
+
// TODO make sure dispose is actually called
|
|
17392
17473
|
const dispose$9 = (state) => {
|
|
17393
17474
|
return {
|
|
17394
17475
|
...state,
|
|
@@ -17396,13 +17477,54 @@ const dispose$9 = (state) => {
|
|
|
17396
17477
|
}
|
|
17397
17478
|
};
|
|
17398
17479
|
|
|
17399
|
-
|
|
17480
|
+
const resize$2 = (state, dimensions) => {
|
|
17481
|
+
return {
|
|
17482
|
+
newState: {
|
|
17483
|
+
...state,
|
|
17484
|
+
...dimensions,
|
|
17485
|
+
},
|
|
17486
|
+
commands: [],
|
|
17487
|
+
}
|
|
17488
|
+
};
|
|
17489
|
+
|
|
17490
|
+
var ViewletRunAndDebug = {
|
|
17400
17491
|
__proto__: null,
|
|
17401
17492
|
name: name$d,
|
|
17402
17493
|
create: create$a,
|
|
17403
17494
|
loadContent: loadContent$a,
|
|
17404
17495
|
contentLoaded: contentLoaded$a,
|
|
17405
|
-
dispose: dispose$9
|
|
17496
|
+
dispose: dispose$9,
|
|
17497
|
+
resize: resize$2
|
|
17498
|
+
};
|
|
17499
|
+
|
|
17500
|
+
const name$c = 'Debug Console';
|
|
17501
|
+
|
|
17502
|
+
const create$9 = () => {
|
|
17503
|
+
return {
|
|
17504
|
+
disposed: false,
|
|
17505
|
+
}
|
|
17506
|
+
};
|
|
17507
|
+
|
|
17508
|
+
const loadContent$9 = async (state) => {
|
|
17509
|
+
return state
|
|
17510
|
+
};
|
|
17511
|
+
|
|
17512
|
+
const contentLoaded$9 = async (state) => {};
|
|
17513
|
+
|
|
17514
|
+
const dispose$8 = (state) => {
|
|
17515
|
+
return {
|
|
17516
|
+
...state,
|
|
17517
|
+
disposed: true,
|
|
17518
|
+
}
|
|
17519
|
+
};
|
|
17520
|
+
|
|
17521
|
+
var ViewletDebugConsole = {
|
|
17522
|
+
__proto__: null,
|
|
17523
|
+
name: name$c,
|
|
17524
|
+
create: create$9,
|
|
17525
|
+
loadContent: loadContent$9,
|
|
17526
|
+
contentLoaded: contentLoaded$9,
|
|
17527
|
+
dispose: dispose$8
|
|
17406
17528
|
};
|
|
17407
17529
|
|
|
17408
17530
|
const getOutputChannels = () => {
|
|
@@ -17414,9 +17536,9 @@ const getOutputChannels = () => {
|
|
|
17414
17536
|
)
|
|
17415
17537
|
};
|
|
17416
17538
|
|
|
17417
|
-
const name$
|
|
17539
|
+
const name$b = 'Output';
|
|
17418
17540
|
|
|
17419
|
-
const create$
|
|
17541
|
+
const create$8 = () => {
|
|
17420
17542
|
return {
|
|
17421
17543
|
selectedIndex: -1,
|
|
17422
17544
|
// TODO get list of outputChannels from extension host
|
|
@@ -17432,7 +17554,7 @@ const toExtensionHostOption = (outputChannel) => {
|
|
|
17432
17554
|
}
|
|
17433
17555
|
};
|
|
17434
17556
|
|
|
17435
|
-
const loadContent$
|
|
17557
|
+
const loadContent$8 = async (state) => {
|
|
17436
17558
|
// TODO get list of outputChannels from extension host
|
|
17437
17559
|
|
|
17438
17560
|
const channels = await getOutputChannels();
|
|
@@ -17457,7 +17579,7 @@ const loadContent$9 = async (state) => {
|
|
|
17457
17579
|
}
|
|
17458
17580
|
};
|
|
17459
17581
|
|
|
17460
|
-
const contentLoaded$
|
|
17582
|
+
const contentLoaded$8 = async (state) => {
|
|
17461
17583
|
await invoke$1(
|
|
17462
17584
|
/* Viewlet.invoke */ 3024,
|
|
17463
17585
|
/* id */ 'Output',
|
|
@@ -17494,7 +17616,7 @@ const handleData = async (state, data) => {
|
|
|
17494
17616
|
);
|
|
17495
17617
|
};
|
|
17496
17618
|
|
|
17497
|
-
const dispose$
|
|
17619
|
+
const dispose$7 = async (state) => {
|
|
17498
17620
|
state.disposed = true;
|
|
17499
17621
|
// TODO close output channel in shared process
|
|
17500
17622
|
await invoke$2(
|
|
@@ -17523,81 +17645,17 @@ const handleError = (state, error) => {
|
|
|
17523
17645
|
};
|
|
17524
17646
|
|
|
17525
17647
|
var ViewletOutput = {
|
|
17526
|
-
__proto__: null,
|
|
17527
|
-
name: name$c,
|
|
17528
|
-
create: create$9,
|
|
17529
|
-
loadContent: loadContent$9,
|
|
17530
|
-
contentLoaded: contentLoaded$9,
|
|
17531
|
-
setOutputChannel: setOutputChannel,
|
|
17532
|
-
handleData: handleData,
|
|
17533
|
-
dispose: dispose$8,
|
|
17534
|
-
openFindWidget: openFindWidget,
|
|
17535
|
-
closeFindWidget: closeFindWidget,
|
|
17536
|
-
handleError: handleError
|
|
17537
|
-
};
|
|
17538
|
-
|
|
17539
|
-
const name$b = 'Problems';
|
|
17540
|
-
|
|
17541
|
-
const create$8 = () => {
|
|
17542
|
-
return {
|
|
17543
|
-
problems: [],
|
|
17544
|
-
disposed: false,
|
|
17545
|
-
}
|
|
17546
|
-
};
|
|
17547
|
-
|
|
17548
|
-
const toProblem = (diagnostic) => {
|
|
17549
|
-
return diagnostic.message
|
|
17550
|
-
};
|
|
17551
|
-
|
|
17552
|
-
const loadContent$8 = async (state) => {
|
|
17553
|
-
const instance = state$p.instances['EditorText'];
|
|
17554
|
-
if (!instance) {
|
|
17555
|
-
return state
|
|
17556
|
-
}
|
|
17557
|
-
const editor = instance.state;
|
|
17558
|
-
const diagnostics = await executeDiagnosticProvider(
|
|
17559
|
-
editor
|
|
17560
|
-
);
|
|
17561
|
-
const problems = diagnostics.map(toProblem);
|
|
17562
|
-
return {
|
|
17563
|
-
...state,
|
|
17564
|
-
problems,
|
|
17565
|
-
}
|
|
17566
|
-
};
|
|
17567
|
-
|
|
17568
|
-
const contentLoaded$8 = async (state) => {};
|
|
17569
|
-
|
|
17570
|
-
const dispose$7 = (state) => {
|
|
17571
|
-
return {
|
|
17572
|
-
...state,
|
|
17573
|
-
disposed: true,
|
|
17574
|
-
}
|
|
17575
|
-
};
|
|
17576
|
-
|
|
17577
|
-
const hasFunctionalRender$5 = true;
|
|
17578
|
-
|
|
17579
|
-
const render$5 = (oldState, newState) => {
|
|
17580
|
-
const changes = [];
|
|
17581
|
-
if (oldState.problems !== newState.problems) {
|
|
17582
|
-
changes.push([
|
|
17583
|
-
/* Viewlet.invoke */ 3024,
|
|
17584
|
-
/* id */ 'Problems',
|
|
17585
|
-
/* method */ 'setProblems',
|
|
17586
|
-
/* problems */ newState.problems,
|
|
17587
|
-
]);
|
|
17588
|
-
}
|
|
17589
|
-
return changes
|
|
17590
|
-
};
|
|
17591
|
-
|
|
17592
|
-
var ViewletProblems = {
|
|
17593
17648
|
__proto__: null,
|
|
17594
17649
|
name: name$b,
|
|
17595
17650
|
create: create$8,
|
|
17596
17651
|
loadContent: loadContent$8,
|
|
17597
17652
|
contentLoaded: contentLoaded$8,
|
|
17653
|
+
setOutputChannel: setOutputChannel,
|
|
17654
|
+
handleData: handleData,
|
|
17598
17655
|
dispose: dispose$7,
|
|
17599
|
-
|
|
17600
|
-
|
|
17656
|
+
openFindWidget: openFindWidget,
|
|
17657
|
+
closeFindWidget: closeFindWidget,
|
|
17658
|
+
handleError: handleError
|
|
17601
17659
|
};
|
|
17602
17660
|
|
|
17603
17661
|
const create$7 = (id) => {
|
|
@@ -17686,7 +17744,7 @@ const getContent = async (uri) => {
|
|
|
17686
17744
|
|
|
17687
17745
|
// TODO how to connect this function with tokenizer?
|
|
17688
17746
|
const handleTokenizeChange = () => {
|
|
17689
|
-
const instances = state$
|
|
17747
|
+
const instances = state$m.instances;
|
|
17690
17748
|
const instance = instances.EditorText;
|
|
17691
17749
|
if (!instance) {
|
|
17692
17750
|
console.log('no text editor');
|
|
@@ -17782,7 +17840,7 @@ const contentLoadedEffects = async (state) => {
|
|
|
17782
17840
|
};
|
|
17783
17841
|
|
|
17784
17842
|
const handleLanguagesChanged = async () => {
|
|
17785
|
-
const instances = state$
|
|
17843
|
+
const instances = state$m.instances;
|
|
17786
17844
|
const instance = instances.EditorText;
|
|
17787
17845
|
if (!instance) {
|
|
17788
17846
|
console.log('no text editor');
|
|
@@ -18060,7 +18118,7 @@ const executeReferenceProvider = async (editor, offset) => {
|
|
|
18060
18118
|
};
|
|
18061
18119
|
|
|
18062
18120
|
const getReferences = async () => {
|
|
18063
|
-
const editor = state$
|
|
18121
|
+
const editor = state$m.instances['EditorText'].state;
|
|
18064
18122
|
const offset = offsetAt(editor, editor.cursor);
|
|
18065
18123
|
const references = await executeReferenceProvider(
|
|
18066
18124
|
editor,
|
|
@@ -18081,7 +18139,7 @@ const loadContent$1 = async (state) => {
|
|
|
18081
18139
|
|
|
18082
18140
|
// TODO side effect is not good here, find a way to call ViewletLocations
|
|
18083
18141
|
const contentLoaded$1 = (state) => {
|
|
18084
|
-
state$
|
|
18142
|
+
state$m.instances['Locations'] = {
|
|
18085
18143
|
factory: ViewletLocations,
|
|
18086
18144
|
state,
|
|
18087
18145
|
};
|
|
@@ -18120,7 +18178,7 @@ const name$5 = 'Implementations';
|
|
|
18120
18178
|
// TODO speed up this function by 130% by not running activation event (onReferences) again and again
|
|
18121
18179
|
// e.g. (21ms activation event, 11ms getReferences) => (11ms getReferences)
|
|
18122
18180
|
const getImplementations = async () => {
|
|
18123
|
-
const editor = state$
|
|
18181
|
+
const editor = state$m.instances['EditorText'].state;
|
|
18124
18182
|
const offset = offsetAt(editor, editor.cursor);
|
|
18125
18183
|
const implementations =
|
|
18126
18184
|
await executeImplementationProvider(
|
|
@@ -18138,7 +18196,7 @@ const loadContent = async (state) => {
|
|
|
18138
18196
|
};
|
|
18139
18197
|
|
|
18140
18198
|
const contentLoaded = (state) => {
|
|
18141
|
-
state$
|
|
18199
|
+
state$m.instances['Locations'] = {
|
|
18142
18200
|
factory: ViewletLocations,
|
|
18143
18201
|
state,
|
|
18144
18202
|
};
|
|
@@ -18171,7 +18229,7 @@ const toContextMenuItem$1 = (activityBarItem) => {
|
|
|
18171
18229
|
|
|
18172
18230
|
const getMenuEntries$g = async () => {
|
|
18173
18231
|
const activityBarItems =
|
|
18174
|
-
state$
|
|
18232
|
+
state$m.instances['ActivityBar'].state.activityBarItems;
|
|
18175
18233
|
return [
|
|
18176
18234
|
...activityBarItems.map(toContextMenuItem$1),
|
|
18177
18235
|
{
|
|
@@ -19452,7 +19510,7 @@ const getNoResults = () => {
|
|
|
19452
19510
|
};
|
|
19453
19511
|
|
|
19454
19512
|
const getPicks = async (searchValue) => {
|
|
19455
|
-
const workspace = state$
|
|
19513
|
+
const workspace = state$w.workspacePath;
|
|
19456
19514
|
if (!workspace) {
|
|
19457
19515
|
return []
|
|
19458
19516
|
}
|
|
@@ -19462,7 +19520,7 @@ const getPicks = async (searchValue) => {
|
|
|
19462
19520
|
};
|
|
19463
19521
|
|
|
19464
19522
|
const selectPick = async (item) => {
|
|
19465
|
-
const workspace = state$
|
|
19523
|
+
const workspace = state$w.workspacePath;
|
|
19466
19524
|
const absolutePath = `${workspace}/${item.label}`;
|
|
19467
19525
|
await openUri(absolutePath);
|
|
19468
19526
|
return {
|