@lvce-editor/server 0.0.19 → 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/index.js +6 -0
- package/package.json +2 -2
- package/static/{8db9fb4 → 09bf9c7}/config/builtinCommands.json +0 -0
- package/static/{8db9fb4 → 09bf9c7}/config/colorTheme.json +0 -0
- package/static/{8db9fb4 → 09bf9c7}/config/defaultKeyBindings.json +0 -0
- package/static/{8db9fb4 → 09bf9c7}/config/defaultSettings.json +0 -0
- package/static/{8db9fb4 → 09bf9c7}/css/App.css +14 -18
- package/static/{8db9fb4 → 09bf9c7}/fonts/FiraCode-VariableFont.ttf +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/arrow-right.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/check.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/chevron-right.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/debug-alt-2.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/ellipsis.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/extensionDefaultIcon.png +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/extensions.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/files.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/icon-close.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/icon-source-control.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/icon-sync.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/icon.png +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/language-icon.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/pwa-icon-192.png +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/pwa-icon-512.png +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/search.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/settings-gear.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/source-control.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-array.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-boolean.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-class.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-color.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-constant.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-enum-member.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-enum.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-event.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-field.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-file.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-interface.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-key.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-keyword.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-method.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-misc.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-namespace.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-numeric.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-operator.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-parameter.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-property.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-ruler.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-snippet.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-string.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-structure.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/symbol-variable.svg +0 -0
- package/static/{8db9fb4 → 09bf9c7}/icons/theme-icon.png +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Audio.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Audio.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Developer.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Developer.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Dialog.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Dialog.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/EditorError.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/EditorError.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/EditorHover.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/EditorHover.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/EditorRename.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/EditorRename.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/FindWidget.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/FindWidget.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ImagePreview.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ImagePreview.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ImagePreview.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ImagePreview.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/InputBox.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/InputBox.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Menu.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Menu.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Meta.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Meta.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Notification.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/Notification.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/SessionStorage.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/SessionStorage.ipc.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletClock.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletClock.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletDebugConsole.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletDebugConsole.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorCompletion.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorCompletion.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorImage.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorImage.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorPlainText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorPlainText.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEditorText.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEmpty.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletEmpty.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletExplorer.js +13 -7
- package/static/09bf9c7/packages/renderer-process/dist/ViewletExplorer.js.map +1 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletExtensions.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletExtensions.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletImplementations.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletImplementations.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletLocations.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletLocations.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletMain.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletMain.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletOutput.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletOutput.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletPanel.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletPanel.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletProblems.js +16 -2
- package/static/09bf9c7/packages/renderer-process/dist/ViewletProblems.js.map +1 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletQuickPick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletQuickPick.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletReferences.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletReferences.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletRunAndDebug.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletRunAndDebug.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletSearch.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletSearch.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletSideBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletSideBar.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletSourceControl.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletSourceControl.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletTerminal.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/ViewletTerminal.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/renderer-process.modern.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/renderer-process.modern.js.map +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/dist/rendererProcessMain.js +27 -5
- package/static/09bf9c7/packages/renderer-process/dist/rendererProcessMain.js.map +1 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Allocator/Allocator.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/AriaAlert/AriaAlert.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Assert/Assert.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Audio/Audio.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Audio/Audio.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/BackDrop/BackDrop.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Callback/Callback.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Command/Command.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Context/Context.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Css/Css.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Css/Css.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Developer/Developer.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Developer/Developer.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Dialog/Dialog.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Dialog/Dialog.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Dom/Dom.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/DomPool/DomPool.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/DomScheduler/DomScheduler.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/Editor.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/EditorHelper.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerCursor.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerDecoration2.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerDiagnostics.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerLineNumbers.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerMarker.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerScreenReader.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerScrollBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerSelections.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Editor/LayerText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorController/EditorController.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorError/EditorError.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorError/EditorError.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorGroup/EditorGroup.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorHover/EditorHover.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorHover/EditorHover.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorRename/EditorRename.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorRename/EditorRename.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/EditorTab/EditorTab.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/FindWidget/FindWidget.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/FindWidget/FindWidget.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Focus/Focus.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/FocusHighlight/FocusHighlight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/GlobalEventBus/GlobalEventBus.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/ImagePreview/ImagePreview.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/ImagePreview/ImagePreview.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/InputBox/InputBox.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/KeyBindings/KeyBindings.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/KeyBindings/KeyBindings.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Layout/Layout.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Layout/Layout.js +24 -4
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/LocalStorage/LocalStorage.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/LocalStorage/LocalStorage.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Location/Location.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Location/Location.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/MenuItem/MenuItem.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Meta/Meta.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Meta/Meta.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Navigation/Navigation.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Notification/Notification.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Notification/Notification.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/OldMenu/Menu.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/OldMenu/Menu.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/OldMenu/Menu2.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Platform/Platform.js +2 -2
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/Renderer.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererExtension.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererQuickPick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererSearchResult.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererSuggestWidget.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Renderer/RendererTree.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/RendererWorker/RendererWorker.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/RendererWorker/RendererWorker.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/ServiceWorker/ServiceWorker.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/ServiceWorker/ServiceWorker.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/SessionStorage/SessionStorage.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/SessionStorage/SessionStorage.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Terminal/Terminal.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Terminal/Terminal.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/TitleBarMenuBar/TitleBarMenuBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ActiveViewlet.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ExplorerModel.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeProviderJson.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeProviderNpm.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeView.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeView2.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeViewClass.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/TreeViewNumber.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/Viewlet.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/Viewlet.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletActivityBar.js +2 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletClock.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletDebugConsole.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEditorCompletion.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEditorImage.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEditorPlainText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEditorText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletEmpty.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletExplorer.js +12 -6
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletExtensions.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletIframe.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletImplementations.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletList.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletLocations.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletMain.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletOutput.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletPanel.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletProblems.js +15 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletQuickPick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletReferences.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletRunAndDebug.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletSearch.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletSideBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletSourceControl.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletStatusBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletTerminal.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Viewlet/ViewletTitleBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/ViewletController/ViewletProblems.controller.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/WebWorker/WebWorker.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Widget/Widget.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/WidgetManager/WidgetManager.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Window/Window.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/parts/Window/Window.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/rendererProcessMain.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-process/src/shared/findIndex.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/dist/rendererWorkerMain.js +1007 -948
- package/static/09bf9c7/packages/renderer-worker/dist/rendererWorkerMain.js.map +1 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Ajax/Ajax.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Ajax/Ajax.js +8 -18
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Arrays/Arrays.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Assert/Assert.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Audio/Audio.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Audio/Audio.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Base64/Base64.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Base64/Base64.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Blob/Blob.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Blob/Blob.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/CacheStorage/CacheStorage.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/CacheStorage/CacheStorage.js +35 -45
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Callback/Callback.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Callback/Callback.js +0 -0
- package/static/{8db9fb4 → 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/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ColorPicker/ColorPicker.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ColorPicker/ColorPicker.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ColorTheme/Color.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ColorTheme/ColorTheme.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ColorTheme/ColorTheme.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ColorThemeFromJson/ColorThemeFromJson.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ColorThemeFromJson/ColorThemeFromJson.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Command/Command.js +14 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/CommandInfo/CommandInfo.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/CommandInfo/CommandInfo.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Context/ContextImpl.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ContextMenu/ContextMenu.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ContextMenu/ContextMenu.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/CustomEditor/CustomEditor.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/CustomEditor/CustomEditorExtension.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Developer/Developer.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Developer/Developer.js +8 -6
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Dialog/Dialog.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Dialog/Dialog.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/Editor.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/EditorCursor.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/EditorScrolling.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/EditorSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Editor/EditorText.js +3 -2
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommand.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandApplyEdit.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandBlur.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCancelSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCompletion.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandComposition.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopy.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopyLineDown.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopyLineUp.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorCharacterLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorCharacterRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorDown.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorEnd.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHome.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHorizontalLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHorizontalRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorSet.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorUp.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorVertical.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordPartLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordPartRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCut.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteAllLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteAllRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteCharacterLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteCharacterRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontal.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontalLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontalRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordPartLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordPartRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDelta.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandFormat.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetPositionLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetPositionRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetSelectionFromNativeRange.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGoToDefinition.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGoToTypeDefinition.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleContextMenu.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleDoubleClick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleMouseMove.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleMouseMoveWithAltKey.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleNativeBeforeInputFromContentEditable.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleNativeSelectionChange.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleScrollBarClick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleScrollBarMove.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleSingleClick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTab.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchEnd.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchMove.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchStart.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTripleClick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleWheel.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndent.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentLess.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentMore.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandInsertLineBreak.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveLineDown.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveLineUp.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveRectangleSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveRectangleSelectionPx.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveSelectionPx.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPaste.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPasteText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPosition.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandReplaceRange.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandReplaceSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSave.js +1 -1
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAll.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllOccurrences.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectCharacterLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectCharacterRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectHorizontalLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectHorizontalRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectInsideString.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectLine.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectNextOccurrence.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectPreviousOccurrence.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWord.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWordLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWordRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetDecorations.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetDeltaY.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetLanguageId.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandShowMessage.js +2 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSnippet.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandTabCompletion.js +0 -1
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleBlockComment.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleComment.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleLineComment.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandType.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandUndo.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorCommandUnindent.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorCommand/EditorIndent.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorDiagnostics/EditorDiagnostics.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorDiagnostics/EditorDiagnostics.js +3 -3
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorError/EditorError.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorError/EditorError.js +4 -4
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorRename/EditorRename.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/EditorRename/EditorRename.js +5 -5
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Env/Env.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ErrorHandling/ErrorHandling.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ErrorHandling/ErrorHandling.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostBraceCompletion.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostClosingTagCompletion.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCommands.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCompletion.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCore.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostDefinition.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostDiagnostic.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostFileSystem.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostFormatting.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostHover.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostImplementation.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostLanguages.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostManagement.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostOutput.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostQuickPick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostReference.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostRename.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostSemanticTokens.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostSourceControl.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostStatusBarItems.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTabCompletion.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTextDocument.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTypeDefinition.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionHost/shared.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionManagement/ExtensionManagement.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionMarketplace/ExtensionMarketplace.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionMeta/ExtensionMeta.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Extensions/Extensions.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Extensions/Extensions.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ExtensionsSomething/ExtensionsSomething.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystem.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystem.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemApp.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemData.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemDisk.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemGitHub.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FileSystem/FileSystemWeb.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FindInWorkspace/FindInWorkspace.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FindInWorkspace/FindInWorkspace.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FindWidget/FindWidget.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FindWidget/FindWidget.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Focus/Focus.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Format/Format.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Format/Format.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FuzzySearch/FuzzySearch.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/FuzzySearch/FuzzySearchMrAleph.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/GitHubRestApi/GitHubRestApi.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/GlobalEventBus/GlobalEventBus.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Highlight/Highlight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/History/History.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/IconTheme/IconTheme.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/IconTheme/IconTheme.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Id/Id.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ImagePreview/ImagePreview.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ImagePreview/ImagePreview.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Ipc/Ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Json/Json.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/JsonRpc/JsonRpc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/KeyBindings/KeyBindings.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/KeyBindings/KeyBindings.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/KeyBindingsInitial/KeyBindingsInitial.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/KeyBindingsInitial/KeyBindingsInitial.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Languages/Languages.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Layout/Layout.ipc.js +2 -1
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Layout/Layout.js +44 -18
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/LifeCycle/LifeCycle.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/List/List.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Listener/Listener.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Listener/Listener.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/LocalStorage/LocalStorage.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/LocalStorage/LocalStorage.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Location/Location.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/Main.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainCloseActiveEditor.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainCloseAllEditors.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainCloseEditorsToTheLeft.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainCloseEditorsToTheRight.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusFirst.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusIndex.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusLast.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusNext.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Main/MainFocusPrevious.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Mediator/Mediator.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Menu/Menu.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Menu/Menu.js +3 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuCore/MenuCore.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntries.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesActivityBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesActivityBarAdditionalViews.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesEdit.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesEditor.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorer.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorerFile.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorerFolder.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesFile.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesGo.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesHelp.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesManageExtension.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesOpenRecent.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesRun.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesSelection.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesSettings.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTab.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTerminal.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTitleBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesView.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Navigation/Navigation.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Navigation/Navigation.js +22 -28
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/NestedError/NestedError.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Notification/Notification.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Notification/Notification.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Open/Open.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Open/Open.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Panel/Panel.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Performance/Performance.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Platform/Platform.js +2 -2
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Position/Position.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Preferences/Preferences.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Preferences/Preferences.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPick.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPick.js +19 -19
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickColorTheme.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickCommand.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickEverything.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickFile.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickGoToLine.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickNoop.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickNumber.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickOpenRecent.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickSymbol.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickView.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/QuickPick/QuickPickWorkspaceSymbol.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/RecentlyOpened/RecentlyOpened.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/RecentlyOpened/RecentlyOpened.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/RendererProcess/RendererProcess.js +48 -44
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/SaveState/SaveState.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/SaveState/SaveState.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ServiceWorker/ServiceWorker.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ServiceWorker/ServiceWorker.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/SessionStorage/SessionStorage.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/SessionStorage/SessionStorage.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/SharedProcess/SharedProcess.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/SourceControl/SourceControl.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/SourceControl/SourceControl.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Storage/Storage.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/SyntaxHighlightingWorker/SyntaxHighlightingWorker.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/TextDocument/TextDocument.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/TextSegmenter/TextSegmenter.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Timers/Timers.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/TitleBarMenuBar/TitleBarMenuBar.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/TitleBarMenuBar/TitleBarMenuBar.js +11 -9
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Tokenizer/TokenizePlainText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Tokenizer/Tokenizer.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/Viewlet.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/Viewlet.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletActivityBar.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletActivityBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletClock.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletContextMenu.js +3 -3
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletCounter.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletDebugConsole.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorCompletion.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorCompletion.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorImage.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorPlainText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEditorText.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletEmpty.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExplorer.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExplorer.js +7 -5
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtension.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtensions.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtensions.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtensionsHeader.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletExtensionsList.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletIframe.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletImplementations.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletList.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletList.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletLocations.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletLocations.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletMain.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletMain.js +27 -27
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletNoop.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletOutput.js +0 -0
- package/static/{8db9fb4 → 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/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletProblems.js +19 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletQuickPick.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletReferences.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletRunAndDebug.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSearch.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSearch.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSideBar.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSideBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSourceControl.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletSourceControl.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletStatusBar.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletStatusBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletTerminal.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletTerminal.js +8 -8
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletTitleBar.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Viewlet/ViewletTodoList.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ViewletManager/ViewletManager.js +9 -8
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/ViewletStates/ViewletStates.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/WebSocket/WebSocket.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Window/Window.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Window/Window.js +15 -9
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Workbench/Workbench.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Workbench/Workbench.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Worker/Worker.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Workspace/Workspace.ipc.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/parts/Workspace/Workspace.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/packages/renderer-worker/src/rendererWorkerMain.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/sounds/bell.oga +0 -0
- package/static/{8db9fb4 → 09bf9c7}/static/js/blob-util.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/static/js/js-base64.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/static/js/ky.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/static/js/p-min-delay.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/static/js/pretty-bytes.js +0 -0
- package/static/{8db9fb4 → 09bf9c7}/static/js/termterm.js +0 -0
- package/static/{8db9fb4 → 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/8db9fb4/packages/renderer-process/dist/ViewletExplorer.js.map +0 -1
- package/static/8db9fb4/packages/renderer-process/dist/ViewletProblems.js.map +0 -1
- package/static/8db9fb4/packages/renderer-process/dist/rendererProcessMain.js.map +0 -1
- package/static/8db9fb4/packages/renderer-worker/dist/rendererWorkerMain.js.map +0 -1
- package/static/8db9fb4/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
|
|
@@ -7865,8 +7921,8 @@ const getDecorationClassName = (type) => {
|
|
|
7865
7921
|
switch (type) {
|
|
7866
7922
|
case 2816:
|
|
7867
7923
|
case 2817:
|
|
7868
|
-
case 2825:
|
|
7869
7924
|
case 2824:
|
|
7925
|
+
case 2825:
|
|
7870
7926
|
case 2856:
|
|
7871
7927
|
case 2857:
|
|
7872
7928
|
case 3072:
|
|
@@ -7897,8 +7953,8 @@ const getDecorationClassName = (type) => {
|
|
|
7897
7953
|
case 2089:
|
|
7898
7954
|
case 2313:
|
|
7899
7955
|
case 2560:
|
|
7900
|
-
case 2569:
|
|
7901
7956
|
case 2561:
|
|
7957
|
+
case 2569:
|
|
7902
7958
|
case 2584:
|
|
7903
7959
|
return 'VariableName'
|
|
7904
7960
|
case 256:
|
|
@@ -7911,6 +7967,7 @@ const getDecorationClassName = (type) => {
|
|
|
7911
7967
|
};
|
|
7912
7968
|
|
|
7913
7969
|
const getLineInfo = (line, tokens, decorations, TokenMap, lineOffset) => {
|
|
7970
|
+
console.log({ decorations });
|
|
7914
7971
|
let start = 0;
|
|
7915
7972
|
let end = 0;
|
|
7916
7973
|
const lineInfo = [];
|
|
@@ -8548,7 +8605,7 @@ const openFromType = async (editor, text) => {
|
|
|
8548
8605
|
// } else if (state.isOpened) {
|
|
8549
8606
|
// await close()
|
|
8550
8607
|
// }
|
|
8551
|
-
return state$
|
|
8608
|
+
return state$m.instances['EditorText'].state
|
|
8552
8609
|
};
|
|
8553
8610
|
|
|
8554
8611
|
const close$3 = async (editor) => {
|
|
@@ -8559,13 +8616,13 @@ const close$3 = async (editor) => {
|
|
|
8559
8616
|
return editor
|
|
8560
8617
|
};
|
|
8561
8618
|
|
|
8562
|
-
const state$
|
|
8619
|
+
const state$c = {
|
|
8563
8620
|
isComposing: false,
|
|
8564
8621
|
compositionText: '',
|
|
8565
8622
|
};
|
|
8566
8623
|
|
|
8567
8624
|
const editorCompositionStart = (editor, event) => {
|
|
8568
|
-
state$
|
|
8625
|
+
state$c.isComposing = true;
|
|
8569
8626
|
console.log({ event });
|
|
8570
8627
|
console.log('composition start');
|
|
8571
8628
|
return editor
|
|
@@ -8576,7 +8633,7 @@ const getCompositionChanges = (editor, data) => {
|
|
|
8576
8633
|
for (const selection of editor.selections) {
|
|
8577
8634
|
const startRowIndex = selection.start.rowIndex;
|
|
8578
8635
|
const startColumnIndex =
|
|
8579
|
-
selection.start.columnIndex - state$
|
|
8636
|
+
selection.start.columnIndex - state$c.compositionText.length;
|
|
8580
8637
|
changes.push({
|
|
8581
8638
|
start: {
|
|
8582
8639
|
rowIndex: startRowIndex,
|
|
@@ -8584,7 +8641,7 @@ const getCompositionChanges = (editor, data) => {
|
|
|
8584
8641
|
},
|
|
8585
8642
|
end: selection.end,
|
|
8586
8643
|
inserted: [data],
|
|
8587
|
-
deleted: [state$
|
|
8644
|
+
deleted: [state$c.compositionText],
|
|
8588
8645
|
origin: 'compositionUpdate',
|
|
8589
8646
|
});
|
|
8590
8647
|
}
|
|
@@ -8594,15 +8651,15 @@ const getCompositionChanges = (editor, data) => {
|
|
|
8594
8651
|
const editorCompositionUpdate = (editor, data) => {
|
|
8595
8652
|
const changes = getCompositionChanges(editor, data);
|
|
8596
8653
|
console.log('composition update', { changes });
|
|
8597
|
-
state$
|
|
8654
|
+
state$c.compositionText = data;
|
|
8598
8655
|
return scheduleDocumentAndCursorsSelections(editor, changes)
|
|
8599
8656
|
};
|
|
8600
8657
|
|
|
8601
8658
|
const editorCompositionEnd = (editor, data) => {
|
|
8602
8659
|
const changes = getCompositionChanges(editor, data);
|
|
8603
8660
|
console.log('composition end', { changes });
|
|
8604
|
-
state$
|
|
8605
|
-
state$
|
|
8661
|
+
state$c.isComposing = false;
|
|
8662
|
+
state$c.compositionText = '';
|
|
8606
8663
|
return scheduleDocumentAndCursorsSelections(editor, changes)
|
|
8607
8664
|
};
|
|
8608
8665
|
|
|
@@ -9305,7 +9362,7 @@ const executeDefinitionProvider = async (editor, offset) => {
|
|
|
9305
9362
|
)
|
|
9306
9363
|
};
|
|
9307
9364
|
|
|
9308
|
-
const state$
|
|
9365
|
+
const state$b = {
|
|
9309
9366
|
timeout: -1,
|
|
9310
9367
|
};
|
|
9311
9368
|
|
|
@@ -9328,14 +9385,16 @@ const editorShowMessage = async (editor, position, message) => {
|
|
|
9328
9385
|
console.log('ran timeout fn');
|
|
9329
9386
|
editorHideMessage(editor);
|
|
9330
9387
|
};
|
|
9388
|
+
|
|
9389
|
+
// TODO use wrapper timing module instead of this
|
|
9331
9390
|
// @ts-ignore
|
|
9332
|
-
state$
|
|
9391
|
+
state$b.timeout = setTimeout(handleTimeout, 3_000);
|
|
9333
9392
|
return editor
|
|
9334
9393
|
};
|
|
9335
9394
|
|
|
9336
9395
|
const editorHideMessage = async (editor) => {
|
|
9337
|
-
clearTimeout(state$
|
|
9338
|
-
state$
|
|
9396
|
+
clearTimeout(state$b.timeout);
|
|
9397
|
+
state$b.timeout = -1;
|
|
9339
9398
|
await invoke$1(
|
|
9340
9399
|
/* Viewlet.send */ 3024,
|
|
9341
9400
|
/* id */ 'EditorText',
|
|
@@ -9551,7 +9610,7 @@ const editorHandleNativeSelectionChange = (editor, range) => {
|
|
|
9551
9610
|
return scheduleSelections(editor, selections)
|
|
9552
9611
|
};
|
|
9553
9612
|
|
|
9554
|
-
const state$
|
|
9613
|
+
const state$a = {
|
|
9555
9614
|
/**
|
|
9556
9615
|
* Offset at which scrollbar thumb has been clicked
|
|
9557
9616
|
*/
|
|
@@ -9589,14 +9648,14 @@ const editorHandleScrollBarClick = (editor, y) => {
|
|
|
9589
9648
|
const diff = relativeY - currentScrollBarY;
|
|
9590
9649
|
console.log({ diff });
|
|
9591
9650
|
if (diff >= 0 && diff < editor.scrollBarHeight) {
|
|
9592
|
-
state$
|
|
9651
|
+
state$a.handleOffset = diff;
|
|
9593
9652
|
console.log({ handleOffset: diff });
|
|
9594
9653
|
return editor
|
|
9595
9654
|
}
|
|
9596
9655
|
const newPercent = getNewDeltaPercent$1(editor, relativeY);
|
|
9597
9656
|
console.log({ newPercent });
|
|
9598
9657
|
// TODO
|
|
9599
|
-
state$
|
|
9658
|
+
state$a.handleOffset = editor.scrollBarHeight / 2;
|
|
9600
9659
|
// TODO when diff is greater, position scrollbar in the middle around cursor
|
|
9601
9660
|
const newDeltaY = newPercent * editor.finalDeltaY;
|
|
9602
9661
|
return setDeltaYFixedValue(editor, newDeltaY)
|
|
@@ -9619,8 +9678,8 @@ const getNewPercent$1 = (editor, relativeY) => {
|
|
|
9619
9678
|
|
|
9620
9679
|
const editorHandleScrollBarMove = (editor, y) => {
|
|
9621
9680
|
const relativeY =
|
|
9622
|
-
y - editor.top - state$
|
|
9623
|
-
console.log('handle offset', state$
|
|
9681
|
+
y - editor.top - state$a.handleOffset;
|
|
9682
|
+
console.log('handle offset', state$a.handleOffset);
|
|
9624
9683
|
const newPercent = getNewPercent$1(editor, relativeY);
|
|
9625
9684
|
const newDeltaY = newPercent * editor.finalDeltaY;
|
|
9626
9685
|
return setDeltaYFixedValue(editor, newDeltaY)
|
|
@@ -9628,7 +9687,7 @@ const editorHandleScrollBarMove = (editor, y) => {
|
|
|
9628
9687
|
|
|
9629
9688
|
// TODO not sure where this state should be
|
|
9630
9689
|
// TODO maybe rename to selection anchor
|
|
9631
|
-
const state$
|
|
9690
|
+
const state$9 = {
|
|
9632
9691
|
position: {
|
|
9633
9692
|
rowIndex: 0,
|
|
9634
9693
|
columnIndex: 0,
|
|
@@ -9683,7 +9742,7 @@ const editorMoveSelectionForwards = (editor, anchor, position) => {
|
|
|
9683
9742
|
};
|
|
9684
9743
|
|
|
9685
9744
|
const editorMoveSelection = (editor, position) => {
|
|
9686
|
-
const anchor = state$
|
|
9745
|
+
const anchor = state$9.position;
|
|
9687
9746
|
// TODO if selection equals previous selection -> do nothing
|
|
9688
9747
|
switch (compare(position, anchor)) {
|
|
9689
9748
|
case -1:
|
|
@@ -9721,10 +9780,10 @@ const editorHandleSingleClick = async (
|
|
|
9721
9780
|
return newEditor
|
|
9722
9781
|
}
|
|
9723
9782
|
}
|
|
9724
|
-
state$
|
|
9783
|
+
state$9.position = position;
|
|
9725
9784
|
return editorCursorSet(
|
|
9726
9785
|
editor,
|
|
9727
|
-
state$
|
|
9786
|
+
state$9.position
|
|
9728
9787
|
)
|
|
9729
9788
|
};
|
|
9730
9789
|
|
|
@@ -9868,7 +9927,7 @@ const isSlash = (text) => {
|
|
|
9868
9927
|
};
|
|
9869
9928
|
|
|
9870
9929
|
const editorTypeWithBraceCompletion = async (editor, text) => {
|
|
9871
|
-
if (!state$
|
|
9930
|
+
if (!state$t.loaded) {
|
|
9872
9931
|
await waitForLoad();
|
|
9873
9932
|
}
|
|
9874
9933
|
editor.languageId = getLanguageId(editor.uri); // TODO avoid side effect here
|
|
@@ -9891,7 +9950,7 @@ const editorTypeWithBraceCompletion = async (editor, text) => {
|
|
|
9891
9950
|
};
|
|
9892
9951
|
|
|
9893
9952
|
const editorTypeWithSlashCompletion = async (editor, text) => {
|
|
9894
|
-
if (!state$
|
|
9953
|
+
if (!state$t.loaded) {
|
|
9895
9954
|
await waitForLoad();
|
|
9896
9955
|
}
|
|
9897
9956
|
editor.languageId = getLanguageId(editor.uri); // TODO avoid side effect here
|
|
@@ -9999,7 +10058,7 @@ const editorHandleTab = async (editor) => {
|
|
|
9999
10058
|
|
|
10000
10059
|
// main()
|
|
10001
10060
|
|
|
10002
|
-
const state$
|
|
10061
|
+
const state$8 = {
|
|
10003
10062
|
touchOffsetY: 0,
|
|
10004
10063
|
deltaY: 0,
|
|
10005
10064
|
};
|
|
@@ -10010,8 +10069,8 @@ const editorHandleTouchStart = (editor, touchEvent) => {
|
|
|
10010
10069
|
}
|
|
10011
10070
|
console.log('touch start');
|
|
10012
10071
|
const firstTouch = touchEvent.touches[0];
|
|
10013
|
-
state$
|
|
10014
|
-
state$
|
|
10072
|
+
state$8.touchOffsetY = firstTouch.y;
|
|
10073
|
+
state$8.deltaY = editor.deltaY;
|
|
10015
10074
|
// const position = EditorPosition.at(editor, firstTouch.x, firstTouch.y)
|
|
10016
10075
|
// EditorMoveSelection.state.position = position
|
|
10017
10076
|
// state.date = Date.now()
|
|
@@ -10026,10 +10085,10 @@ const editorHandleTouchEnd = (editor, touchEvent) => {
|
|
|
10026
10085
|
const firstTouch = touchEvent.changedTouches[0];
|
|
10027
10086
|
const position = at(editor, firstTouch.x, firstTouch.y);
|
|
10028
10087
|
if (
|
|
10029
|
-
state$
|
|
10030
|
-
state$
|
|
10088
|
+
state$9.position.rowIndex === position.rowIndex &&
|
|
10089
|
+
state$9.position.columnIndex === position.columnIndex
|
|
10031
10090
|
) {
|
|
10032
|
-
if (Date.now() - state$
|
|
10091
|
+
if (Date.now() - state$8.date > LONG_TOUCH_THRESHOLD) {
|
|
10033
10092
|
editorSelectWord(
|
|
10034
10093
|
editor,
|
|
10035
10094
|
position.rowIndex,
|
|
@@ -10197,7 +10256,7 @@ const editorMoveLineUp = (editor) => {
|
|
|
10197
10256
|
};
|
|
10198
10257
|
|
|
10199
10258
|
const editorMoveRectangleSelection = (editor, position) => {
|
|
10200
|
-
const anchor = state$
|
|
10259
|
+
const anchor = state$9.position;
|
|
10201
10260
|
const startRowIndex = anchor.rowIndex;
|
|
10202
10261
|
const startColumnIndex = anchor.columnIndex;
|
|
10203
10262
|
const endRowIndex = position.rowIndex;
|
|
@@ -10259,7 +10318,7 @@ const editorSave = async (editor) => {
|
|
|
10259
10318
|
const betterError = new Error(`Failed to save file "${uri}"`, {
|
|
10260
10319
|
cause: error,
|
|
10261
10320
|
});
|
|
10262
|
-
await
|
|
10321
|
+
await handleError$1(betterError);
|
|
10263
10322
|
return
|
|
10264
10323
|
}
|
|
10265
10324
|
await emitEvent('editor.save', editor);
|
|
@@ -11206,12 +11265,12 @@ const setLanguageId = async (editor, languageId) => {
|
|
|
11206
11265
|
await loadTokenizer(languageId);
|
|
11207
11266
|
const tokenizer = getTokenizer(languageId);
|
|
11208
11267
|
if (tokenizer === editor.tokenizer) {
|
|
11209
|
-
return state$
|
|
11268
|
+
return state$m.instances['EditorText'].state
|
|
11210
11269
|
}
|
|
11211
11270
|
// TODO update syntax highlighting
|
|
11212
11271
|
// TODO get edits
|
|
11213
11272
|
|
|
11214
|
-
const latestEditor = state$
|
|
11273
|
+
const latestEditor = state$m.instances['EditorText'].state;
|
|
11215
11274
|
|
|
11216
11275
|
return {
|
|
11217
11276
|
...latestEditor,
|
|
@@ -11440,7 +11499,7 @@ const setDecorations = (editor, decorations) => {
|
|
|
11440
11499
|
}
|
|
11441
11500
|
};
|
|
11442
11501
|
|
|
11443
|
-
const __initialize__$
|
|
11502
|
+
const __initialize__$K = () => {
|
|
11444
11503
|
register$2(341, wrapViewletCommand('EditorText', editorCursorsDown));
|
|
11445
11504
|
register$2(342, wrapViewletCommand('EditorText', editorCursorCharacterLeft));
|
|
11446
11505
|
register$2(343, wrapViewletCommand('EditorText', editorCursorsCharacterRight));
|
|
@@ -11529,17 +11588,17 @@ const __initialize__$J = () => {
|
|
|
11529
11588
|
|
|
11530
11589
|
var EditorCommand_ipc = {
|
|
11531
11590
|
__proto__: null,
|
|
11532
|
-
__initialize__: __initialize__$
|
|
11591
|
+
__initialize__: __initialize__$K
|
|
11533
11592
|
};
|
|
11534
11593
|
|
|
11535
|
-
const __initialize__$
|
|
11594
|
+
const __initialize__$J = () => {
|
|
11536
11595
|
register$2(1422, handleKeyBinding);
|
|
11537
11596
|
register$2(1423, hydrate$6);
|
|
11538
11597
|
};
|
|
11539
11598
|
|
|
11540
11599
|
var KeyBindings_ipc = {
|
|
11541
11600
|
__proto__: null,
|
|
11542
|
-
__initialize__: __initialize__$
|
|
11601
|
+
__initialize__: __initialize__$J
|
|
11543
11602
|
};
|
|
11544
11603
|
|
|
11545
11604
|
const openNativeFolder = async (absolutePath) => {
|
|
@@ -11559,14 +11618,14 @@ const openCachedExtensionsFolder = async () => {
|
|
|
11559
11618
|
await openNativeFolder(cachedExtensionsFolder);
|
|
11560
11619
|
};
|
|
11561
11620
|
|
|
11562
|
-
const __initialize__$
|
|
11621
|
+
const __initialize__$I = () => {
|
|
11563
11622
|
register$2(7650, openExtensionsFolder);
|
|
11564
11623
|
register$2(7651, openCachedExtensionsFolder);
|
|
11565
11624
|
};
|
|
11566
11625
|
|
|
11567
11626
|
var Extensions_ipc = {
|
|
11568
11627
|
__proto__: null,
|
|
11569
|
-
__initialize__: __initialize__$
|
|
11628
|
+
__initialize__: __initialize__$I
|
|
11570
11629
|
};
|
|
11571
11630
|
|
|
11572
11631
|
// TODO viewlet should only have create and refresh functions
|
|
@@ -11662,7 +11721,7 @@ const create$k = (id, uri, left, top, width, height) => {
|
|
|
11662
11721
|
return {
|
|
11663
11722
|
root: '',
|
|
11664
11723
|
dirents: [],
|
|
11665
|
-
focusedIndex: -
|
|
11724
|
+
focusedIndex: -2,
|
|
11666
11725
|
hoverIndex: -1,
|
|
11667
11726
|
top,
|
|
11668
11727
|
left,
|
|
@@ -11681,7 +11740,7 @@ const getPathSeparator = (root) => {
|
|
|
11681
11740
|
};
|
|
11682
11741
|
|
|
11683
11742
|
const loadContent$k = async (state) => {
|
|
11684
|
-
const root = state$
|
|
11743
|
+
const root = state$w.workspacePath;
|
|
11685
11744
|
const pathSeparator = await getPathSeparator(root); // TODO only load path separator once
|
|
11686
11745
|
const dirents = await getTopLevelDirents({ root, pathSeparator });
|
|
11687
11746
|
return {
|
|
@@ -11734,9 +11793,9 @@ const contentLoadedEffects$3 = (state) => {
|
|
|
11734
11793
|
|
|
11735
11794
|
// TODO hoist function
|
|
11736
11795
|
addListener('workspace.change', async () => {
|
|
11737
|
-
state.root = state$
|
|
11796
|
+
state.root = state$w.workspacePath;
|
|
11738
11797
|
const newState = await loadContent$k(state);
|
|
11739
|
-
state$
|
|
11798
|
+
state$m.instances['Explorer'].state = newState;
|
|
11740
11799
|
await contentLoaded$k(newState);
|
|
11741
11800
|
// TODO
|
|
11742
11801
|
});
|
|
@@ -11845,7 +11904,7 @@ const removeDirent = async (state) => {
|
|
|
11845
11904
|
|
|
11846
11905
|
// TODO removing of file and setting focus should happen at the same time
|
|
11847
11906
|
await scheduleDirents(state);
|
|
11848
|
-
await focusIndex$
|
|
11907
|
+
await focusIndex$5(state, indexToFocus);
|
|
11849
11908
|
};
|
|
11850
11909
|
|
|
11851
11910
|
const renameDirent = async (state) => {
|
|
@@ -12023,7 +12082,7 @@ const acceptRename = async (state) => {
|
|
|
12023
12082
|
// TODO move focused index
|
|
12024
12083
|
state.dirents = newDirents;
|
|
12025
12084
|
await contentLoaded$k(state);
|
|
12026
|
-
await focusIndex$
|
|
12085
|
+
await focusIndex$5(state, focusedIndex);
|
|
12027
12086
|
|
|
12028
12087
|
// await updateDirents(state)
|
|
12029
12088
|
};
|
|
@@ -12057,7 +12116,7 @@ const newDirent = async (state) => {
|
|
|
12057
12116
|
// TODO do it like vscode, select position between folders and files
|
|
12058
12117
|
const focusedIndex = state.focusedIndex;
|
|
12059
12118
|
const index = state.focusedIndex + 1;
|
|
12060
|
-
if (focusedIndex
|
|
12119
|
+
if (focusedIndex >= 0) {
|
|
12061
12120
|
const dirent = state.dirents[state.focusedIndex];
|
|
12062
12121
|
console.log({ dirent, dirents: state.dirents, fi: state.focusedIndex });
|
|
12063
12122
|
if (dirent.type === 'directory') {
|
|
@@ -12250,7 +12309,7 @@ const handleClickDirectoryExpanded = async (state, dirent, index) => {
|
|
|
12250
12309
|
|
|
12251
12310
|
const handleClick$5 = async (state, index) => {
|
|
12252
12311
|
if (index === -1) {
|
|
12253
|
-
state
|
|
12312
|
+
await focusIndex$5(state, -1);
|
|
12254
12313
|
return
|
|
12255
12314
|
}
|
|
12256
12315
|
const actualIndex = index + state.minLineY;
|
|
@@ -12279,13 +12338,15 @@ const handleClickCurrent = async (state) => {
|
|
|
12279
12338
|
await handleClick$5(state, state.focusedIndex);
|
|
12280
12339
|
};
|
|
12281
12340
|
|
|
12282
|
-
const focusIndex$
|
|
12341
|
+
const focusIndex$5 = async (state, index) => {
|
|
12342
|
+
const oldFocusedIndex = state.focusedIndex;
|
|
12283
12343
|
state.focusedIndex = index;
|
|
12284
12344
|
await invoke$1(
|
|
12285
12345
|
/* viewSend */ 3024,
|
|
12286
12346
|
/* id */ 'Explorer',
|
|
12287
|
-
/* method */ '
|
|
12288
|
-
/*
|
|
12347
|
+
/* method */ 'setFocusedIndex',
|
|
12348
|
+
/* oldIndex */ oldFocusedIndex,
|
|
12349
|
+
/* newIndex */ state.focusedIndex
|
|
12289
12350
|
);
|
|
12290
12351
|
};
|
|
12291
12352
|
|
|
@@ -12293,7 +12354,7 @@ const focusNext$4 = async (state) => {
|
|
|
12293
12354
|
if (state.focusedIndex === state.dirents.length - 1) {
|
|
12294
12355
|
return
|
|
12295
12356
|
}
|
|
12296
|
-
await focusIndex$
|
|
12357
|
+
await focusIndex$5(state, state.focusedIndex + 1);
|
|
12297
12358
|
};
|
|
12298
12359
|
|
|
12299
12360
|
const focusPrevious$4 = async (state) => {
|
|
@@ -12302,12 +12363,12 @@ const focusPrevious$4 = async (state) => {
|
|
|
12302
12363
|
if (state.dirents.length === 0) {
|
|
12303
12364
|
break
|
|
12304
12365
|
}
|
|
12305
|
-
await focusIndex$
|
|
12366
|
+
await focusIndex$5(state, state.dirents.length - 1);
|
|
12306
12367
|
break
|
|
12307
12368
|
case 0:
|
|
12308
12369
|
break
|
|
12309
12370
|
default:
|
|
12310
|
-
await focusIndex$
|
|
12371
|
+
await focusIndex$5(state, state.focusedIndex - 1);
|
|
12311
12372
|
break
|
|
12312
12373
|
}
|
|
12313
12374
|
};
|
|
@@ -12316,7 +12377,7 @@ const focusFirst$4 = async (state) => {
|
|
|
12316
12377
|
if (state.dirents.length === 0 || state.focusedIndex === 0) {
|
|
12317
12378
|
return
|
|
12318
12379
|
}
|
|
12319
|
-
await focusIndex$
|
|
12380
|
+
await focusIndex$5(state, 0);
|
|
12320
12381
|
};
|
|
12321
12382
|
|
|
12322
12383
|
const focusLast$4 = async (state) => {
|
|
@@ -12326,7 +12387,7 @@ const focusLast$4 = async (state) => {
|
|
|
12326
12387
|
) {
|
|
12327
12388
|
return
|
|
12328
12389
|
}
|
|
12329
|
-
await focusIndex$
|
|
12390
|
+
await focusIndex$5(state, state.dirents.length - 1);
|
|
12330
12391
|
};
|
|
12331
12392
|
|
|
12332
12393
|
const scrollUp = () => {};
|
|
@@ -12351,7 +12412,7 @@ const handleArrowRight = async (state) => {
|
|
|
12351
12412
|
}
|
|
12352
12413
|
const nextDirent = state.dirents[state.focusedIndex + 1];
|
|
12353
12414
|
if (nextDirent.depth === dirent.depth + 1) {
|
|
12354
|
-
await focusIndex$
|
|
12415
|
+
await focusIndex$5(state, state.focusedIndex + 1);
|
|
12355
12416
|
}
|
|
12356
12417
|
break
|
|
12357
12418
|
}
|
|
@@ -12365,7 +12426,7 @@ const focusParentFolder = async (state) => {
|
|
|
12365
12426
|
if (parentStartIndex === -1) {
|
|
12366
12427
|
return
|
|
12367
12428
|
}
|
|
12368
|
-
await focusIndex$
|
|
12429
|
+
await focusIndex$5(state, parentStartIndex);
|
|
12369
12430
|
};
|
|
12370
12431
|
|
|
12371
12432
|
const handleArrowLeft = async (state) => {
|
|
@@ -12623,7 +12684,7 @@ var ViewletExplorer = {
|
|
|
12623
12684
|
newFolder: newFolder,
|
|
12624
12685
|
handleClick: handleClick$5,
|
|
12625
12686
|
handleClickCurrent: handleClickCurrent,
|
|
12626
|
-
focusIndex: focusIndex$
|
|
12687
|
+
focusIndex: focusIndex$5,
|
|
12627
12688
|
focusNext: focusNext$4,
|
|
12628
12689
|
focusPrevious: focusPrevious$4,
|
|
12629
12690
|
focusFirst: focusFirst$4,
|
|
@@ -12643,7 +12704,7 @@ var ViewletExplorer = {
|
|
|
12643
12704
|
collapseAll: collapseAll
|
|
12644
12705
|
};
|
|
12645
12706
|
|
|
12646
|
-
const __initialize__$
|
|
12707
|
+
const __initialize__$H = () => {
|
|
12647
12708
|
register$2(142, wrapViewletCommand('Explorer', focusNext$4));
|
|
12648
12709
|
register$2(143, wrapViewletCommand('Explorer', focusPrevious$4));
|
|
12649
12710
|
register$2(144, wrapViewletCommand('Explorer', scrollUp));
|
|
@@ -12679,28 +12740,28 @@ const __initialize__$G = () => {
|
|
|
12679
12740
|
|
|
12680
12741
|
var ViewletExplorer_ipc = {
|
|
12681
12742
|
__proto__: null,
|
|
12682
|
-
__initialize__: __initialize__$
|
|
12743
|
+
__initialize__: __initialize__$H
|
|
12683
12744
|
};
|
|
12684
12745
|
|
|
12685
|
-
const state$
|
|
12746
|
+
const state$7 = {
|
|
12686
12747
|
count: 0,
|
|
12687
12748
|
decorations: [],
|
|
12688
12749
|
listeners: [],
|
|
12689
12750
|
};
|
|
12690
12751
|
|
|
12691
12752
|
const updateDecorations = () => {
|
|
12692
|
-
for (const listener of state$
|
|
12753
|
+
for (const listener of state$7.listeners) {
|
|
12693
12754
|
listener();
|
|
12694
12755
|
}
|
|
12695
12756
|
};
|
|
12696
12757
|
|
|
12697
|
-
const __initialize__$
|
|
12758
|
+
const __initialize__$G = () => {
|
|
12698
12759
|
register$2(1300, updateDecorations);
|
|
12699
12760
|
};
|
|
12700
12761
|
|
|
12701
12762
|
var SourceControl_ipc = {
|
|
12702
12763
|
__proto__: null,
|
|
12703
|
-
__initialize__: __initialize__$
|
|
12764
|
+
__initialize__: __initialize__$G
|
|
12704
12765
|
};
|
|
12705
12766
|
|
|
12706
12767
|
const name$k = 'Terminal';
|
|
@@ -12729,17 +12790,17 @@ const contentLoadedEffects$2 = async (state) => {
|
|
|
12729
12790
|
send$2(
|
|
12730
12791
|
/* createTerminal */ 'Terminal.create',
|
|
12731
12792
|
/* id */ state.id,
|
|
12732
|
-
/* cwd */ state$
|
|
12793
|
+
/* cwd */ state$w.workspacePath
|
|
12733
12794
|
);
|
|
12734
12795
|
};
|
|
12735
12796
|
|
|
12736
|
-
const handleData$1 = (state, data) => {
|
|
12797
|
+
const handleData$1 = async (state, data) => {
|
|
12737
12798
|
// Terminal.handleData(state, data)
|
|
12738
12799
|
const parsedData = new Uint8Array(data.data);
|
|
12739
|
-
|
|
12800
|
+
await invoke$1(
|
|
12740
12801
|
/* ViewletTerminal.write */ 9922,
|
|
12741
|
-
/* data */ parsedData
|
|
12742
|
-
|
|
12802
|
+
/* data */ parsedData
|
|
12803
|
+
);
|
|
12743
12804
|
};
|
|
12744
12805
|
|
|
12745
12806
|
const write = async (state, input) => {
|
|
@@ -12772,11 +12833,11 @@ const resize$8 = async (state, width, height) => {
|
|
|
12772
12833
|
// Terminal.resize(state, width, height)
|
|
12773
12834
|
};
|
|
12774
12835
|
|
|
12775
|
-
const clear$2 = (state) => {
|
|
12776
|
-
|
|
12836
|
+
const clear$2 = async (state) => {
|
|
12837
|
+
await invoke$1(
|
|
12777
12838
|
/* ViewletTerminal.write */ 9922,
|
|
12778
|
-
/* data */ new TextEncoder().encode('TODO clear terminal')
|
|
12779
|
-
|
|
12839
|
+
/* data */ new TextEncoder().encode('TODO clear terminal')
|
|
12840
|
+
);
|
|
12780
12841
|
};
|
|
12781
12842
|
|
|
12782
12843
|
var ViewletTerminal = {
|
|
@@ -12793,14 +12854,14 @@ var ViewletTerminal = {
|
|
|
12793
12854
|
clear: clear$2
|
|
12794
12855
|
};
|
|
12795
12856
|
|
|
12796
|
-
const __initialize__$
|
|
12857
|
+
const __initialize__$F = () => {
|
|
12797
12858
|
register$2(4870, wrapViewletCommand('Terminal', write));
|
|
12798
12859
|
register$2(4871 , wrapViewletCommand('Terminal', clear$2));
|
|
12799
12860
|
};
|
|
12800
12861
|
|
|
12801
12862
|
var ViewletTerminal_ipc = {
|
|
12802
12863
|
__proto__: null,
|
|
12803
|
-
__initialize__: __initialize__$
|
|
12864
|
+
__initialize__: __initialize__$F
|
|
12804
12865
|
};
|
|
12805
12866
|
|
|
12806
12867
|
const open$1 = () => {
|
|
@@ -12811,7 +12872,7 @@ const close$2 = () => {
|
|
|
12811
12872
|
console.log('TODO close color picker');
|
|
12812
12873
|
};
|
|
12813
12874
|
|
|
12814
|
-
const __initialize__$
|
|
12875
|
+
const __initialize__$E = () => {
|
|
12815
12876
|
register$2(1400, open$1);
|
|
12816
12877
|
register$2(1401, close$2);
|
|
12817
12878
|
|
|
@@ -12819,7 +12880,7 @@ const __initialize__$D = () => {
|
|
|
12819
12880
|
|
|
12820
12881
|
var ColorPicker_ipc = {
|
|
12821
12882
|
__proto__: null,
|
|
12822
|
-
__initialize__: __initialize__$
|
|
12883
|
+
__initialize__: __initialize__$E
|
|
12823
12884
|
};
|
|
12824
12885
|
|
|
12825
12886
|
const install = (id) => {
|
|
@@ -13190,7 +13251,7 @@ const handleInput$1 = async (state, value) => {
|
|
|
13190
13251
|
}
|
|
13191
13252
|
};
|
|
13192
13253
|
|
|
13193
|
-
const focusIndex$
|
|
13254
|
+
const focusIndex$4 = (state, index) => {
|
|
13194
13255
|
if (index === -1) {
|
|
13195
13256
|
return {
|
|
13196
13257
|
...state,
|
|
@@ -13233,14 +13294,14 @@ const focusIndex$3 = (state, index) => {
|
|
|
13233
13294
|
|
|
13234
13295
|
// TODO lazyload this
|
|
13235
13296
|
const handleClick$4 = (state, index) => {
|
|
13236
|
-
return focusIndex$
|
|
13297
|
+
return focusIndex$4(state, index)
|
|
13237
13298
|
};
|
|
13238
13299
|
|
|
13239
13300
|
const focusNext$3 = (state) => {
|
|
13240
13301
|
if (state.focusedIndex === state.filteredExtensions.length - 1) {
|
|
13241
13302
|
return state
|
|
13242
13303
|
}
|
|
13243
|
-
return focusIndex$
|
|
13304
|
+
return focusIndex$4(state, state.focusedIndex + 1)
|
|
13244
13305
|
};
|
|
13245
13306
|
|
|
13246
13307
|
const focusNextPage = (state) => {
|
|
@@ -13251,14 +13312,14 @@ const focusNextPage = (state) => {
|
|
|
13251
13312
|
state.maxLineY + (state.maxLineY - state.minLineY) - 2,
|
|
13252
13313
|
state.filteredExtensions.length - 1
|
|
13253
13314
|
);
|
|
13254
|
-
return focusIndex$
|
|
13315
|
+
return focusIndex$4(state, indexNextPage)
|
|
13255
13316
|
};
|
|
13256
13317
|
|
|
13257
13318
|
const focusPrevious$3 = (state) => {
|
|
13258
13319
|
if (state.focusedIndex === 0 || state.focusedIndex === -1) {
|
|
13259
13320
|
return state
|
|
13260
13321
|
}
|
|
13261
|
-
return focusIndex$
|
|
13322
|
+
return focusIndex$4(state, state.focusedIndex - 1)
|
|
13262
13323
|
};
|
|
13263
13324
|
|
|
13264
13325
|
const focusPreviousPage = (state) => {
|
|
@@ -13270,21 +13331,21 @@ const focusPreviousPage = (state) => {
|
|
|
13270
13331
|
state.minLineY - (state.maxLineY - state.minLineY) + 1,
|
|
13271
13332
|
0
|
|
13272
13333
|
);
|
|
13273
|
-
return focusIndex$
|
|
13334
|
+
return focusIndex$4(state, indexPreviousPage)
|
|
13274
13335
|
};
|
|
13275
13336
|
|
|
13276
13337
|
const focusFirst$3 = (state) => {
|
|
13277
13338
|
if (state.filteredExtensions.length === 0) {
|
|
13278
13339
|
return state
|
|
13279
13340
|
}
|
|
13280
|
-
return focusIndex$
|
|
13341
|
+
return focusIndex$4(state, 0)
|
|
13281
13342
|
};
|
|
13282
13343
|
|
|
13283
13344
|
const focusLast$3 = (state) => {
|
|
13284
13345
|
if (state.filteredExtensions.length === 0) {
|
|
13285
13346
|
return state
|
|
13286
13347
|
}
|
|
13287
|
-
return focusIndex$
|
|
13348
|
+
return focusIndex$4(state, state.filteredExtensions.length - 1)
|
|
13288
13349
|
};
|
|
13289
13350
|
|
|
13290
13351
|
// TODO show error / warning when installment fails / times out
|
|
@@ -13621,7 +13682,7 @@ var ViewletExtensions = {
|
|
|
13621
13682
|
contentLoaded: contentLoaded$i,
|
|
13622
13683
|
dispose: dispose$g,
|
|
13623
13684
|
handleInput: handleInput$1,
|
|
13624
|
-
focusIndex: focusIndex$
|
|
13685
|
+
focusIndex: focusIndex$4,
|
|
13625
13686
|
handleClick: handleClick$4,
|
|
13626
13687
|
focusNext: focusNext$3,
|
|
13627
13688
|
focusNextPage: focusNextPage,
|
|
@@ -13646,7 +13707,7 @@ var ViewletExtensions = {
|
|
|
13646
13707
|
render: render$b
|
|
13647
13708
|
};
|
|
13648
13709
|
|
|
13649
|
-
const __initialize__$
|
|
13710
|
+
const __initialize__$D = () => {
|
|
13650
13711
|
register$2(860, wrapViewletCommand('Extensions', openSuggest));
|
|
13651
13712
|
register$2(861, wrapViewletCommand('Extensions', closeSuggest));
|
|
13652
13713
|
register$2(862, wrapViewletCommand('Extensions', toggleSuggest));
|
|
@@ -13655,7 +13716,7 @@ const __initialize__$C = () => {
|
|
|
13655
13716
|
register$2(865, wrapViewletCommand('Extensions', handleInstall));
|
|
13656
13717
|
register$2(866, wrapViewletCommand('Extensions', handleUninstall));
|
|
13657
13718
|
register$2(867, wrapViewletCommand('Extensions', handleClick$4));
|
|
13658
|
-
register$2(868, wrapViewletCommand('Extensions', focusIndex$
|
|
13719
|
+
register$2(868, wrapViewletCommand('Extensions', focusIndex$4));
|
|
13659
13720
|
register$2(869, wrapViewletCommand('Extensions', focusFirst$3));
|
|
13660
13721
|
register$2(870, wrapViewletCommand('Extensions', focusLast$3));
|
|
13661
13722
|
register$2(871, wrapViewletCommand('Extensions', focusPrevious$3));
|
|
@@ -13670,49 +13731,42 @@ const __initialize__$C = () => {
|
|
|
13670
13731
|
|
|
13671
13732
|
var ViewletExtensions_ipc = {
|
|
13672
13733
|
__proto__: null,
|
|
13673
|
-
__initialize__: __initialize__$
|
|
13734
|
+
__initialize__: __initialize__$D
|
|
13674
13735
|
};
|
|
13675
13736
|
|
|
13676
|
-
const
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
error.message === 'navigator.clipboard.readText is not a function'
|
|
13689
|
-
) {
|
|
13690
|
-
console.warn(
|
|
13691
|
-
'Failed to paste text: The Clipboard Api is not available in Firefox'
|
|
13692
|
-
);
|
|
13693
|
-
} else {
|
|
13694
|
-
console.warn(error);
|
|
13695
|
-
}
|
|
13696
|
-
return
|
|
13697
|
-
}
|
|
13698
|
-
return text
|
|
13699
|
-
},
|
|
13700
|
-
async writeText(path) {
|
|
13701
|
-
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 (
|
|
13702
13749
|
// @ts-ignore
|
|
13703
|
-
|
|
13704
|
-
|
|
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 {
|
|
13705
13756
|
console.warn(error);
|
|
13706
13757
|
}
|
|
13707
|
-
|
|
13708
|
-
}
|
|
13709
|
-
|
|
13710
|
-
const readText = () => {
|
|
13711
|
-
return state$9.readText()
|
|
13758
|
+
return
|
|
13759
|
+
}
|
|
13760
|
+
return text
|
|
13712
13761
|
};
|
|
13713
13762
|
|
|
13714
13763
|
const writeText = async (path) => {
|
|
13715
|
-
|
|
13764
|
+
try {
|
|
13765
|
+
// @ts-ignore
|
|
13766
|
+
await navigator.clipboard.writeText(path);
|
|
13767
|
+
} catch (error) {
|
|
13768
|
+
console.warn(error);
|
|
13769
|
+
}
|
|
13716
13770
|
};
|
|
13717
13771
|
|
|
13718
13772
|
const writeNativeFiles = (type, files) => {
|
|
@@ -13727,7 +13781,7 @@ const readNativeFiles = () => {
|
|
|
13727
13781
|
return invoke$2(/* command */ 'ClipBoard.readFiles')
|
|
13728
13782
|
};
|
|
13729
13783
|
|
|
13730
|
-
const __initialize__$
|
|
13784
|
+
const __initialize__$C = () => {
|
|
13731
13785
|
register$2(240, readText);
|
|
13732
13786
|
register$2(241, writeText);
|
|
13733
13787
|
register$2(243, writeNativeFiles);
|
|
@@ -13736,7 +13790,7 @@ const __initialize__$B = () => {
|
|
|
13736
13790
|
|
|
13737
13791
|
var ClipBoard_ipc = {
|
|
13738
13792
|
__proto__: null,
|
|
13739
|
-
__initialize__: __initialize__$
|
|
13793
|
+
__initialize__: __initialize__$C
|
|
13740
13794
|
};
|
|
13741
13795
|
|
|
13742
13796
|
class HTTPError extends Error {
|
|
@@ -14083,26 +14137,13 @@ const createInstance = (defaults) => {
|
|
|
14083
14137
|
};
|
|
14084
14138
|
const ky = createInstance();
|
|
14085
14139
|
|
|
14086
|
-
const
|
|
14087
|
-
|
|
14140
|
+
const getJson$3 = async (url, options = {}) => {
|
|
14141
|
+
try {
|
|
14088
14142
|
// cannot use ky(url).json() because it sets "accept: application/json"
|
|
14089
14143
|
// which doesn't work with preload, see
|
|
14090
14144
|
// https://stackoverflow.com/questions/41655955/why-are-preload-link-not-working-for-json-requests#answer-48645748
|
|
14091
14145
|
const response = await ky(url, options);
|
|
14092
14146
|
return response.json()
|
|
14093
|
-
},
|
|
14094
|
-
async getText(url, options) {
|
|
14095
|
-
return ky(url, options).text()
|
|
14096
|
-
},
|
|
14097
|
-
};
|
|
14098
|
-
|
|
14099
|
-
/**
|
|
14100
|
-
* @throws
|
|
14101
|
-
*/
|
|
14102
|
-
const getJson$3 = async (url, options = {}) => {
|
|
14103
|
-
try {
|
|
14104
|
-
const result = await state$8.getJson(url, options);
|
|
14105
|
-
return result
|
|
14106
14147
|
} catch (error) {
|
|
14107
14148
|
if (
|
|
14108
14149
|
error &&
|
|
@@ -14127,6 +14168,7 @@ const getJson$3 = async (url, options = {}) => {
|
|
|
14127
14168
|
throw new Error(`Failed to request json from "${url}": ${json.message}`)
|
|
14128
14169
|
}
|
|
14129
14170
|
}
|
|
14171
|
+
// @ts-ignore
|
|
14130
14172
|
error.message = `Failed to request json from "${url}": ${error.message}`;
|
|
14131
14173
|
throw error
|
|
14132
14174
|
}
|
|
@@ -14134,8 +14176,7 @@ const getJson$3 = async (url, options = {}) => {
|
|
|
14134
14176
|
|
|
14135
14177
|
const getText$1 = async (url, options = {}) => {
|
|
14136
14178
|
try {
|
|
14137
|
-
|
|
14138
|
-
return result
|
|
14179
|
+
return ky(url, options).text()
|
|
14139
14180
|
} catch (error) {
|
|
14140
14181
|
if (
|
|
14141
14182
|
error &&
|
|
@@ -14149,19 +14190,22 @@ const getText$1 = async (url, options = {}) => {
|
|
|
14149
14190
|
}
|
|
14150
14191
|
)
|
|
14151
14192
|
}
|
|
14152
|
-
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
|
+
})
|
|
14153
14197
|
}
|
|
14154
14198
|
};
|
|
14155
14199
|
|
|
14156
14200
|
// TODO only use Ajax module via ipc -> that way is is always lazyloaded
|
|
14157
|
-
const __initialize__$
|
|
14201
|
+
const __initialize__$B = () => {
|
|
14158
14202
|
register$2(270, getJson$3);
|
|
14159
14203
|
register$2(271, getText$1);
|
|
14160
14204
|
};
|
|
14161
14205
|
|
|
14162
14206
|
var Ajax_ipc = {
|
|
14163
14207
|
__proto__: null,
|
|
14164
|
-
__initialize__: __initialize__$
|
|
14208
|
+
__initialize__: __initialize__$B
|
|
14165
14209
|
};
|
|
14166
14210
|
|
|
14167
14211
|
const hydrate$1 = async () => {
|
|
@@ -14169,26 +14213,26 @@ const hydrate$1 = async () => {
|
|
|
14169
14213
|
// EditorSave.onDidSave(onDidSaveEditor)
|
|
14170
14214
|
};
|
|
14171
14215
|
|
|
14172
|
-
const __initialize__$
|
|
14216
|
+
const __initialize__$A = () => {
|
|
14173
14217
|
register$2(3380, hydrate$1);
|
|
14174
14218
|
};
|
|
14175
14219
|
|
|
14176
14220
|
var Format_ipc = {
|
|
14177
14221
|
__proto__: null,
|
|
14178
|
-
__initialize__: __initialize__$
|
|
14222
|
+
__initialize__: __initialize__$A
|
|
14179
14223
|
};
|
|
14180
14224
|
|
|
14181
|
-
const __initialize__$
|
|
14225
|
+
const __initialize__$z = () => {
|
|
14182
14226
|
register$2(5610, hydrate$8);
|
|
14183
14227
|
register$2(5611, setColorTheme$1);
|
|
14184
14228
|
};
|
|
14185
14229
|
|
|
14186
14230
|
var ColorTheme_ipc = {
|
|
14187
14231
|
__proto__: null,
|
|
14188
|
-
__initialize__: __initialize__$
|
|
14232
|
+
__initialize__: __initialize__$z
|
|
14189
14233
|
};
|
|
14190
14234
|
|
|
14191
|
-
const __initialize__$
|
|
14235
|
+
const __initialize__$y = () => {
|
|
14192
14236
|
// TODO command necessary?
|
|
14193
14237
|
register$2(3030, undefined);
|
|
14194
14238
|
// TODO hydrate should be an alias for reload/load
|
|
@@ -14198,10 +14242,10 @@ const __initialize__$x = () => {
|
|
|
14198
14242
|
|
|
14199
14243
|
var IconTheme_ipc = {
|
|
14200
14244
|
__proto__: null,
|
|
14201
|
-
__initialize__: __initialize__$
|
|
14245
|
+
__initialize__: __initialize__$y
|
|
14202
14246
|
};
|
|
14203
14247
|
|
|
14204
|
-
const __initialize__$
|
|
14248
|
+
const __initialize__$x = () => {
|
|
14205
14249
|
register$2(7400, show$4);
|
|
14206
14250
|
register$2(7401, hide$1);
|
|
14207
14251
|
register$2(7403, selectIndex$3);
|
|
@@ -14209,18 +14253,21 @@ const __initialize__$w = () => {
|
|
|
14209
14253
|
register$2(7405, focusPrevious$6);
|
|
14210
14254
|
register$2(7406, focusFirst$6);
|
|
14211
14255
|
register$2(7407, focusLast$6);
|
|
14212
|
-
register$2(7408, focusIndex$
|
|
14256
|
+
register$2(7408, focusIndex$7);
|
|
14213
14257
|
register$2(7409, handleMouseEnter$1);
|
|
14214
14258
|
};
|
|
14215
14259
|
|
|
14216
14260
|
var Menu_ipc = {
|
|
14217
14261
|
__proto__: null,
|
|
14218
|
-
__initialize__: __initialize__$
|
|
14262
|
+
__initialize__: __initialize__$x
|
|
14219
14263
|
};
|
|
14220
14264
|
|
|
14221
14265
|
// TODO menu should not be needed initially, only when item is selected and menu is opened
|
|
14222
14266
|
|
|
14223
|
-
const state$
|
|
14267
|
+
const state$6 = {
|
|
14268
|
+
/**
|
|
14269
|
+
* @type{any[]}
|
|
14270
|
+
*/
|
|
14224
14271
|
titleBarEntries: [],
|
|
14225
14272
|
focusedIndex: 0,
|
|
14226
14273
|
isMenuOpen: false,
|
|
@@ -14230,8 +14277,8 @@ const state$7 = {
|
|
|
14230
14277
|
// TODO only compute once if is electron and filter out during build process
|
|
14231
14278
|
|
|
14232
14279
|
const getEntries = async () => {
|
|
14233
|
-
state$
|
|
14234
|
-
return state$
|
|
14280
|
+
state$6.titleBarEntries = await getMenuEntries$h('titleBar');
|
|
14281
|
+
return state$6.titleBarEntries
|
|
14235
14282
|
};
|
|
14236
14283
|
|
|
14237
14284
|
/**
|
|
@@ -14243,9 +14290,9 @@ const openMenuAtIndex = async (index, shouldBeFocused) => {
|
|
|
14243
14290
|
// TODO send renderer process
|
|
14244
14291
|
// 1. open menu, items to show
|
|
14245
14292
|
// 2. focus menu
|
|
14246
|
-
const id = state$
|
|
14293
|
+
const id = state$6.titleBarEntries[index].id;
|
|
14247
14294
|
const items = await getMenuEntries$h(id);
|
|
14248
|
-
state$
|
|
14295
|
+
state$i.menus = [];
|
|
14249
14296
|
const bounds = await invoke$1(
|
|
14250
14297
|
/* Viewlet.send */ 3024,
|
|
14251
14298
|
/* id */ 'TitleBar',
|
|
@@ -14263,7 +14310,7 @@ const openMenuAtIndex = async (index, shouldBeFocused) => {
|
|
|
14263
14310
|
id,
|
|
14264
14311
|
items,
|
|
14265
14312
|
focusedIndex: menuFocusedIndex,
|
|
14266
|
-
level: state$
|
|
14313
|
+
level: state$i.menus.length,
|
|
14267
14314
|
x,
|
|
14268
14315
|
y,
|
|
14269
14316
|
});
|
|
@@ -14271,7 +14318,7 @@ const openMenuAtIndex = async (index, shouldBeFocused) => {
|
|
|
14271
14318
|
/* Viewlet.send */ 3024,
|
|
14272
14319
|
/* id */ 'TitleBar',
|
|
14273
14320
|
/* method */ 'menuOpen',
|
|
14274
|
-
/* unFocusIndex */ state$
|
|
14321
|
+
/* unFocusIndex */ state$6.focusedIndex,
|
|
14275
14322
|
/* index */ index,
|
|
14276
14323
|
/* level */ menu.level,
|
|
14277
14324
|
/* menuItems */ menu.items,
|
|
@@ -14282,55 +14329,55 @@ const openMenuAtIndex = async (index, shouldBeFocused) => {
|
|
|
14282
14329
|
/* width */ width,
|
|
14283
14330
|
/* height */ height,
|
|
14284
14331
|
]);
|
|
14285
|
-
state$
|
|
14332
|
+
state$6.isMenuOpen = true;
|
|
14286
14333
|
};
|
|
14287
14334
|
|
|
14288
14335
|
/**
|
|
14289
14336
|
* @param {boolean} focus
|
|
14290
14337
|
*/
|
|
14291
14338
|
const openMenu = async (focus) => {
|
|
14292
|
-
if (state$
|
|
14339
|
+
if (state$6.focusedIndex === -1) {
|
|
14293
14340
|
return
|
|
14294
14341
|
}
|
|
14295
|
-
await openMenuAtIndex(state$
|
|
14342
|
+
await openMenuAtIndex(state$6.focusedIndex, focus);
|
|
14296
14343
|
};
|
|
14297
14344
|
|
|
14298
|
-
const closeMenu = (keepFocus) => {
|
|
14345
|
+
const closeMenu = async (keepFocus) => {
|
|
14299
14346
|
// TODO send to renderer process
|
|
14300
14347
|
// 1. close menu
|
|
14301
14348
|
// 2. focus top level entry
|
|
14302
|
-
const focusIndex = keepFocus ? state$
|
|
14349
|
+
const focusIndex = keepFocus ? state$6.focusedIndex : -1;
|
|
14303
14350
|
// TODO use Viewlet.dispose instead
|
|
14304
|
-
|
|
14351
|
+
state$6.isMenuOpen = false;
|
|
14352
|
+
await invoke$1(
|
|
14305
14353
|
/* Viewlet.send */ 3024,
|
|
14306
14354
|
/* id */ 'TitleBar',
|
|
14307
14355
|
/* method */ 'menuClose',
|
|
14308
|
-
/* unFocusIndex */ state$
|
|
14309
|
-
/* focusIndex */ focusIndex
|
|
14310
|
-
|
|
14311
|
-
state$7.isMenuOpen = false;
|
|
14356
|
+
/* unFocusIndex */ state$6.focusedIndex,
|
|
14357
|
+
/* focusIndex */ focusIndex
|
|
14358
|
+
);
|
|
14312
14359
|
};
|
|
14313
14360
|
|
|
14314
|
-
const focusIndex$
|
|
14315
|
-
if (state$
|
|
14361
|
+
const focusIndex$3 = async (index) => {
|
|
14362
|
+
if (state$6.isMenuOpen) {
|
|
14316
14363
|
await openMenuAtIndex(index, /* focus */ false);
|
|
14317
14364
|
} else {
|
|
14318
|
-
|
|
14365
|
+
await invoke$1(
|
|
14319
14366
|
/* TitleBarMenuBar.focusIndex */ 1371,
|
|
14320
|
-
/* unFocusIndex */ state$
|
|
14321
|
-
/* index */ index
|
|
14322
|
-
|
|
14367
|
+
/* unFocusIndex */ state$6.focusedIndex,
|
|
14368
|
+
/* index */ index
|
|
14369
|
+
);
|
|
14323
14370
|
}
|
|
14324
|
-
state$
|
|
14371
|
+
state$6.focusedIndex = index;
|
|
14325
14372
|
};
|
|
14326
14373
|
|
|
14327
14374
|
const toggleIndex = async (index) => {
|
|
14328
|
-
if (state$
|
|
14375
|
+
if (state$6.isMenuOpen && state$6.focusedIndex === index) {
|
|
14329
14376
|
closeMenu(/* keepFocus */ true);
|
|
14330
14377
|
} else {
|
|
14331
14378
|
await openMenuAtIndex(index, /* focus */ false);
|
|
14332
14379
|
}
|
|
14333
|
-
state$
|
|
14380
|
+
state$6.focusedIndex = index;
|
|
14334
14381
|
};
|
|
14335
14382
|
|
|
14336
14383
|
const focus$1 = async () => {
|
|
@@ -14343,10 +14390,10 @@ const getIndexToFocusPreviousStartingAt = (items, index) => {
|
|
|
14343
14390
|
|
|
14344
14391
|
const focusPrevious$2 = async () => {
|
|
14345
14392
|
const indexToFocus = getIndexToFocusPreviousStartingAt(
|
|
14346
|
-
state$
|
|
14347
|
-
state$
|
|
14393
|
+
state$6.titleBarEntries,
|
|
14394
|
+
state$6.focusedIndex - 1
|
|
14348
14395
|
);
|
|
14349
|
-
await focusIndex$
|
|
14396
|
+
await focusIndex$3(indexToFocus);
|
|
14350
14397
|
};
|
|
14351
14398
|
|
|
14352
14399
|
const getIndexToFocusNextStartingAt = (items, index) => {
|
|
@@ -14354,29 +14401,28 @@ const getIndexToFocusNextStartingAt = (items, index) => {
|
|
|
14354
14401
|
};
|
|
14355
14402
|
|
|
14356
14403
|
const focusNext$2 = async () => {
|
|
14357
|
-
console.log('ff next');
|
|
14358
14404
|
const indexToFocus = getIndexToFocusNextStartingAt(
|
|
14359
|
-
state$
|
|
14360
|
-
state$
|
|
14405
|
+
state$6.titleBarEntries,
|
|
14406
|
+
state$6.focusedIndex + 1
|
|
14361
14407
|
);
|
|
14362
|
-
await focusIndex$
|
|
14408
|
+
await focusIndex$3(indexToFocus);
|
|
14363
14409
|
};
|
|
14364
14410
|
|
|
14365
14411
|
const focusFirst$2 = async () => {
|
|
14366
|
-
const indexToFocus = getIndexToFocusNextStartingAt(state$
|
|
14367
|
-
await focusIndex$
|
|
14412
|
+
const indexToFocus = getIndexToFocusNextStartingAt(state$6.titleBarEntries, 0);
|
|
14413
|
+
await focusIndex$3(indexToFocus);
|
|
14368
14414
|
};
|
|
14369
14415
|
|
|
14370
14416
|
const focusLast$2 = async () => {
|
|
14371
14417
|
const indexToFocus = getIndexToFocusPreviousStartingAt(
|
|
14372
|
-
state$
|
|
14373
|
-
state$
|
|
14418
|
+
state$6.titleBarEntries,
|
|
14419
|
+
state$6.titleBarEntries.length - 1
|
|
14374
14420
|
);
|
|
14375
|
-
await focusIndex$
|
|
14421
|
+
await focusIndex$3(indexToFocus);
|
|
14376
14422
|
};
|
|
14377
14423
|
|
|
14378
14424
|
const handleKeyArrowLeft = async () => {
|
|
14379
|
-
if (state$
|
|
14425
|
+
if (state$6.isMenuOpen && state$i.menus.length > 1) {
|
|
14380
14426
|
return
|
|
14381
14427
|
}
|
|
14382
14428
|
// TODO menu collapse
|
|
@@ -14384,7 +14430,7 @@ const handleKeyArrowLeft = async () => {
|
|
|
14384
14430
|
};
|
|
14385
14431
|
|
|
14386
14432
|
const handleKeyArrowUp = () => {
|
|
14387
|
-
if (!state$
|
|
14433
|
+
if (!state$6.isMenuOpen) {
|
|
14388
14434
|
return
|
|
14389
14435
|
}
|
|
14390
14436
|
focusPrevious$6();
|
|
@@ -14392,12 +14438,12 @@ const handleKeyArrowUp = () => {
|
|
|
14392
14438
|
|
|
14393
14439
|
const handleKeyArrowRight = async () => {
|
|
14394
14440
|
console.log('arrow right');
|
|
14395
|
-
if (state$
|
|
14441
|
+
if (state$6.isMenuOpen) {
|
|
14396
14442
|
// if menu can open sub menu to the right -> do that
|
|
14397
|
-
const menu = state$
|
|
14443
|
+
const menu = state$i.menus.at(-1);
|
|
14398
14444
|
const item = menu.items[menu.focusedIndex];
|
|
14399
14445
|
if (item.flags === /* SubMenu */ 4) {
|
|
14400
|
-
await showSubMenu(state$
|
|
14446
|
+
await showSubMenu(state$i.menus.length - 1, menu.focusedIndex);
|
|
14401
14447
|
return
|
|
14402
14448
|
}
|
|
14403
14449
|
}
|
|
@@ -14405,7 +14451,7 @@ const handleKeyArrowRight = async () => {
|
|
|
14405
14451
|
};
|
|
14406
14452
|
|
|
14407
14453
|
const handleKeyHome = async () => {
|
|
14408
|
-
if (state$
|
|
14454
|
+
if (state$6.isMenuOpen) {
|
|
14409
14455
|
focusFirst$6();
|
|
14410
14456
|
} else {
|
|
14411
14457
|
await focusFirst$2();
|
|
@@ -14414,7 +14460,7 @@ const handleKeyHome = async () => {
|
|
|
14414
14460
|
|
|
14415
14461
|
// TODO this is also use for pagedown -> maybe find a better name for this function
|
|
14416
14462
|
const handleKeyEnd = async () => {
|
|
14417
|
-
if (state$
|
|
14463
|
+
if (state$6.isMenuOpen) {
|
|
14418
14464
|
focusLast$6();
|
|
14419
14465
|
} else {
|
|
14420
14466
|
await focusLast$2();
|
|
@@ -14423,7 +14469,7 @@ const handleKeyEnd = async () => {
|
|
|
14423
14469
|
|
|
14424
14470
|
// TODO this is same as handle key enter -> merge the functions
|
|
14425
14471
|
const handleKeySpace = async () => {
|
|
14426
|
-
if (state$
|
|
14472
|
+
if (state$6.isMenuOpen) {
|
|
14427
14473
|
await selectCurrent$1();
|
|
14428
14474
|
} else {
|
|
14429
14475
|
openMenu(/* focus */ true);
|
|
@@ -14431,7 +14477,7 @@ const handleKeySpace = async () => {
|
|
|
14431
14477
|
};
|
|
14432
14478
|
|
|
14433
14479
|
const handleKeyEnter = async () => {
|
|
14434
|
-
if (state$
|
|
14480
|
+
if (state$6.isMenuOpen) {
|
|
14435
14481
|
await selectCurrent$1();
|
|
14436
14482
|
} else {
|
|
14437
14483
|
openMenu(/* focus */ true);
|
|
@@ -14439,25 +14485,25 @@ const handleKeyEnter = async () => {
|
|
|
14439
14485
|
};
|
|
14440
14486
|
|
|
14441
14487
|
const handleKeyEscape = () => {
|
|
14442
|
-
if (!state$
|
|
14488
|
+
if (!state$6.isMenuOpen) {
|
|
14443
14489
|
return
|
|
14444
14490
|
}
|
|
14445
14491
|
closeMenu(/* keepFocus */ true);
|
|
14446
14492
|
};
|
|
14447
14493
|
|
|
14448
14494
|
const handleKeyArrowDown = async () => {
|
|
14449
|
-
if (state$
|
|
14495
|
+
if (state$6.isMenuOpen) {
|
|
14450
14496
|
focusNext$6();
|
|
14451
14497
|
} else {
|
|
14452
14498
|
await openMenu(/* focus */ true);
|
|
14453
14499
|
}
|
|
14454
14500
|
};
|
|
14455
14501
|
|
|
14456
|
-
const __initialize__$
|
|
14502
|
+
const __initialize__$w = () => {
|
|
14457
14503
|
register$2(4610, toggleIndex);
|
|
14458
14504
|
register$2(4611, undefined);
|
|
14459
14505
|
register$2(4612, focus$1);
|
|
14460
|
-
register$2(4613, focusIndex$
|
|
14506
|
+
register$2(4613, focusIndex$3);
|
|
14461
14507
|
register$2(4614, focusPrevious$2);
|
|
14462
14508
|
register$2(4615, focusNext$2);
|
|
14463
14509
|
register$2(4616, closeMenu);
|
|
@@ -14475,16 +14521,16 @@ const __initialize__$v = () => {
|
|
|
14475
14521
|
|
|
14476
14522
|
var TitleBarMenuBar_ipc = {
|
|
14477
14523
|
__proto__: null,
|
|
14478
|
-
__initialize__: __initialize__$
|
|
14524
|
+
__initialize__: __initialize__$w
|
|
14479
14525
|
};
|
|
14480
14526
|
|
|
14481
|
-
const __initialize__$
|
|
14527
|
+
const __initialize__$v = () => {
|
|
14482
14528
|
register$2(440, handleError$1);
|
|
14483
14529
|
};
|
|
14484
14530
|
|
|
14485
14531
|
var ErrorHandling_ipc = {
|
|
14486
14532
|
__proto__: null,
|
|
14487
|
-
__initialize__: __initialize__$
|
|
14533
|
+
__initialize__: __initialize__$v
|
|
14488
14534
|
};
|
|
14489
14535
|
|
|
14490
14536
|
// TODO maybe rename this module to Focus
|
|
@@ -14496,55 +14542,49 @@ const PART_STATUS_BAR = 4;
|
|
|
14496
14542
|
const PART_SIDE_BAR = 5;
|
|
14497
14543
|
const PART_ACTIVITY_BAR = 6;
|
|
14498
14544
|
|
|
14499
|
-
const state$
|
|
14545
|
+
const state$5 = {
|
|
14500
14546
|
focusedPart: PART_TITLE_BAR,
|
|
14501
14547
|
};
|
|
14502
14548
|
|
|
14503
|
-
const focusActivityBar = () => {
|
|
14504
|
-
|
|
14549
|
+
const focusActivityBar = async () => {
|
|
14550
|
+
await invoke$1(/* ActivityBar.focus */ 717115);
|
|
14505
14551
|
};
|
|
14506
14552
|
|
|
14507
|
-
const focusStatusBar = () => {
|
|
14508
|
-
|
|
14553
|
+
const focusStatusBar = async () => {
|
|
14554
|
+
await invoke$1(/* StatusBar.focus */ 8882);
|
|
14509
14555
|
};
|
|
14510
14556
|
|
|
14511
|
-
const focusPanel = () => {
|
|
14512
|
-
|
|
14557
|
+
const focusPanel = async () => {
|
|
14558
|
+
await invoke$1(/* Panel.focus */ 6664);
|
|
14513
14559
|
};
|
|
14514
14560
|
|
|
14515
|
-
const focusSideBar = () => {
|
|
14516
|
-
|
|
14561
|
+
const focusSideBar = async () => {
|
|
14562
|
+
await invoke$1(/* SideBar.focus */ 5554);
|
|
14517
14563
|
};
|
|
14518
14564
|
|
|
14519
|
-
const focusTitleBar = () => {
|
|
14520
|
-
|
|
14565
|
+
const focusTitleBar = async () => {
|
|
14566
|
+
await invoke$1(/* TitleBar.focus */ 1331);
|
|
14521
14567
|
};
|
|
14522
14568
|
|
|
14523
|
-
const focusMain = () => {
|
|
14524
|
-
|
|
14569
|
+
const focusMain = async () => {
|
|
14570
|
+
await invoke$1(/* Main.focus */ 2145);
|
|
14525
14571
|
};
|
|
14526
14572
|
|
|
14527
14573
|
const focusPart = (part) => {
|
|
14528
|
-
state$
|
|
14529
|
-
switch (state$
|
|
14574
|
+
state$5.focusedPart = part;
|
|
14575
|
+
switch (state$5.focusedPart) {
|
|
14530
14576
|
case PART_TITLE_BAR:
|
|
14531
|
-
focusTitleBar()
|
|
14532
|
-
break
|
|
14577
|
+
return focusTitleBar()
|
|
14533
14578
|
case PART_MAIN:
|
|
14534
|
-
focusMain()
|
|
14535
|
-
break
|
|
14579
|
+
return focusMain()
|
|
14536
14580
|
case PART_PANEL:
|
|
14537
|
-
focusPanel()
|
|
14538
|
-
break
|
|
14581
|
+
return focusPanel()
|
|
14539
14582
|
case PART_STATUS_BAR:
|
|
14540
|
-
focusStatusBar()
|
|
14541
|
-
break
|
|
14583
|
+
return focusStatusBar()
|
|
14542
14584
|
case PART_SIDE_BAR:
|
|
14543
|
-
focusSideBar()
|
|
14544
|
-
break
|
|
14585
|
+
return focusSideBar()
|
|
14545
14586
|
case PART_ACTIVITY_BAR:
|
|
14546
|
-
focusActivityBar()
|
|
14547
|
-
break
|
|
14587
|
+
return focusActivityBar()
|
|
14548
14588
|
default:
|
|
14549
14589
|
throw console.warn(`unknown part ${part}`)
|
|
14550
14590
|
}
|
|
@@ -14605,22 +14645,22 @@ const getVisiblePartPrevious = (part) => {
|
|
|
14605
14645
|
|
|
14606
14646
|
const getCurrentPart = () => {
|
|
14607
14647
|
// TODO ask renderer process
|
|
14608
|
-
return state$
|
|
14648
|
+
return state$5.focusedPart
|
|
14609
14649
|
};
|
|
14610
14650
|
|
|
14611
|
-
const focusNextPart = () => {
|
|
14651
|
+
const focusNextPart = async () => {
|
|
14612
14652
|
const currentPart = getCurrentPart();
|
|
14613
14653
|
const nextPart = getVisiblePartNext(currentPart);
|
|
14614
|
-
focusPart(nextPart);
|
|
14654
|
+
await focusPart(nextPart);
|
|
14615
14655
|
};
|
|
14616
14656
|
|
|
14617
|
-
const focusPreviousPart = () => {
|
|
14657
|
+
const focusPreviousPart = async () => {
|
|
14618
14658
|
const currentPart = getCurrentPart();
|
|
14619
14659
|
const previousPart = getVisiblePartPrevious(currentPart);
|
|
14620
|
-
focusPart(previousPart);
|
|
14660
|
+
await focusPart(previousPart);
|
|
14621
14661
|
};
|
|
14622
14662
|
|
|
14623
|
-
const __initialize__$
|
|
14663
|
+
const __initialize__$u = () => {
|
|
14624
14664
|
register$2(5740, focusPreviousPart);
|
|
14625
14665
|
register$2(5741, focusNextPart);
|
|
14626
14666
|
register$2(5742, focusActivityBar);
|
|
@@ -14633,10 +14673,10 @@ const __initialize__$t = () => {
|
|
|
14633
14673
|
|
|
14634
14674
|
var Navigation_ipc = {
|
|
14635
14675
|
__proto__: null,
|
|
14636
|
-
__initialize__: __initialize__$
|
|
14676
|
+
__initialize__: __initialize__$u
|
|
14637
14677
|
};
|
|
14638
14678
|
|
|
14639
|
-
const CACHE_NAME = 'lvce-runtime-
|
|
14679
|
+
const CACHE_NAME = 'lvce-runtime-09bf9c7';
|
|
14640
14680
|
|
|
14641
14681
|
const shouldIgnoreError = (error) => {
|
|
14642
14682
|
// Firefox throws dom exception in private mode
|
|
@@ -14647,37 +14687,6 @@ const shouldIgnoreError = (error) => {
|
|
|
14647
14687
|
)
|
|
14648
14688
|
};
|
|
14649
14689
|
|
|
14650
|
-
const state$5 = {
|
|
14651
|
-
async getJson(key) {
|
|
14652
|
-
try {
|
|
14653
|
-
const response = await getResponse(key);
|
|
14654
|
-
if (!response) {
|
|
14655
|
-
return undefined
|
|
14656
|
-
}
|
|
14657
|
-
const json = await response.json();
|
|
14658
|
-
return json
|
|
14659
|
-
} catch (error) {
|
|
14660
|
-
if (shouldIgnoreError(error)) {
|
|
14661
|
-
return undefined
|
|
14662
|
-
}
|
|
14663
|
-
throw new Error(`Failed to get json from cache "${key}"`, {
|
|
14664
|
-
cause: error,
|
|
14665
|
-
})
|
|
14666
|
-
}
|
|
14667
|
-
},
|
|
14668
|
-
async setJson(key, value) {
|
|
14669
|
-
try {
|
|
14670
|
-
await setResponse(key, JSON.stringify(value), 'application/json');
|
|
14671
|
-
} catch (error) {
|
|
14672
|
-
if (shouldIgnoreError(error)) {
|
|
14673
|
-
return
|
|
14674
|
-
}
|
|
14675
|
-
throw new Error(`Failed to put json into cache "${key}"`, {
|
|
14676
|
-
cause: error,
|
|
14677
|
-
})
|
|
14678
|
-
}
|
|
14679
|
-
},
|
|
14680
|
-
};
|
|
14681
14690
|
// TODO when caches is not defined -> should return undefined
|
|
14682
14691
|
|
|
14683
14692
|
const getCache = async () => {
|
|
@@ -14697,11 +14706,23 @@ const getResponse = async (key) => {
|
|
|
14697
14706
|
return response
|
|
14698
14707
|
};
|
|
14699
14708
|
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
|
|
14704
|
-
|
|
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
|
+
}
|
|
14705
14726
|
};
|
|
14706
14727
|
|
|
14707
14728
|
const setResponse = async (key, value, contentType) => {
|
|
@@ -14732,12 +14753,19 @@ const setResponse = async (key, value, contentType) => {
|
|
|
14732
14753
|
};
|
|
14733
14754
|
|
|
14734
14755
|
const setJson$1 = async (key, value) => {
|
|
14735
|
-
|
|
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
|
+
}
|
|
14736
14767
|
};
|
|
14737
14768
|
|
|
14738
|
-
/**
|
|
14739
|
-
* @throws
|
|
14740
|
-
*/
|
|
14741
14769
|
const clearCache = async () => {
|
|
14742
14770
|
if (typeof caches === 'undefined') {
|
|
14743
14771
|
return
|
|
@@ -14749,6 +14777,7 @@ const clearCache = async () => {
|
|
|
14749
14777
|
return
|
|
14750
14778
|
}
|
|
14751
14779
|
throw new Error('Failed to clear cache', {
|
|
14780
|
+
// @ts-ignore
|
|
14752
14781
|
cause: error,
|
|
14753
14782
|
})
|
|
14754
14783
|
}
|
|
@@ -14756,7 +14785,7 @@ const clearCache = async () => {
|
|
|
14756
14785
|
|
|
14757
14786
|
// TODO only use CacheStorage module via ipc -> that way is is always lazyloaded
|
|
14758
14787
|
|
|
14759
|
-
const __initialize__$
|
|
14788
|
+
const __initialize__$t = () => {
|
|
14760
14789
|
register$2(6800, clearCache);
|
|
14761
14790
|
register$2(6801, setJson$1);
|
|
14762
14791
|
register$2(6802, getJson$2);
|
|
@@ -14764,7 +14793,7 @@ const __initialize__$s = () => {
|
|
|
14764
14793
|
|
|
14765
14794
|
var CacheStorage_ipc = {
|
|
14766
14795
|
__proto__: null,
|
|
14767
|
-
__initialize__: __initialize__$
|
|
14796
|
+
__initialize__: __initialize__$t
|
|
14768
14797
|
};
|
|
14769
14798
|
|
|
14770
14799
|
const clear$1 = async () => {
|
|
@@ -14806,7 +14835,7 @@ const setJson = async (key, value) => {
|
|
|
14806
14835
|
|
|
14807
14836
|
// TODO only use LocalStorage module via ipc -> that way is is always lazyloaded
|
|
14808
14837
|
|
|
14809
|
-
const __initialize__$
|
|
14838
|
+
const __initialize__$s = () => {
|
|
14810
14839
|
register$2(6900, clear$1);
|
|
14811
14840
|
register$2(6901, setJson);
|
|
14812
14841
|
register$2(6902, getJson$1);
|
|
@@ -14816,7 +14845,7 @@ const __initialize__$r = () => {
|
|
|
14816
14845
|
|
|
14817
14846
|
var LocalStorage_ipc = {
|
|
14818
14847
|
__proto__: null,
|
|
14819
|
-
__initialize__: __initialize__$
|
|
14848
|
+
__initialize__: __initialize__$s
|
|
14820
14849
|
};
|
|
14821
14850
|
|
|
14822
14851
|
const clear = async () => {
|
|
@@ -14840,24 +14869,24 @@ const getJson = async (key) => {
|
|
|
14840
14869
|
|
|
14841
14870
|
// TODO only use SessionStorage module via ipc -> that way is is always lazyloaded
|
|
14842
14871
|
|
|
14843
|
-
const __initialize__$
|
|
14872
|
+
const __initialize__$r = () => {
|
|
14844
14873
|
register$2(6755, clear);
|
|
14845
14874
|
register$2(6756, getJson);
|
|
14846
14875
|
};
|
|
14847
14876
|
|
|
14848
14877
|
var SessionStorage_ipc = {
|
|
14849
14878
|
__proto__: null,
|
|
14850
|
-
__initialize__: __initialize__$
|
|
14879
|
+
__initialize__: __initialize__$r
|
|
14851
14880
|
};
|
|
14852
14881
|
|
|
14853
|
-
const __initialize__$
|
|
14882
|
+
const __initialize__$q = () => {
|
|
14854
14883
|
register$2(67330, resolve);
|
|
14855
14884
|
register$2(67331, reject);
|
|
14856
14885
|
};
|
|
14857
14886
|
|
|
14858
14887
|
var Callback_ipc = {
|
|
14859
14888
|
__proto__: null,
|
|
14860
|
-
__initialize__: __initialize__$
|
|
14889
|
+
__initialize__: __initialize__$q
|
|
14861
14890
|
};
|
|
14862
14891
|
|
|
14863
14892
|
/**
|
|
@@ -15317,13 +15346,13 @@ const getCommandInfo = (id) => {
|
|
|
15317
15346
|
}
|
|
15318
15347
|
};
|
|
15319
15348
|
|
|
15320
|
-
const __initialize__$
|
|
15349
|
+
const __initialize__$p = () => {
|
|
15321
15350
|
register$2(1592, getCommandInfo);
|
|
15322
15351
|
};
|
|
15323
15352
|
|
|
15324
15353
|
var CommandInfo_ipc = {
|
|
15325
15354
|
__proto__: null,
|
|
15326
|
-
__initialize__: __initialize__$
|
|
15355
|
+
__initialize__: __initialize__$p
|
|
15327
15356
|
};
|
|
15328
15357
|
|
|
15329
15358
|
const state$4 = {
|
|
@@ -15427,7 +15456,7 @@ const handleClick$3 = async (index) => {
|
|
|
15427
15456
|
}
|
|
15428
15457
|
};
|
|
15429
15458
|
|
|
15430
|
-
const __initialize__$
|
|
15459
|
+
const __initialize__$o = () => {
|
|
15431
15460
|
register$2(1492, openFolder);
|
|
15432
15461
|
register$2(1493, showAbout);
|
|
15433
15462
|
register$2(1494, showMessage);
|
|
@@ -15437,10 +15466,10 @@ const __initialize__$n = () => {
|
|
|
15437
15466
|
|
|
15438
15467
|
var Dialog_ipc = {
|
|
15439
15468
|
__proto__: null,
|
|
15440
|
-
__initialize__: __initialize__$
|
|
15469
|
+
__initialize__: __initialize__$o
|
|
15441
15470
|
};
|
|
15442
15471
|
|
|
15443
|
-
const __initialize__$
|
|
15472
|
+
const __initialize__$n = () => {
|
|
15444
15473
|
register$2(7633, setPath);
|
|
15445
15474
|
register$2(7634, hydrate$b);
|
|
15446
15475
|
register$2(7635, setUri);
|
|
@@ -15448,7 +15477,7 @@ const __initialize__$m = () => {
|
|
|
15448
15477
|
|
|
15449
15478
|
var Workspace_ipc = {
|
|
15450
15479
|
__proto__: null,
|
|
15451
|
-
__initialize__: __initialize__$
|
|
15480
|
+
__initialize__: __initialize__$n
|
|
15452
15481
|
};
|
|
15453
15482
|
|
|
15454
15483
|
const transparent = (color, factor) => {
|
|
@@ -15554,16 +15583,16 @@ const createColorThemeFromJson = (colorThemeId, colorThemeJson) => {
|
|
|
15554
15583
|
// }) //?.
|
|
15555
15584
|
// }
|
|
15556
15585
|
|
|
15557
|
-
const __initialize__$
|
|
15586
|
+
const __initialize__$m = () => {
|
|
15558
15587
|
register$2(232, createColorThemeFromJson);
|
|
15559
15588
|
};
|
|
15560
15589
|
|
|
15561
15590
|
var ColorThemeFromJson_ipc = {
|
|
15562
15591
|
__proto__: null,
|
|
15563
|
-
__initialize__: __initialize__$
|
|
15592
|
+
__initialize__: __initialize__$m
|
|
15564
15593
|
};
|
|
15565
15594
|
|
|
15566
|
-
const __initialize__$
|
|
15595
|
+
const __initialize__$l = () => {
|
|
15567
15596
|
register$2(5430, getRecentlyOpened$2);
|
|
15568
15597
|
register$2(5432, clearRecentlyOpened);
|
|
15569
15598
|
register$2(5433, addToRecentlyOpened);
|
|
@@ -15572,13 +15601,13 @@ const __initialize__$k = () => {
|
|
|
15572
15601
|
|
|
15573
15602
|
var RecentlyOpened_ipc = {
|
|
15574
15603
|
__proto__: null,
|
|
15575
|
-
__initialize__: __initialize__$
|
|
15604
|
+
__initialize__: __initialize__$l
|
|
15576
15605
|
};
|
|
15577
15606
|
|
|
15578
15607
|
// TODO who calls this?
|
|
15579
15608
|
// TODO how to return value?
|
|
15580
15609
|
|
|
15581
|
-
const __initialize__$
|
|
15610
|
+
const __initialize__$k = () => {
|
|
15582
15611
|
register$2(501, readFile);
|
|
15583
15612
|
register$2(502, remove);
|
|
15584
15613
|
register$2(503, readDirWithFileTypes);
|
|
@@ -15588,12 +15617,12 @@ const __initialize__$j = () => {
|
|
|
15588
15617
|
|
|
15589
15618
|
var FileSystem_ipc = {
|
|
15590
15619
|
__proto__: null,
|
|
15591
|
-
__initialize__: __initialize__$
|
|
15620
|
+
__initialize__: __initialize__$k
|
|
15592
15621
|
};
|
|
15593
15622
|
|
|
15594
15623
|
const findInWorkspace = async (searchTerm) => {
|
|
15595
15624
|
// TODO ask shared process
|
|
15596
|
-
const root = state$
|
|
15625
|
+
const root = state$w.workspacePath;
|
|
15597
15626
|
const result = await invoke$2(
|
|
15598
15627
|
/* Search.search */ 'Search.search',
|
|
15599
15628
|
/* folder */ root,
|
|
@@ -15602,15 +15631,15 @@ const findInWorkspace = async (searchTerm) => {
|
|
|
15602
15631
|
return result
|
|
15603
15632
|
};
|
|
15604
15633
|
|
|
15605
|
-
const __initialize__$
|
|
15634
|
+
const __initialize__$j = () => {
|
|
15606
15635
|
register$2(5200, findInWorkspace);
|
|
15607
15636
|
console.log('register command');
|
|
15608
|
-
console.log(state$
|
|
15637
|
+
console.log(state$C.commands);
|
|
15609
15638
|
};
|
|
15610
15639
|
|
|
15611
15640
|
var FindInWorkspace_ipc = {
|
|
15612
15641
|
__proto__: null,
|
|
15613
|
-
__initialize__: __initialize__$
|
|
15642
|
+
__initialize__: __initialize__$j
|
|
15614
15643
|
};
|
|
15615
15644
|
|
|
15616
15645
|
const executeDiagnosticProvider = async (editor) => {
|
|
@@ -15646,13 +15675,13 @@ const hydrate = () => {
|
|
|
15646
15675
|
|
|
15647
15676
|
// see also https://tink.uk/using-the-web-speech-api-to-simulate-css-speech-support/
|
|
15648
15677
|
|
|
15649
|
-
const __initialize__$
|
|
15678
|
+
const __initialize__$i = () => {
|
|
15650
15679
|
register$2(8786, hydrate);
|
|
15651
15680
|
};
|
|
15652
15681
|
|
|
15653
15682
|
var EditorDiagnostics_ipc = {
|
|
15654
15683
|
__proto__: null,
|
|
15655
|
-
__initialize__: __initialize__$
|
|
15684
|
+
__initialize__: __initialize__$i
|
|
15656
15685
|
};
|
|
15657
15686
|
|
|
15658
15687
|
const executePrepareRenameProvider = async (editor, offset) => {
|
|
@@ -15695,11 +15724,11 @@ const open = async (editor) => {
|
|
|
15695
15724
|
const y$1 = y(editor, editor.cursor);
|
|
15696
15725
|
// const prepareRenameResult = await prepareRename(editor)
|
|
15697
15726
|
// console.log({ prepareRenameResult })
|
|
15698
|
-
|
|
15727
|
+
await invoke$1(
|
|
15699
15728
|
/* EditorRename.openWidget */ 4512,
|
|
15700
15729
|
/* x */ x$1,
|
|
15701
|
-
/* y */ y$1
|
|
15702
|
-
|
|
15730
|
+
/* y */ y$1
|
|
15731
|
+
);
|
|
15703
15732
|
} else {
|
|
15704
15733
|
// TODO also show error when promise rejects
|
|
15705
15734
|
await execute$1(
|
|
@@ -15754,11 +15783,11 @@ const finish = async (editor) => {
|
|
|
15754
15783
|
// console.log({ workspaceEdits })
|
|
15755
15784
|
};
|
|
15756
15785
|
|
|
15757
|
-
const abort = () => {
|
|
15758
|
-
|
|
15786
|
+
const abort = async () => {
|
|
15787
|
+
await invoke$1(/* EditorRename.closeWidget */ 4514);
|
|
15759
15788
|
};
|
|
15760
15789
|
|
|
15761
|
-
const __initialize__$
|
|
15790
|
+
const __initialize__$h = () => {
|
|
15762
15791
|
register$2(3300, open);
|
|
15763
15792
|
register$2(3301, finish);
|
|
15764
15793
|
register$2(3302, abort);
|
|
@@ -15766,27 +15795,27 @@ const __initialize__$g = () => {
|
|
|
15766
15795
|
|
|
15767
15796
|
var EditorRename_ipc = {
|
|
15768
15797
|
__proto__: null,
|
|
15769
|
-
__initialize__: __initialize__$
|
|
15798
|
+
__initialize__: __initialize__$h
|
|
15770
15799
|
};
|
|
15771
15800
|
|
|
15772
|
-
const show$1 = (editor, message, position) => {
|
|
15801
|
+
const show$1 = async (editor, message, position) => {
|
|
15773
15802
|
const x$1 = x(editor, position);
|
|
15774
15803
|
const y$1 = y(editor, position);
|
|
15775
|
-
|
|
15804
|
+
await invoke$1(
|
|
15776
15805
|
/* EditorError.show */ 3700,
|
|
15777
15806
|
/* message */ message,
|
|
15778
15807
|
/* x */ x$1,
|
|
15779
|
-
/* y */ y$1
|
|
15780
|
-
|
|
15808
|
+
/* y */ y$1
|
|
15809
|
+
);
|
|
15781
15810
|
};
|
|
15782
15811
|
|
|
15783
|
-
const __initialize__$
|
|
15812
|
+
const __initialize__$g = () => {
|
|
15784
15813
|
register$2(3900, show$1);
|
|
15785
15814
|
};
|
|
15786
15815
|
|
|
15787
15816
|
var EditorError_ipc = {
|
|
15788
15817
|
__proto__: null,
|
|
15789
|
-
__initialize__: __initialize__$
|
|
15818
|
+
__initialize__: __initialize__$g
|
|
15790
15819
|
};
|
|
15791
15820
|
|
|
15792
15821
|
// TODO should avoid many promises somehow
|
|
@@ -15816,22 +15845,22 @@ const getKeyBindings = async () => {
|
|
|
15816
15845
|
return keyBindings
|
|
15817
15846
|
};
|
|
15818
15847
|
|
|
15819
|
-
const __initialize__$
|
|
15848
|
+
const __initialize__$f = () => {
|
|
15820
15849
|
register$2(8961, getKeyBindings);
|
|
15821
15850
|
};
|
|
15822
15851
|
|
|
15823
15852
|
var KeyBindingsInitial_ipc = {
|
|
15824
15853
|
__proto__: null,
|
|
15825
|
-
__initialize__: __initialize__$
|
|
15854
|
+
__initialize__: __initialize__$f
|
|
15826
15855
|
};
|
|
15827
15856
|
|
|
15828
|
-
const __initialize__$
|
|
15857
|
+
const __initialize__$e = () => {
|
|
15829
15858
|
register$2(6661, hydrate$4);
|
|
15830
15859
|
};
|
|
15831
15860
|
|
|
15832
15861
|
var SaveState_ipc = {
|
|
15833
15862
|
__proto__: null,
|
|
15834
|
-
__initialize__: __initialize__$
|
|
15863
|
+
__initialize__: __initialize__$e
|
|
15835
15864
|
};
|
|
15836
15865
|
|
|
15837
15866
|
const acceptInput$1 = async (text) => {
|
|
@@ -15974,23 +16003,23 @@ var ViewletSourceControl = {
|
|
|
15974
16003
|
render: render$a
|
|
15975
16004
|
};
|
|
15976
16005
|
|
|
15977
|
-
const __initialize__$
|
|
16006
|
+
const __initialize__$d = () => {
|
|
15978
16007
|
register$2(6532, wrapViewletCommand('Source Control',acceptInput));
|
|
15979
16008
|
};
|
|
15980
16009
|
|
|
15981
16010
|
var ViewletSourceControl_ipc = {
|
|
15982
16011
|
__proto__: null,
|
|
15983
|
-
__initialize__: __initialize__$
|
|
16012
|
+
__initialize__: __initialize__$d
|
|
15984
16013
|
};
|
|
15985
16014
|
|
|
15986
|
-
const __initialize__$
|
|
16015
|
+
const __initialize__$c = () => {
|
|
15987
16016
|
register$2(5783, hydrate$3);
|
|
15988
16017
|
register$2(5784, uninstall$1);
|
|
15989
16018
|
};
|
|
15990
16019
|
|
|
15991
16020
|
var ServiceWorker_ipc = {
|
|
15992
16021
|
__proto__: null,
|
|
15993
|
-
__initialize__: __initialize__$
|
|
16022
|
+
__initialize__: __initialize__$c
|
|
15994
16023
|
};
|
|
15995
16024
|
|
|
15996
16025
|
const state$3 = {
|
|
@@ -16043,14 +16072,14 @@ const hide = async () => {
|
|
|
16043
16072
|
|
|
16044
16073
|
// TODO only use ImagePreview module via ipc -> that way is is always lazyloaded
|
|
16045
16074
|
|
|
16046
|
-
const __initialize__$
|
|
16075
|
+
const __initialize__$b = () => {
|
|
16047
16076
|
register$2(9081, show);
|
|
16048
16077
|
register$2(9082, hide);
|
|
16049
16078
|
};
|
|
16050
16079
|
|
|
16051
16080
|
var ImagePreview_ipc = {
|
|
16052
16081
|
__proto__: null,
|
|
16053
|
-
__initialize__: __initialize__$
|
|
16082
|
+
__initialize__: __initialize__$b
|
|
16054
16083
|
};
|
|
16055
16084
|
|
|
16056
16085
|
/**
|
|
@@ -16161,13 +16190,13 @@ const decode = (encoded) => {
|
|
|
16161
16190
|
return decoded
|
|
16162
16191
|
};
|
|
16163
16192
|
|
|
16164
|
-
const __initialize__$
|
|
16193
|
+
const __initialize__$a = () => {
|
|
16165
16194
|
register$2(7890, decode);
|
|
16166
16195
|
};
|
|
16167
16196
|
|
|
16168
16197
|
var Base64_ipc = {
|
|
16169
16198
|
__proto__: null,
|
|
16170
|
-
__initialize__: __initialize__$
|
|
16199
|
+
__initialize__: __initialize__$a
|
|
16171
16200
|
};
|
|
16172
16201
|
|
|
16173
16202
|
function createBlob(parts, properties) {
|
|
@@ -16209,22 +16238,22 @@ const base64StringToBlob = (base64String) => {
|
|
|
16209
16238
|
return base64StringToBlob$1(base64String)
|
|
16210
16239
|
};
|
|
16211
16240
|
|
|
16212
|
-
const __initialize__$
|
|
16241
|
+
const __initialize__$9 = () => {
|
|
16213
16242
|
register$2(4356, base64StringToBlob);
|
|
16214
16243
|
};
|
|
16215
16244
|
|
|
16216
16245
|
var Blob_ipc = {
|
|
16217
16246
|
__proto__: null,
|
|
16218
|
-
__initialize__: __initialize__$
|
|
16247
|
+
__initialize__: __initialize__$9
|
|
16219
16248
|
};
|
|
16220
16249
|
|
|
16221
|
-
const __initialize__$
|
|
16250
|
+
const __initialize__$8 = () => {
|
|
16222
16251
|
register$2(1370, openNativeFolder);
|
|
16223
16252
|
};
|
|
16224
16253
|
|
|
16225
16254
|
var Open_ipc = {
|
|
16226
16255
|
__proto__: null,
|
|
16227
|
-
__initialize__: __initialize__$
|
|
16256
|
+
__initialize__: __initialize__$8
|
|
16228
16257
|
};
|
|
16229
16258
|
|
|
16230
16259
|
const playBell = async () => {
|
|
@@ -16232,13 +16261,13 @@ const playBell = async () => {
|
|
|
16232
16261
|
await invoke$1(/* Audio.play */ 3211, /* src */ src);
|
|
16233
16262
|
};
|
|
16234
16263
|
|
|
16235
|
-
const __initialize__$
|
|
16264
|
+
const __initialize__$7 = () => {
|
|
16236
16265
|
register$2(4444, playBell);
|
|
16237
16266
|
};
|
|
16238
16267
|
|
|
16239
16268
|
var Audio_ipc = {
|
|
16240
16269
|
__proto__: null,
|
|
16241
|
-
__initialize__: __initialize__$
|
|
16270
|
+
__initialize__: __initialize__$7
|
|
16242
16271
|
};
|
|
16243
16272
|
|
|
16244
16273
|
const create$g = (id, uri, left, top, width, height) => {
|
|
@@ -16408,14 +16437,14 @@ var ViewletSideBar = {
|
|
|
16408
16437
|
resize: resize$5
|
|
16409
16438
|
};
|
|
16410
16439
|
|
|
16411
|
-
const __initialize__$
|
|
16440
|
+
const __initialize__$6 = () => {
|
|
16412
16441
|
register$2(553, wrapViewletCommand('SideBar', showOrHideViewlet));
|
|
16413
16442
|
register$2(554, wrapViewletCommand('SideBar', openViewlet));
|
|
16414
16443
|
};
|
|
16415
16444
|
|
|
16416
16445
|
var ViewletSideBar_ipc = {
|
|
16417
16446
|
__proto__: null,
|
|
16418
|
-
__initialize__: __initialize__$
|
|
16447
|
+
__initialize__: __initialize__$6
|
|
16419
16448
|
};
|
|
16420
16449
|
|
|
16421
16450
|
const state$2 = Object.create(null);
|
|
@@ -16616,22 +16645,22 @@ var ViewletStatusBar = {
|
|
|
16616
16645
|
render: render$9
|
|
16617
16646
|
};
|
|
16618
16647
|
|
|
16619
|
-
const __initialize__$
|
|
16648
|
+
const __initialize__$5 = () => {
|
|
16620
16649
|
register$2(2260, wrapViewletCommand('StatusBar', updateStatusBarItems));
|
|
16621
16650
|
};
|
|
16622
16651
|
|
|
16623
16652
|
var ViewletStatusBar_ipc = {
|
|
16624
16653
|
__proto__: null,
|
|
16625
|
-
__initialize__: __initialize__$
|
|
16654
|
+
__initialize__: __initialize__$5
|
|
16626
16655
|
};
|
|
16627
16656
|
|
|
16628
|
-
const __initialize__$
|
|
16657
|
+
const __initialize__$4 = () => {
|
|
16629
16658
|
register$2(3444, execute);
|
|
16630
16659
|
};
|
|
16631
16660
|
|
|
16632
16661
|
var Listener_ipc = {
|
|
16633
16662
|
__proto__: null,
|
|
16634
|
-
__initialize__: __initialize__$
|
|
16663
|
+
__initialize__: __initialize__$4
|
|
16635
16664
|
};
|
|
16636
16665
|
|
|
16637
16666
|
const name$g = 'Search';
|
|
@@ -16792,14 +16821,14 @@ var ViewletSearch = {
|
|
|
16792
16821
|
render: render$8
|
|
16793
16822
|
};
|
|
16794
16823
|
|
|
16795
|
-
const __initialize__$
|
|
16824
|
+
const __initialize__$3 = () => {
|
|
16796
16825
|
register$2(9444, wrapViewletCommand('Search', handleInput));
|
|
16797
16826
|
register$2(9445, wrapViewletCommand('Search', handleClick));
|
|
16798
16827
|
};
|
|
16799
16828
|
|
|
16800
16829
|
var ViewletSearch_ipc = {
|
|
16801
16830
|
__proto__: null,
|
|
16802
|
-
__initialize__: __initialize__$
|
|
16831
|
+
__initialize__: __initialize__$3
|
|
16803
16832
|
};
|
|
16804
16833
|
|
|
16805
16834
|
const executeCompletionProvider = async (editor, offset) => {
|
|
@@ -16967,7 +16996,7 @@ const selectIndex$1 = (state, index) => {
|
|
|
16967
16996
|
return select(state, completionItem)
|
|
16968
16997
|
};
|
|
16969
16998
|
|
|
16970
|
-
const focusIndex$
|
|
16999
|
+
const focusIndex$2 = (state, index) => {
|
|
16971
17000
|
return {
|
|
16972
17001
|
...state,
|
|
16973
17002
|
focusedIndex: index,
|
|
@@ -16975,25 +17004,25 @@ const focusIndex$1 = (state, index) => {
|
|
|
16975
17004
|
};
|
|
16976
17005
|
|
|
16977
17006
|
const focusFirst$1 = (state) => {
|
|
16978
|
-
return focusIndex$
|
|
17007
|
+
return focusIndex$2(state, 0)
|
|
16979
17008
|
};
|
|
16980
17009
|
|
|
16981
17010
|
const focusLast$1 = (state) => {
|
|
16982
|
-
return focusIndex$
|
|
17011
|
+
return focusIndex$2(state, state.completionItems.length - 1)
|
|
16983
17012
|
};
|
|
16984
17013
|
|
|
16985
17014
|
const focusPrevious$1 = (state) => {
|
|
16986
17015
|
if (state.focusedIndex === 0) {
|
|
16987
17016
|
return focusLast$1(state)
|
|
16988
17017
|
}
|
|
16989
|
-
return focusIndex$
|
|
17018
|
+
return focusIndex$2(state, state.focusedIndex - 1)
|
|
16990
17019
|
};
|
|
16991
17020
|
|
|
16992
17021
|
const focusNext$1 = (state) => {
|
|
16993
17022
|
if (state.focusedIndex === state.completionItems.length - 1) {
|
|
16994
17023
|
return focusFirst$1(state)
|
|
16995
17024
|
}
|
|
16996
|
-
return focusIndex$
|
|
17025
|
+
return focusIndex$2(state, state.focusedIndex + 1)
|
|
16997
17026
|
};
|
|
16998
17027
|
|
|
16999
17028
|
const hasFunctionalRender$7 = true;
|
|
@@ -17038,7 +17067,7 @@ var ViewletEditorCompletion = {
|
|
|
17038
17067
|
handleSelectionChange: handleSelectionChange,
|
|
17039
17068
|
advance: advance,
|
|
17040
17069
|
selectIndex: selectIndex$1,
|
|
17041
|
-
focusIndex: focusIndex$
|
|
17070
|
+
focusIndex: focusIndex$2,
|
|
17042
17071
|
focusFirst: focusFirst$1,
|
|
17043
17072
|
focusLast: focusLast$1,
|
|
17044
17073
|
focusPrevious: focusPrevious$1,
|
|
@@ -17048,7 +17077,7 @@ var ViewletEditorCompletion = {
|
|
|
17048
17077
|
dispose: dispose$c
|
|
17049
17078
|
};
|
|
17050
17079
|
|
|
17051
|
-
const __initialize__$
|
|
17080
|
+
const __initialize__$2 = () => {
|
|
17052
17081
|
register$2(981, wrapViewletCommand('EditorCompletion', dispose$c));
|
|
17053
17082
|
register$2(982, wrapViewletCommand('EditorCompletion', selectIndex$1));
|
|
17054
17083
|
register$2(983, wrapViewletCommand('EditorCompletion', focusFirst$1));
|
|
@@ -17060,7 +17089,7 @@ const __initialize__$1 = () => {
|
|
|
17060
17089
|
|
|
17061
17090
|
var ViewletEditorCompletion_ipc = {
|
|
17062
17091
|
__proto__: null,
|
|
17063
|
-
__initialize__: __initialize__$
|
|
17092
|
+
__initialize__: __initialize__$2
|
|
17064
17093
|
};
|
|
17065
17094
|
|
|
17066
17095
|
const name$f = 'Locations';
|
|
@@ -17256,7 +17285,7 @@ const render$6 = (oldState, newState) => {
|
|
|
17256
17285
|
return changes
|
|
17257
17286
|
};
|
|
17258
17287
|
|
|
17259
|
-
const focusIndex = (state, index) => {
|
|
17288
|
+
const focusIndex$1 = (state, index) => {
|
|
17260
17289
|
return {
|
|
17261
17290
|
...state,
|
|
17262
17291
|
focusedIndex: index,
|
|
@@ -17267,28 +17296,28 @@ const focusFirst = (state) => {
|
|
|
17267
17296
|
if (state.displayReferences.length === 0) {
|
|
17268
17297
|
return state
|
|
17269
17298
|
}
|
|
17270
|
-
return focusIndex(state, 0)
|
|
17299
|
+
return focusIndex$1(state, 0)
|
|
17271
17300
|
};
|
|
17272
17301
|
|
|
17273
17302
|
const focusPrevious = (state) => {
|
|
17274
17303
|
if (state.focusedIndex === 0 || state.focusedIndex === -1) {
|
|
17275
17304
|
return state
|
|
17276
17305
|
}
|
|
17277
|
-
return focusIndex(state, state.focusedIndex - 1)
|
|
17306
|
+
return focusIndex$1(state, state.focusedIndex - 1)
|
|
17278
17307
|
};
|
|
17279
17308
|
|
|
17280
17309
|
const focusNext = (state) => {
|
|
17281
17310
|
if (state.focusedIndex === state.displayReferences.length - 1) {
|
|
17282
17311
|
return state
|
|
17283
17312
|
}
|
|
17284
|
-
return focusIndex(state, state.focusedIndex + 1)
|
|
17313
|
+
return focusIndex$1(state, state.focusedIndex + 1)
|
|
17285
17314
|
};
|
|
17286
17315
|
|
|
17287
17316
|
const focusLast = (state) => {
|
|
17288
17317
|
if (state.focusedIndex === state.displayReferences.length - 1) {
|
|
17289
17318
|
return state
|
|
17290
17319
|
}
|
|
17291
|
-
return focusIndex(state, state.displayReferences.length - 1)
|
|
17320
|
+
return focusIndex$1(state, state.displayReferences.length - 1)
|
|
17292
17321
|
};
|
|
17293
17322
|
|
|
17294
17323
|
const selectCurrent = (state) => {
|
|
@@ -17308,7 +17337,7 @@ var ViewletLocations = {
|
|
|
17308
17337
|
selectIndex: selectIndex,
|
|
17309
17338
|
hasFunctionalRender: hasFunctionalRender$6,
|
|
17310
17339
|
render: render$6,
|
|
17311
|
-
focusIndex: focusIndex,
|
|
17340
|
+
focusIndex: focusIndex$1,
|
|
17312
17341
|
focusFirst: focusFirst,
|
|
17313
17342
|
focusPrevious: focusPrevious,
|
|
17314
17343
|
focusNext: focusNext,
|
|
@@ -17316,37 +17345,61 @@ var ViewletLocations = {
|
|
|
17316
17345
|
selectCurrent: selectCurrent
|
|
17317
17346
|
};
|
|
17318
17347
|
|
|
17319
|
-
const __initialize__ = () => {
|
|
17348
|
+
const __initialize__$1 = () => {
|
|
17320
17349
|
register$2(7100, wrapViewletCommand('Locations', selectIndex));
|
|
17321
17350
|
register$2(7101, wrapViewletCommand('Locations', focusFirst));
|
|
17322
17351
|
register$2(7102, wrapViewletCommand('Locations', focusLast));
|
|
17323
17352
|
register$2(7103, wrapViewletCommand('Locations', focusNext));
|
|
17324
17353
|
register$2(7104, wrapViewletCommand('Locations', focusPrevious));
|
|
17325
17354
|
register$2(7105, wrapViewletCommand('Locations', selectCurrent));
|
|
17326
|
-
register$2(7106, wrapViewletCommand('Locations', focusIndex));
|
|
17355
|
+
register$2(7106, wrapViewletCommand('Locations', focusIndex$1));
|
|
17327
17356
|
};
|
|
17328
17357
|
|
|
17329
17358
|
var ViewletLocations_ipc = {
|
|
17330
17359
|
__proto__: null,
|
|
17331
|
-
__initialize__: __initialize__
|
|
17360
|
+
__initialize__: __initialize__$1
|
|
17332
17361
|
};
|
|
17333
17362
|
|
|
17334
|
-
const name$e = '
|
|
17363
|
+
const name$e = 'Problems';
|
|
17335
17364
|
|
|
17336
|
-
const create$b = (
|
|
17365
|
+
const create$b = () => {
|
|
17337
17366
|
return {
|
|
17338
|
-
|
|
17367
|
+
problems: [],
|
|
17339
17368
|
disposed: false,
|
|
17369
|
+
focusedIndex: -2,
|
|
17340
17370
|
}
|
|
17341
17371
|
};
|
|
17342
17372
|
|
|
17373
|
+
const toProblem = (diagnostic) => {
|
|
17374
|
+
return diagnostic.message
|
|
17375
|
+
};
|
|
17376
|
+
|
|
17343
17377
|
const loadContent$b = async (state) => {
|
|
17344
|
-
|
|
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
|
+
}
|
|
17345
17391
|
};
|
|
17346
17392
|
|
|
17347
17393
|
const contentLoaded$b = async (state) => {};
|
|
17348
17394
|
|
|
17349
|
-
|
|
17395
|
+
const focusIndex = (state, index) => {
|
|
17396
|
+
console.log({ index });
|
|
17397
|
+
return {
|
|
17398
|
+
...state,
|
|
17399
|
+
focusedIndex: index,
|
|
17400
|
+
}
|
|
17401
|
+
};
|
|
17402
|
+
|
|
17350
17403
|
const dispose$a = (state) => {
|
|
17351
17404
|
return {
|
|
17352
17405
|
...state,
|
|
@@ -17354,30 +17407,58 @@ const dispose$a = (state) => {
|
|
|
17354
17407
|
}
|
|
17355
17408
|
};
|
|
17356
17409
|
|
|
17357
|
-
const
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
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
|
+
]);
|
|
17364
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
|
|
17365
17433
|
};
|
|
17366
17434
|
|
|
17367
|
-
var
|
|
17435
|
+
var ViewletProblems = {
|
|
17368
17436
|
__proto__: null,
|
|
17369
17437
|
name: name$e,
|
|
17370
17438
|
create: create$b,
|
|
17371
17439
|
loadContent: loadContent$b,
|
|
17372
17440
|
contentLoaded: contentLoaded$b,
|
|
17441
|
+
focusIndex: focusIndex,
|
|
17373
17442
|
dispose: dispose$a,
|
|
17374
|
-
|
|
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__
|
|
17375
17455
|
};
|
|
17376
17456
|
|
|
17377
|
-
const name$d = '
|
|
17457
|
+
const name$d = 'RunAndDebug';
|
|
17378
17458
|
|
|
17379
|
-
const create$a = () => {
|
|
17459
|
+
const create$a = (id) => {
|
|
17380
17460
|
return {
|
|
17461
|
+
id,
|
|
17381
17462
|
disposed: false,
|
|
17382
17463
|
}
|
|
17383
17464
|
};
|
|
@@ -17388,6 +17469,7 @@ const loadContent$a = async (state) => {
|
|
|
17388
17469
|
|
|
17389
17470
|
const contentLoaded$a = async (state) => {};
|
|
17390
17471
|
|
|
17472
|
+
// TODO make sure dispose is actually called
|
|
17391
17473
|
const dispose$9 = (state) => {
|
|
17392
17474
|
return {
|
|
17393
17475
|
...state,
|
|
@@ -17395,13 +17477,54 @@ const dispose$9 = (state) => {
|
|
|
17395
17477
|
}
|
|
17396
17478
|
};
|
|
17397
17479
|
|
|
17398
|
-
|
|
17480
|
+
const resize$2 = (state, dimensions) => {
|
|
17481
|
+
return {
|
|
17482
|
+
newState: {
|
|
17483
|
+
...state,
|
|
17484
|
+
...dimensions,
|
|
17485
|
+
},
|
|
17486
|
+
commands: [],
|
|
17487
|
+
}
|
|
17488
|
+
};
|
|
17489
|
+
|
|
17490
|
+
var ViewletRunAndDebug = {
|
|
17399
17491
|
__proto__: null,
|
|
17400
17492
|
name: name$d,
|
|
17401
17493
|
create: create$a,
|
|
17402
17494
|
loadContent: loadContent$a,
|
|
17403
17495
|
contentLoaded: contentLoaded$a,
|
|
17404
|
-
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
|
|
17405
17528
|
};
|
|
17406
17529
|
|
|
17407
17530
|
const getOutputChannels = () => {
|
|
@@ -17413,9 +17536,9 @@ const getOutputChannels = () => {
|
|
|
17413
17536
|
)
|
|
17414
17537
|
};
|
|
17415
17538
|
|
|
17416
|
-
const name$
|
|
17539
|
+
const name$b = 'Output';
|
|
17417
17540
|
|
|
17418
|
-
const create$
|
|
17541
|
+
const create$8 = () => {
|
|
17419
17542
|
return {
|
|
17420
17543
|
selectedIndex: -1,
|
|
17421
17544
|
// TODO get list of outputChannels from extension host
|
|
@@ -17431,7 +17554,7 @@ const toExtensionHostOption = (outputChannel) => {
|
|
|
17431
17554
|
}
|
|
17432
17555
|
};
|
|
17433
17556
|
|
|
17434
|
-
const loadContent$
|
|
17557
|
+
const loadContent$8 = async (state) => {
|
|
17435
17558
|
// TODO get list of outputChannels from extension host
|
|
17436
17559
|
|
|
17437
17560
|
const channels = await getOutputChannels();
|
|
@@ -17456,7 +17579,7 @@ const loadContent$9 = async (state) => {
|
|
|
17456
17579
|
}
|
|
17457
17580
|
};
|
|
17458
17581
|
|
|
17459
|
-
const contentLoaded$
|
|
17582
|
+
const contentLoaded$8 = async (state) => {
|
|
17460
17583
|
await invoke$1(
|
|
17461
17584
|
/* Viewlet.invoke */ 3024,
|
|
17462
17585
|
/* id */ 'Output',
|
|
@@ -17493,7 +17616,7 @@ const handleData = async (state, data) => {
|
|
|
17493
17616
|
);
|
|
17494
17617
|
};
|
|
17495
17618
|
|
|
17496
|
-
const dispose$
|
|
17619
|
+
const dispose$7 = async (state) => {
|
|
17497
17620
|
state.disposed = true;
|
|
17498
17621
|
// TODO close output channel in shared process
|
|
17499
17622
|
await invoke$2(
|
|
@@ -17522,81 +17645,17 @@ const handleError = (state, error) => {
|
|
|
17522
17645
|
};
|
|
17523
17646
|
|
|
17524
17647
|
var ViewletOutput = {
|
|
17525
|
-
__proto__: null,
|
|
17526
|
-
name: name$c,
|
|
17527
|
-
create: create$9,
|
|
17528
|
-
loadContent: loadContent$9,
|
|
17529
|
-
contentLoaded: contentLoaded$9,
|
|
17530
|
-
setOutputChannel: setOutputChannel,
|
|
17531
|
-
handleData: handleData,
|
|
17532
|
-
dispose: dispose$8,
|
|
17533
|
-
openFindWidget: openFindWidget,
|
|
17534
|
-
closeFindWidget: closeFindWidget,
|
|
17535
|
-
handleError: handleError
|
|
17536
|
-
};
|
|
17537
|
-
|
|
17538
|
-
const name$b = 'Problems';
|
|
17539
|
-
|
|
17540
|
-
const create$8 = () => {
|
|
17541
|
-
return {
|
|
17542
|
-
problems: [],
|
|
17543
|
-
disposed: false,
|
|
17544
|
-
}
|
|
17545
|
-
};
|
|
17546
|
-
|
|
17547
|
-
const toProblem = (diagnostic) => {
|
|
17548
|
-
return diagnostic.message
|
|
17549
|
-
};
|
|
17550
|
-
|
|
17551
|
-
const loadContent$8 = async (state) => {
|
|
17552
|
-
const instance = state$p.instances['EditorText'];
|
|
17553
|
-
if (!instance) {
|
|
17554
|
-
return state
|
|
17555
|
-
}
|
|
17556
|
-
const editor = instance.state;
|
|
17557
|
-
const diagnostics = await executeDiagnosticProvider(
|
|
17558
|
-
editor
|
|
17559
|
-
);
|
|
17560
|
-
const problems = diagnostics.map(toProblem);
|
|
17561
|
-
return {
|
|
17562
|
-
...state,
|
|
17563
|
-
problems,
|
|
17564
|
-
}
|
|
17565
|
-
};
|
|
17566
|
-
|
|
17567
|
-
const contentLoaded$8 = async (state) => {};
|
|
17568
|
-
|
|
17569
|
-
const dispose$7 = (state) => {
|
|
17570
|
-
return {
|
|
17571
|
-
...state,
|
|
17572
|
-
disposed: true,
|
|
17573
|
-
}
|
|
17574
|
-
};
|
|
17575
|
-
|
|
17576
|
-
const hasFunctionalRender$5 = true;
|
|
17577
|
-
|
|
17578
|
-
const render$5 = (oldState, newState) => {
|
|
17579
|
-
const changes = [];
|
|
17580
|
-
if (oldState.problems !== newState.problems) {
|
|
17581
|
-
changes.push([
|
|
17582
|
-
/* Viewlet.invoke */ 3024,
|
|
17583
|
-
/* id */ 'Problems',
|
|
17584
|
-
/* method */ 'setProblems',
|
|
17585
|
-
/* problems */ newState.problems,
|
|
17586
|
-
]);
|
|
17587
|
-
}
|
|
17588
|
-
return changes
|
|
17589
|
-
};
|
|
17590
|
-
|
|
17591
|
-
var ViewletProblems = {
|
|
17592
17648
|
__proto__: null,
|
|
17593
17649
|
name: name$b,
|
|
17594
17650
|
create: create$8,
|
|
17595
17651
|
loadContent: loadContent$8,
|
|
17596
17652
|
contentLoaded: contentLoaded$8,
|
|
17653
|
+
setOutputChannel: setOutputChannel,
|
|
17654
|
+
handleData: handleData,
|
|
17597
17655
|
dispose: dispose$7,
|
|
17598
|
-
|
|
17599
|
-
|
|
17656
|
+
openFindWidget: openFindWidget,
|
|
17657
|
+
closeFindWidget: closeFindWidget,
|
|
17658
|
+
handleError: handleError
|
|
17600
17659
|
};
|
|
17601
17660
|
|
|
17602
17661
|
const create$7 = (id) => {
|
|
@@ -17685,7 +17744,7 @@ const getContent = async (uri) => {
|
|
|
17685
17744
|
|
|
17686
17745
|
// TODO how to connect this function with tokenizer?
|
|
17687
17746
|
const handleTokenizeChange = () => {
|
|
17688
|
-
const instances = state$
|
|
17747
|
+
const instances = state$m.instances;
|
|
17689
17748
|
const instance = instances.EditorText;
|
|
17690
17749
|
if (!instance) {
|
|
17691
17750
|
console.log('no text editor');
|
|
@@ -17781,7 +17840,7 @@ const contentLoadedEffects = async (state) => {
|
|
|
17781
17840
|
};
|
|
17782
17841
|
|
|
17783
17842
|
const handleLanguagesChanged = async () => {
|
|
17784
|
-
const instances = state$
|
|
17843
|
+
const instances = state$m.instances;
|
|
17785
17844
|
const instance = instances.EditorText;
|
|
17786
17845
|
if (!instance) {
|
|
17787
17846
|
console.log('no text editor');
|
|
@@ -18059,7 +18118,7 @@ const executeReferenceProvider = async (editor, offset) => {
|
|
|
18059
18118
|
};
|
|
18060
18119
|
|
|
18061
18120
|
const getReferences = async () => {
|
|
18062
|
-
const editor = state$
|
|
18121
|
+
const editor = state$m.instances['EditorText'].state;
|
|
18063
18122
|
const offset = offsetAt(editor, editor.cursor);
|
|
18064
18123
|
const references = await executeReferenceProvider(
|
|
18065
18124
|
editor,
|
|
@@ -18080,7 +18139,7 @@ const loadContent$1 = async (state) => {
|
|
|
18080
18139
|
|
|
18081
18140
|
// TODO side effect is not good here, find a way to call ViewletLocations
|
|
18082
18141
|
const contentLoaded$1 = (state) => {
|
|
18083
|
-
state$
|
|
18142
|
+
state$m.instances['Locations'] = {
|
|
18084
18143
|
factory: ViewletLocations,
|
|
18085
18144
|
state,
|
|
18086
18145
|
};
|
|
@@ -18119,7 +18178,7 @@ const name$5 = 'Implementations';
|
|
|
18119
18178
|
// TODO speed up this function by 130% by not running activation event (onReferences) again and again
|
|
18120
18179
|
// e.g. (21ms activation event, 11ms getReferences) => (11ms getReferences)
|
|
18121
18180
|
const getImplementations = async () => {
|
|
18122
|
-
const editor = state$
|
|
18181
|
+
const editor = state$m.instances['EditorText'].state;
|
|
18123
18182
|
const offset = offsetAt(editor, editor.cursor);
|
|
18124
18183
|
const implementations =
|
|
18125
18184
|
await executeImplementationProvider(
|
|
@@ -18137,7 +18196,7 @@ const loadContent = async (state) => {
|
|
|
18137
18196
|
};
|
|
18138
18197
|
|
|
18139
18198
|
const contentLoaded = (state) => {
|
|
18140
|
-
state$
|
|
18199
|
+
state$m.instances['Locations'] = {
|
|
18141
18200
|
factory: ViewletLocations,
|
|
18142
18201
|
state,
|
|
18143
18202
|
};
|
|
@@ -18170,7 +18229,7 @@ const toContextMenuItem$1 = (activityBarItem) => {
|
|
|
18170
18229
|
|
|
18171
18230
|
const getMenuEntries$g = async () => {
|
|
18172
18231
|
const activityBarItems =
|
|
18173
|
-
state$
|
|
18232
|
+
state$m.instances['ActivityBar'].state.activityBarItems;
|
|
18174
18233
|
return [
|
|
18175
18234
|
...activityBarItems.map(toContextMenuItem$1),
|
|
18176
18235
|
{
|
|
@@ -19451,7 +19510,7 @@ const getNoResults = () => {
|
|
|
19451
19510
|
};
|
|
19452
19511
|
|
|
19453
19512
|
const getPicks = async (searchValue) => {
|
|
19454
|
-
const workspace = state$
|
|
19513
|
+
const workspace = state$w.workspacePath;
|
|
19455
19514
|
if (!workspace) {
|
|
19456
19515
|
return []
|
|
19457
19516
|
}
|
|
@@ -19461,7 +19520,7 @@ const getPicks = async (searchValue) => {
|
|
|
19461
19520
|
};
|
|
19462
19521
|
|
|
19463
19522
|
const selectPick = async (item) => {
|
|
19464
|
-
const workspace = state$
|
|
19523
|
+
const workspace = state$w.workspacePath;
|
|
19465
19524
|
const absolutePath = `${workspace}/${item.label}`;
|
|
19466
19525
|
await openUri(absolutePath);
|
|
19467
19526
|
return {
|