@lvce-editor/shared-process 0.25.10 → 0.25.11
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/package.json +3 -3
- package/src/parts/AddAccurateMemoryUsage/AddAccurateMemoryUsage.js +7 -8
- package/src/parts/AddSemiColon/AddSemiColon.js +3 -4
- package/src/parts/AppWindow/AppWindow.js +14 -16
- package/src/parts/ApplyEdit/ApplyEdit.js +6 -7
- package/src/parts/Assert/Assert.js +1 -1
- package/src/parts/AttachDebugger/AttachDebugger.ipc.js +4 -6
- package/src/parts/AttachDebugger/AttachDebugger.js +4 -5
- package/src/parts/Authority/Authority.js +1 -1
- package/src/parts/AutoUpdateType/AutoUpdateType.js +4 -4
- package/src/parts/AutoUpdater/AutoUpdater.ipc.js +5 -7
- package/src/parts/AutoUpdater/AutoUpdater.js +31 -31
- package/src/parts/AutoUpdaterAppImage/AutoUpdaterAppImage.ipc.js +5 -7
- package/src/parts/AutoUpdaterAppImage/AutoUpdaterAppImage.js +49 -50
- package/src/parts/AutoUpdaterWindowsNsis/AutoUpdaterWindowsNsis.ipc.js +5 -7
- package/src/parts/AutoUpdaterWindowsNsis/AutoUpdaterWindowsNsis.js +49 -49
- package/src/parts/BulkReplacement/BulkReplacement.ipc.js +4 -6
- package/src/parts/BulkReplacement/BulkReplacement.js +16 -16
- package/src/parts/BulkReplacementContent/BulkReplacementContent.js +26 -27
- package/src/parts/ByteSize/ByteSize.js +4 -4
- package/src/parts/Callback/Callback.js +1 -1
- package/src/parts/Character/Character.js +12 -12
- package/src/parts/ChildProcess/ChildProcess.js +71 -86
- package/src/parts/Clamp/Clamp.js +2 -2
- package/src/parts/Cli/Cli.js +12 -12
- package/src/parts/CliCommandType/CliCommandType.js +11 -11
- package/src/parts/CliHelp/CliHelp.js +8 -9
- package/src/parts/CliInstall/CliInstall.js +24 -24
- package/src/parts/CliLink/CliLink.js +17 -17
- package/src/parts/CliList/CliList.js +15 -18
- package/src/parts/CliModule/CliModule.js +26 -27
- package/src/parts/CliStatus/CliStatus.js +4 -5
- package/src/parts/CliUnlink/CliUnlink.js +17 -17
- package/src/parts/CliVersion/CliVersion.js +7 -8
- package/src/parts/ClipBoard/ClipBoard.ipc.js +5 -7
- package/src/parts/ClipBoard/ClipBoard.js +18 -21
- package/src/parts/ClipBoard/ClipBoardGnome.js +49 -54
- package/src/parts/ClipBoard/ClipBoardNoop.js +10 -12
- package/src/parts/ClipBoard/ClipBoardWindows.js +17 -18
- package/src/parts/CollectTextSearchStdout/CollectTextSearchStdout.js +83 -93
- package/src/parts/ColorTheme/ColorTheme.js +14 -17
- package/src/parts/Command/Command.js +61 -68
- package/src/parts/CommandNotFoundError/CommandNotFoundError.js +7 -8
- package/src/parts/CompareVersion/CompareVersion.js +2 -2
- package/src/parts/ContentSecurityPolicy/ContentSecurityPolicy.ipc.js +4 -6
- package/src/parts/ContentSecurityPolicy/ContentSecurityPolicy.js +6 -7
- package/src/parts/ContentSecurityPolicyDocument/ContentSecurityPolicyDocument.js +9 -10
- package/src/parts/ContentSecurityPolicyState/ContentSecurityPolicyState.js +5 -7
- package/src/parts/ContentSecurityPolicySyntaxHighlightingWorker/ContentSecurityPolicySyntaxHighlightingWorker.js +2 -3
- package/src/parts/ContentSecurityPolicyTerminalWorker/ContentSecurityPolicyTerminalWorker.js +2 -3
- package/src/parts/ContentSecurityPolicyTestWorker/ContentSecurityPolicyTestWorker.js +2 -3
- package/src/parts/ContentSecurityPolicyWorker/ContentSecurityPolicyWorker.js +6 -7
- package/src/parts/CpuProfile/CpuProfile.js +22 -25
- package/src/parts/Crash/Crash.ipc.js +5 -7
- package/src/parts/Crash/Crash.js +8 -11
- package/src/parts/CreatePidMap/CreatePidMap.js +4 -5
- package/src/parts/CreateTestOverview/CreateTestOverview.js +19 -22
- package/src/parts/CrossOriginEmbedderPolicy/CrossOriginEmbedderPolicy.js +1 -1
- package/src/parts/CrossOriginOpenerPolicy/CrossOriginOpenerPolicy.js +2 -2
- package/src/parts/Debug/Debug.js +2 -3
- package/src/parts/DefaultUrl/DefaultUrl.js +3 -4
- package/src/parts/Desktop/Desktop.js +18 -19
- package/src/parts/DesktopCapturer/DesktopCapturer.ipc.js +4 -6
- package/src/parts/DesktopCapturer/DesktopCapturer.js +3 -4
- package/src/parts/DesktopType/DesktopType.js +3 -3
- package/src/parts/DestroySocket/DestroySocket.js +5 -4
- package/src/parts/Developer/Developer.ipc.js +12 -14
- package/src/parts/Developer/Developer.js +33 -40
- package/src/parts/DirentType/DirentType.js +12 -12
- package/src/parts/Download/Download.ipc.js +4 -6
- package/src/parts/Download/Download.js +20 -19
- package/src/parts/DownloadAndExtract/DownloadAndExtract.js +16 -20
- package/src/parts/ElectronApplicationMenu/ElectronApplicationMenu.ipc.js +5 -7
- package/src/parts/ElectronApplicationMenu/ElectronApplicationMenu.js +20 -23
- package/src/parts/ElectronBrowserView/ElectronBrowserView.ipc.js +5 -7
- package/src/parts/ElectronBrowserView/ElectronBrowserView.js +18 -21
- package/src/parts/ElectronBrowserViewFunctions/ElectronBrowserViewFunctions.ipc.js +17 -19
- package/src/parts/ElectronBrowserViewFunctions/ElectronBrowserViewFunctions.js +26 -41
- package/src/parts/ElectronBrowserViewIpcState/ElectronBrowserViewIpcState.js +10 -14
- package/src/parts/ElectronBrowserViewQuickPick/ElectronBrowserViewQuickPick.ipc.js +5 -7
- package/src/parts/ElectronBrowserViewQuickPick/ElectronBrowserViewQuickPick.js +5 -7
- package/src/parts/ElectronBrowserViewState/ElectronBrowserViewState.js +8 -11
- package/src/parts/ElectronBrowserViewSuggestions/ElectronBrowserViewSuggestions.ipc.js +6 -8
- package/src/parts/ElectronBrowserViewSuggestions/ElectronBrowserViewSuggestions.js +7 -10
- package/src/parts/ElectronClipBoard/ElectronClipBoard.ipc.js +4 -6
- package/src/parts/ElectronClipBoard/ElectronClipBoard.js +3 -4
- package/src/parts/ElectronContentTracing/ElectronContentTracing.ipc.js +5 -7
- package/src/parts/ElectronContentTracing/ElectronContentTracing.js +5 -7
- package/src/parts/ElectronContextMenu/ElectronContextMenu.ipc.js +4 -6
- package/src/parts/ElectronContextMenu/ElectronContextMenu.js +7 -8
- package/src/parts/ElectronDeveloper/ElectronDeveloper.ipc.js +4 -6
- package/src/parts/ElectronDeveloper/ElectronDeveloper.js +3 -4
- package/src/parts/ElectronDialog/ElectronDialog.ipc.js +5 -7
- package/src/parts/ElectronDialog/ElectronDialog.js +5 -7
- package/src/parts/ElectronInitialize/ElectronInitialize.ipc.js +4 -6
- package/src/parts/ElectronInitialize/ElectronInitialize.js +9 -10
- package/src/parts/ElectronNet/ElectronNet.ipc.js +4 -6
- package/src/parts/ElectronNet/ElectronNet.js +3 -4
- package/src/parts/ElectronNetLog/ElectronNetLog.ipc.js +5 -7
- package/src/parts/ElectronNetLog/ElectronNetLog.js +5 -7
- package/src/parts/ElectronPowerSaveBlocker/ElectronPowerSaveBlocker.ipc.js +5 -7
- package/src/parts/ElectronPowerSaveBlocker/ElectronPowerSaveBlocker.js +5 -7
- package/src/parts/ElectronProcess/ElectronProcess.ipc.js +5 -7
- package/src/parts/ElectronProcess/ElectronProcess.js +5 -7
- package/src/parts/ElectronSafeStorage/ElectronSafeStorage.ipc.js +6 -8
- package/src/parts/ElectronSafeStorage/ElectronSafeStorage.js +10 -13
- package/src/parts/ElectronShell/ElectronShell.ipc.js +4 -6
- package/src/parts/ElectronShell/ElectronShell.js +3 -4
- package/src/parts/ElectronWebContents/ElectronWebContents.ipc.js +11 -13
- package/src/parts/ElectronWebContents/ElectronWebContents.js +45 -61
- package/src/parts/ElectronWebContentsView/ElectronWebContentsView.ipc.js +5 -7
- package/src/parts/ElectronWebContentsView/ElectronWebContentsView.js +16 -18
- package/src/parts/ElectronWebContentsViewFunctions/ElectronWebContentsViewFunctions.ipc.js +17 -19
- package/src/parts/ElectronWebContentsViewFunctions/ElectronWebContentsViewFunctions.js +26 -41
- package/src/parts/ElectronWindow/ElectronWindow.ipc.js +15 -17
- package/src/parts/ElectronWindow/ElectronWindow.js +60 -81
- package/src/parts/ElectronWindowAbout/ElectronWindowAbout.ipc.js +4 -6
- package/src/parts/ElectronWindowAbout/ElectronWindowAbout.js +3 -4
- package/src/parts/ElectronWindowProcessExplorer/ElectronWindowProcessExplorer.ipc.js +4 -6
- package/src/parts/ElectronWindowProcessExplorer/ElectronWindowProcessExplorer.js +31 -33
- package/src/parts/EncodingType/EncodingType.js +2 -2
- package/src/parts/Env/Env.js +11 -16
- package/src/parts/Error/FileSystemError.js +6 -7
- package/src/parts/ErrorCodes/ErrorCodes.js +22 -22
- package/src/parts/ErrorHandling/ErrorHandling.js +52 -60
- package/src/parts/Exec/Exec.js +11 -12
- package/src/parts/ExecCommand/ExecCommand.js +19 -22
- package/src/parts/ExecPromise/ExecPromise.js +3 -4
- package/src/parts/Exit/Exit.ipc.js +4 -6
- package/src/parts/Exit/Exit.js +3 -4
- package/src/parts/ExitCode/ExitCode.js +3 -5
- package/src/parts/ExportStatic/ExportStatic.js +318 -419
- package/src/parts/ExtensionHostHelperProcessIpc/ExtensionHostHelperProcessIpc.js +13 -14
- package/src/parts/ExtensionHostRpc/ExtensionHostRpc.js +70 -79
- package/src/parts/ExtensionInstall/ExtensionInstall.ipc.js +4 -6
- package/src/parts/ExtensionInstall/ExtensionInstall.js +21 -23
- package/src/parts/ExtensionInstallFromFile/ExtensionInstallFromFile.js +32 -33
- package/src/parts/ExtensionInstallFromGitHub/ExtensionInstallFromGitHub.js +30 -30
- package/src/parts/ExtensionInstallFromUrl/ExtensionInstallFromUrl.js +30 -30
- package/src/parts/ExtensionInstallParseInput/ExtensionInstallParseInput.js +43 -46
- package/src/parts/ExtensionInstallType/ExtensionInstallType.js +4 -7
- package/src/parts/ExtensionLink/ExtensionLink.js +40 -40
- package/src/parts/ExtensionList/ExtensionList.js +57 -63
- package/src/parts/ExtensionManagement/ExtensionManagement.ipc.js +16 -17
- package/src/parts/ExtensionManagement/ExtensionManagement.js +70 -87
- package/src/parts/ExtensionManagement/ExtensionManagementColorTheme.js +62 -70
- package/src/parts/ExtensionManagement/ExtensionManagementIconTheme.js +26 -26
- package/src/parts/ExtensionManagement/ExtensionManagementLanguages.js +55 -59
- package/src/parts/ExtensionManifest/ExtensionManifest.js +50 -48
- package/src/parts/ExtensionManifestInputType/ExtensionManifestInputType.js +3 -5
- package/src/parts/ExtensionManifestStatus/ExtensionManifestStatus.js +2 -3
- package/src/parts/ExtensionManifests/ExtensionManifests.js +36 -40
- package/src/parts/ExtensionManifests/ExtensionManifestsFromFolder.js +19 -19
- package/src/parts/ExtensionManifests/ExtensionManifestsFromLinkedExtensionsFolder.js +46 -47
- package/src/parts/ExtensionManifests/ExtensionManifestsFromOnlyExtension.js +7 -8
- package/src/parts/ExtensionUninstall/ExtensionUninstall.js +17 -17
- package/src/parts/ExtensionUnlink/ExtensionUnlink.js +19 -19
- package/src/parts/Extract/Extract.js +24 -28
- package/src/parts/FileNotFoundError/FileNotFoundError.js +11 -13
- package/src/parts/FileSystem/FileSystem.ipc.js +27 -30
- package/src/parts/FileSystem/FileSystem.js +214 -228
- package/src/parts/FileSystemWatch/FileSystemWatch.js +4 -5
- package/src/parts/FirstNodeWorkerEventType/FirstNodeWorkerEventType.js +3 -3
- package/src/parts/GetAccurateMemoryUsage/GetAccurateMemoryUsage.js +34 -34
- package/src/parts/GetAppImageDownloadUrl/GetAppImageDownloadUrl.js +4 -5
- package/src/parts/GetAppImagePath/GetAppImagePath.js +3 -4
- package/src/parts/GetAppWindowOptions/GetAppWindowOptions.js +26 -28
- package/src/parts/GetBrowserWindowOptions/GetBrowserWindowOptions.js +26 -27
- package/src/parts/GetContentSecurityPolicy/GetContentSecurityPolicy.js +4 -5
- package/src/parts/GetDirentType/GetDirentType.js +24 -25
- package/src/parts/GetElectronFileResponse/GetElectronFileResponse.ipc.js +4 -6
- package/src/parts/GetElectronFileResponse/GetElectronFileResponse.js +43 -43
- package/src/parts/GetElectronFileResponseAbsolutePath/GetElectronFileResponseAbsolutePath.js +32 -33
- package/src/parts/GetElectronFileResponseContent/GetElectronFileResponseContent.js +15 -16
- package/src/parts/GetElectronFileResponseRelativePath/GetElectronFileResponseRelativePath.js +11 -13
- package/src/parts/GetElectronRebuildPath/GetElectronRebuildPath.js +8 -9
- package/src/parts/GetEtag/GetEtag.js +2 -2
- package/src/parts/GetFirstEvent/GetFirstEvent.js +20 -21
- package/src/parts/GetFirstNodeWorkerEvent/GetFirstNodeWorkerEvent.js +7 -8
- package/src/parts/GetFirstSpawnedProcessEvent/GetFirstSpawnedProcessEvent.js +7 -8
- package/src/parts/GetHeaders/GetHeaders.js +50 -52
- package/src/parts/GetHeadersDefault/GetHeadersDefault.js +2 -2
- package/src/parts/GetHeadersExtensionHostWorker/GetHeadersExtensionHostWorker.js +8 -9
- package/src/parts/GetHeadersMainFrame/GetHeadersMainFrame.js +10 -11
- package/src/parts/GetHeadersOtherWorker/GetHeadersOtherWorker.js +12 -13
- package/src/parts/GetHeadersRendererWorker/GetHeadersRendererWorker.js +8 -9
- package/src/parts/GetHeadersSyntaxHighlightingWorker/GetHeadersSyntaxHighlightingWorker.js +8 -9
- package/src/parts/GetHeadersTerminalWorker/GetHeadersTerminalWorker.js +8 -9
- package/src/parts/GetHeadersTestWorker/GetHeadersTestWorker.js +8 -9
- package/src/parts/GetHelpString/GetHelpString.js +4 -5
- package/src/parts/GetHttpErrorMessage/GetHttpErrorMessage.js +20 -21
- package/src/parts/GetIcon/GetIcon.js +17 -18
- package/src/parts/GetLatestReleaseVersion/GetLatestReleaseVersion.js +29 -30
- package/src/parts/GetMimeType/GetMimeType.js +26 -27
- package/src/parts/GetNewLineIndex/GetNewLineIndex.js +3 -4
- package/src/parts/GetNotFoundResponse/GetNotFoundResponse.js +10 -11
- package/src/parts/GetNotModifiedResponse/GetNotModifiedResponse.js +9 -10
- package/src/parts/GetNsisUpdateArgs/GetNsisUpdateArgs.js +6 -6
- package/src/parts/GetNsisUpdateDownloadPath/GetNsisUpdateDownloadPath.js +9 -10
- package/src/parts/GetPathName/GetPathName.js +3 -3
- package/src/parts/GetPreloadUrl/GetPreloadUrl.js +4 -5
- package/src/parts/GetProcessExplorerUrl/GetProcessExplorerUrl.js +3 -4
- package/src/parts/GetPsOutput/GetPsOutput.js +16 -17
- package/src/parts/GetRemoteUrl/GetRemoteUrl.js +4 -5
- package/src/parts/GetServerErrorResponse/GetServerErrorResponse.js +10 -11
- package/src/parts/GetStatusString/GetStatusString.js +54 -62
- package/src/parts/GetTerminalProcessPath/GetTerminalProcessPath.js +4 -5
- package/src/parts/GetTerminalSpawnOptions/GetTerminalSpawnOptions.ipc.js +4 -6
- package/src/parts/GetTerminalSpawnOptions/GetTerminalSpawnOptions.js +16 -17
- package/src/parts/GetTestPath/GetTestPath.js +10 -11
- package/src/parts/GetTestRequestResponse/GetTestRequestResponse.js +41 -42
- package/src/parts/GetTitleBarItems/GetTitleBarItems.js +40 -41
- package/src/parts/GetTypeFromUrl/GetTypeFromUrl.js +17 -18
- package/src/parts/GetTypeScriptPath/GetTypeScriptPath.js +11 -20
- package/src/parts/GetVersionString/GetVersionString.js +4 -5
- package/src/parts/GetWindowId/GetWindowId.ipc.js +4 -6
- package/src/parts/GetWindowId/GetWindowId.js +4 -5
- package/src/parts/GetWindowsNsisDownloadUrl/GetWindowsNsisDownloadUrl.js +6 -7
- package/src/parts/GetWorkspaceId/GetWorkspaceId.js +3 -4
- package/src/parts/GitLsFiles/GitLsFiles.ipc.js +6 -8
- package/src/parts/GitLsFiles/GitLsFiles.js +19 -22
- package/src/parts/HandleCliArgs/HandleCliArgs.ipc.js +4 -6
- package/src/parts/HandleCliArgs/HandleCliArgs.js +11 -11
- package/src/parts/HandleElectronMessagePort/HandleElectronMessagePort.ipc.js +4 -6
- package/src/parts/HandleElectronMessagePort/HandleElectronMessagePort.js +13 -14
- package/src/parts/HandleElectronReady/HandleElectronReady.ipc.js +4 -6
- package/src/parts/HandleElectronReady/HandleElectronReady.js +8 -9
- package/src/parts/HandleIpc/HandleIpc.js +20 -23
- package/src/parts/HandleMessagePortForExtensionHostHelperProcess/HandleMessagePortForExtensionHostHelperProcess.ipc.js +4 -6
- package/src/parts/HandleMessagePortForExtensionHostHelperProcess/HandleMessagePortForExtensionHostHelperProcess.js +17 -18
- package/src/parts/HandleMessagePortForTerminalProcess/HandleMessagePortForTerminalProcess.ipc.js +4 -6
- package/src/parts/HandleMessagePortForTerminalProcess/HandleMessagePortForTerminalProcess.js +8 -9
- package/src/parts/HandleNodeMessagePort/HandleNodeMessagePort.ipc.js +4 -6
- package/src/parts/HandleNodeMessagePort/HandleNodeMessagePort.js +9 -10
- package/src/parts/HandleRemoteRequest/HandleRemoteRequest.ipc.js +4 -6
- package/src/parts/HandleRemoteRequest/HandleRemoteRequest.js +8 -9
- package/src/parts/HandleRequestTest/HandleRequestTest.ipc.js +4 -6
- package/src/parts/HandleRequestTest/HandleRequestTest.js +9 -10
- package/src/parts/HandleSocketError/HandleSocketError.js +10 -11
- package/src/parts/HandleUncaughtExceptionMonitor/HandleUncaughtExceptionMonitor.js +9 -12
- package/src/parts/HandleWebSocket/HandleWebSocket.ipc.js +4 -6
- package/src/parts/HandleWebSocket/HandleWebSocket.js +19 -19
- package/src/parts/HandleWebSocketForExtensionHostHelperProcess/HandleWebSocketForExtensionHostHelperProcess.js +8 -9
- package/src/parts/HandleWebSocketForSharedProcess/HandleWebSocketForSharedProcess.js +15 -16
- package/src/parts/HandleWebSocketForTerminalProcess/HandleWebSocketForTerminalProcess.js +17 -21
- package/src/parts/HandleWebSocketForUnknown/HandleWebSocketForUnknown.js +9 -9
- package/src/parts/HandleWebSocketModule/HandleWebSocketModule.js +16 -17
- package/src/parts/HandleWindowAllClosed/HandleWindowAllClosed.ipc.js +4 -6
- package/src/parts/HandleWindowAllClosed/HandleWindowAllClosed.js +9 -10
- package/src/parts/HasPositiveMemoryUsage/HasPositiveMemoryUsage.js +2 -2
- package/src/parts/Hash/Hash.js +4 -6
- package/src/parts/HeapSnapshot/HeapSnapshot.ipc.js +4 -6
- package/src/parts/HeapSnapshot/HeapSnapshot.js +6 -9
- package/src/parts/HttpHeader/HttpHeader.js +7 -7
- package/src/parts/HttpServerResponse/HttpServerResponse.js +15 -16
- package/src/parts/HttpStatusCode/HttpStatusCode.js +5 -5
- package/src/parts/Id/Id.js +4 -5
- package/src/parts/IncrementalTextSearch/IncrementalTextSearch.js +44 -47
- package/src/parts/IncrementalTextSearch/IncremetalTextSearch.ipc.js +4 -6
- package/src/parts/InferExtensionId/InferExtensionId.js +7 -8
- package/src/parts/InstallExtension/InstallExtension.ipc.js +3 -4
- package/src/parts/InstallExtension/InstallExtension.js +32 -32
- package/src/parts/IpcChild/IpcChild.js +12 -13
- package/src/parts/IpcChildModule/IpcChildModule.js +19 -26
- package/src/parts/IpcChildType/IpcChildType.js +18 -19
- package/src/parts/IpcChildWithElectronMessagePort/IpcChildWithElectronMessagePort.js +47 -48
- package/src/parts/IpcChildWithNodeMessagePort/IpcChildWithNodeMessagePort.js +40 -41
- package/src/parts/IpcError/IpcError.js +4 -4
- package/src/parts/IpcParent/IpcParent.js +8 -9
- package/src/parts/IpcParentModule/IpcParentModule.js +13 -14
- package/src/parts/IpcParentType/IpcParentType.js +3 -3
- package/src/parts/IpcParentWithElectronUtilityProcess/IpcParentWithElectronUtilityProcess.js +45 -48
- package/src/parts/IsAbsolutePath/IsAbsolutePath.js +3 -4
- package/src/parts/IsAppImage/IsAppImage.js +3 -4
- package/src/parts/IsAutoUpdateSupported/IsAutoUpdateSupported.ipc.js +4 -6
- package/src/parts/IsAutoUpdateSupported/IsAutoUpdateSupported.js +6 -8
- package/src/parts/IsBuiltServer/IsBuiltServer.js +1 -1
- package/src/parts/IsDlOpenError/IsDlOpenError.js +3 -4
- package/src/parts/IsElectron/IsElectron.js +3 -4
- package/src/parts/IsEnoentError/IsEnoentError.js +9 -11
- package/src/parts/IsEnoentErrorWindows/IsEnoentErrorWindows.js +2 -2
- package/src/parts/IsEsrchError/IsEsrchError.js +3 -4
- package/src/parts/IsIgnoredError/IsIgnoredError.js +12 -13
- package/src/parts/IsMessagePort/IsMessagePort.js +2 -2
- package/src/parts/IsMessagePortMain/IsMessagePortMain.js +2 -2
- package/src/parts/IsTypeScriptPath/IsTypeScriptPath.js +2 -2
- package/src/parts/IsWindows/IsWindows.js +1 -1
- package/src/parts/JoinLines/JoinLines.js +3 -4
- package/src/parts/Json/Json.js +15 -17
- package/src/parts/JsonFile/JsonFile.js +10 -12
- package/src/parts/JsonRpc/JsonRpc.js +1 -1
- package/src/parts/JsonRpcVersion/JsonRpcVersion.js +1 -1
- package/src/parts/Jsonc/Jsonc.js +1 -1
- package/src/parts/JsoncFile/JsoncFile.js +7 -8
- package/src/parts/LeftCut/LeftCut.js +17 -18
- package/src/parts/LimitString/LimitString.js +13 -14
- package/src/parts/ListProcessGetName/ListProcessGetName.js +55 -56
- package/src/parts/ListProcessesWithMemoryUsage/ListProcessesWithMemoryUsage.ipc.js +4 -6
- package/src/parts/ListProcessesWithMemoryUsage/ListProcessesWithMemoryUsage.js +9 -11
- package/src/parts/ListProcessesWithMemoryUsageUnix/ListProcessesWithMemoryUsageUnix.js +19 -20
- package/src/parts/ListProcessesWithMemoryUsageWindows/ListProcessesWithMemoryUsageWindows.js +33 -36
- package/src/parts/LoadTypeScript/LoadTypeScript.js +12 -12
- package/src/parts/LoadWindowsProcessTree/LoadWindowsProcessTree.js +11 -13
- package/src/parts/Logger/Logger.js +34 -42
- package/src/parts/Main/Main.js +13 -14
- package/src/parts/MakeExecutable/MakeExecutable.js +9 -9
- package/src/parts/MimeType/MimeType.js +37 -37
- package/src/parts/Module/Module.js +150 -151
- package/src/parts/ModuleId/ModuleId.js +76 -76
- package/src/parts/ModuleMap/ModuleMap.js +329 -330
- package/src/parts/OpenExternal/OpenExternal.ipc.js +5 -7
- package/src/parts/OpenExternal/OpenExternal.js +5 -7
- package/src/parts/OpenNativeFolder/OpenNativeFolder.ipc.js +4 -6
- package/src/parts/OpenNativeFolder/OpenNativeFolder.js +9 -9
- package/src/parts/Os/Os.ipc.js +4 -6
- package/src/parts/Os/Os.js +3 -4
- package/src/parts/OutputChannel/OutputChannel.ipc.js +35 -39
- package/src/parts/OutputChannel/OutputChannel.js +32 -35
- package/src/parts/OutputChannelState/OutputChannelState.js +10 -14
- package/src/parts/ParentIpc/ParentIpc.js +19 -25
- package/src/parts/ParseInt/ParseInt.js +2 -2
- package/src/parts/ParseMemory/ParseMemory.js +9 -10
- package/src/parts/ParsePsOutput/ParsePsOutput.js +42 -46
- package/src/parts/ParseRipGrepLines/ParseRipGrepLines.js +9 -10
- package/src/parts/ParseUrlGithub/ParseUrlGithub.js +49 -51
- package/src/parts/Path/Path.js +11 -16
- package/src/parts/Performance/Performance.ipc.js +4 -6
- package/src/parts/Performance/Performance.js +16 -27
- package/src/parts/Platform/Platform.ipc.js +28 -30
- package/src/parts/Platform/Platform.js +46 -73
- package/src/parts/PlatformPaths/PlatformPaths.ipc.js +21 -23
- package/src/parts/PlatformPaths/PlatformPaths.js +79 -114
- package/src/parts/Preferences/Preferences.ipc.js +4 -6
- package/src/parts/Preferences/Preferences.js +69 -70
- package/src/parts/PrettyError/PrettyError.js +1 -1
- package/src/parts/PrintPrettyError/PrintPrettyError.js +3 -4
- package/src/parts/Process/Process.ipc.js +10 -12
- package/src/parts/Process/Process.js +35 -48
- package/src/parts/ProcessDisplayName/ProcessDisplayName.js +1 -1
- package/src/parts/ProcessExitEventType/ProcessExitEventType.js +2 -2
- package/src/parts/ProcessId/ProcessId.ipc.js +5 -7
- package/src/parts/ProcessId/ProcessId.js +4 -5
- package/src/parts/ProcessListeners/ProcessListeners.js +11 -14
- package/src/parts/Promises/Promises.js +18 -18
- package/src/parts/ProtocolType/ProtocolType.js +4 -4
- package/src/parts/PtyHost/PtyHost.js +55 -62
- package/src/parts/PtyHostPath/PtyHostPath.js +10 -10
- package/src/parts/PtyHostState/PtyHostState.js +16 -16
- package/src/parts/Queue/Queue.js +30 -31
- package/src/parts/RebuildForElectron/RebuildForElectron.js +14 -14
- package/src/parts/RebuildForNode/RebuildForNode.js +12 -12
- package/src/parts/RebuildNodePty/RebuildNodePty.ipc.js +4 -6
- package/src/parts/RebuildNodePty/RebuildNodePty.js +20 -22
- package/src/parts/RecentlyOpened/RecentlyOpened.ipc.js +4 -6
- package/src/parts/RecentlyOpened/RecentlyOpened.js +54 -53
- package/src/parts/RemoveSymlink/RemoveSymlink.js +11 -11
- package/src/parts/RequiresSocket/RequiresSocket.js +14 -15
- package/src/parts/Restart/Restart.js +9 -10
- package/src/parts/RipGrep/RipGrep.js +35 -37
- package/src/parts/RipGrepParsedLineType/RipGrepParsedLineType.js +4 -4
- package/src/parts/RipGrepPath/RipGrepPath.js +1 -1
- package/src/parts/Root/Root.js +4 -6
- package/src/parts/Screen/Screen.ipc.js +6 -8
- package/src/parts/Screen/Screen.js +7 -10
- package/src/parts/SearchFile/SearchFile.ipc.js +4 -6
- package/src/parts/SearchFile/SearchFile.js +26 -27
- package/src/parts/SetHeaders/SetHeaders.js +4 -4
- package/src/parts/ShouldLogError/ShouldLogError.js +6 -7
- package/src/parts/ShouldTranspileTypescript/ShouldTranspileTypescript.js +10 -11
- package/src/parts/Signal/Signal.js +3 -3
- package/src/parts/SplitLines/SplitLines.js +3 -4
- package/src/parts/SymLink/SymLink.js +3 -4
- package/src/parts/TemporaryMessagePort/TemporaryMessagePort.ipc.js +4 -6
- package/src/parts/TemporaryMessagePort/TemporaryMessagePort.js +18 -21
- package/src/parts/Terminal/Terminal.ipc.js +7 -9
- package/src/parts/Terminal/Terminal.js +68 -73
- package/src/parts/TerminalState/TerminalState.js +8 -11
- package/src/parts/TextDocument/TextDocument.ipc.js +3 -4
- package/src/parts/TextDocument/TextDocument.js +17 -22
- package/src/parts/TextSearch/TextSearch.ipc.js +4 -6
- package/src/parts/TextSearch/TextSearch.js +18 -22
- package/src/parts/TextSearchError/TextSearchError.js +12 -12
- package/src/parts/TextSearchResultType/TextSearchResultType.js +2 -2
- package/src/parts/Timeout/Timeout.js +4 -5
- package/src/parts/TmpFile/TmpFile.js +11 -13
- package/src/parts/ToAbsolutePaths/ToAbsolutePaths.js +7 -8
- package/src/parts/ToTextSearchResult/ToTextSearchResult.js +23 -24
- package/src/parts/Trace/Trace.js +10 -14
- package/src/parts/TranspileTypeScript/TranspileTypeScript.js +19 -19
- package/src/parts/Trash/Trash.js +15 -16
- package/src/parts/TrashElectron/TrashElectron.js +7 -8
- package/src/parts/TrashNode/TrashNode.js +3 -4
- package/src/parts/UpdateState/UpdateState.js +7 -10
- package/src/parts/UpdateStateType/UpdateStateType.js +9 -9
- package/src/parts/VError/VError.js +1 -1
- package/src/parts/WaitForProcessToExit/WaitForProcessToExit.js +7 -8
- package/src/parts/WebSocketServer/WebSocketServer.ipc.js +4 -6
- package/src/parts/WebSocketServer/WebSocketServer.js +1 -1
- package/src/parts/WindowsProcessTree/WindowsProcessTree.js +12 -14
- package/src/parts/WindowsProcessTreeDataFlag/WindowsProcessTreeDataFlag.js +3 -3
- package/src/parts/Workspace/Workspace.ipc.js +5 -7
- package/src/parts/Workspace/Workspace.js +79 -84
- package/src/parts/WorkspaceSource/WorkspaceSource.js +2 -2
- package/src/sharedProcessMain.js +2 -3
|
@@ -1,375 +1,284 @@
|
|
|
1
|
-
import { existsSync } from 'node:fs'
|
|
2
|
-
import { isAbsolute, join } from 'node:path'
|
|
3
|
-
import * as FileSystem from '../FileSystem/FileSystem.js'
|
|
4
|
-
import * as JsonFile from '../JsonFile/JsonFile.js'
|
|
5
|
-
import * as Path from '../Path/Path.js'
|
|
6
|
-
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { isAbsolute, join } from 'node:path';
|
|
3
|
+
import * as FileSystem from '../FileSystem/FileSystem.js';
|
|
4
|
+
import * as JsonFile from '../JsonFile/JsonFile.js';
|
|
5
|
+
import * as Path from '../Path/Path.js';
|
|
7
6
|
const readExtensionManifest = async (path) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
7
|
+
const json = await JsonFile.readJson(path);
|
|
8
|
+
return { ...json, path };
|
|
9
|
+
};
|
|
12
10
|
const getThemeName = (dirent) => {
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
11
|
+
return dirent.slice('builtin.theme-'.length);
|
|
12
|
+
};
|
|
16
13
|
const replace = async (path, occurrence, replacement) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
14
|
+
const oldContent = await FileSystem.readFile(path);
|
|
15
|
+
if (!oldContent.includes(occurrence)) {
|
|
16
|
+
throw new Error(`failed to replace occurrence ${occurrence} in ${path}: Not found`);
|
|
17
|
+
}
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const newContent = oldContent.replaceAll(occurrence, replacement);
|
|
20
|
+
await FileSystem.writeFile(path, newContent);
|
|
21
|
+
};
|
|
26
22
|
/**
|
|
27
23
|
* @param {string} dirent
|
|
28
24
|
*/
|
|
29
25
|
const isLanguageBasics = (dirent) => {
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
26
|
+
return dirent.startsWith('builtin.language-basics');
|
|
27
|
+
};
|
|
33
28
|
/**
|
|
34
29
|
* @param {string} dirent
|
|
35
30
|
*/
|
|
36
31
|
const isTheme = (dirent) => {
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
32
|
+
return dirent.startsWith('builtin.theme-');
|
|
33
|
+
};
|
|
40
34
|
/**
|
|
41
35
|
* @param {string} dirent
|
|
42
36
|
*/
|
|
43
37
|
const isIconTheme = (dirent) => {
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
38
|
+
return dirent === 'builtin.vscode-icons';
|
|
39
|
+
};
|
|
47
40
|
const compare = (a, b) => {
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
41
|
+
return a.localeCompare(b);
|
|
42
|
+
};
|
|
51
43
|
const toSorted = (objects, compare) => {
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
44
|
+
return [...objects].sort(compare);
|
|
45
|
+
};
|
|
55
46
|
const mergeThemes = (builtinThemes, extensionThemes) => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
const seen = [];
|
|
48
|
+
const merged = [];
|
|
49
|
+
for (const extensionTheme of extensionThemes) {
|
|
50
|
+
seen.push(extensionTheme);
|
|
51
|
+
merged.push(extensionTheme);
|
|
52
|
+
}
|
|
53
|
+
for (const builtinTheme of builtinThemes) {
|
|
54
|
+
if (seen.includes(builtinTheme)) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
merged.push(builtinTheme);
|
|
65
58
|
}
|
|
66
|
-
merged
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const RE_COMMIT_HASH = /^[a-z\d]+$/
|
|
59
|
+
const sorted = toSorted(merged, compare);
|
|
60
|
+
return sorted;
|
|
61
|
+
};
|
|
62
|
+
const RE_COMMIT_HASH = /^[a-z\d]+$/;
|
|
73
63
|
const isCommitHash = (dirent) => {
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
64
|
+
return dirent.length === 7 && dirent.match(RE_COMMIT_HASH);
|
|
65
|
+
};
|
|
77
66
|
/**
|
|
78
67
|
* @param {string} root
|
|
79
68
|
*/
|
|
80
69
|
const clean = async (root) => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
70
|
+
await FileSystem.forceRemove(Path.join(root, 'dist'));
|
|
71
|
+
await FileSystem.mkdir(Path.join(root, 'dist'));
|
|
72
|
+
};
|
|
85
73
|
/**
|
|
86
74
|
* @param {string} root
|
|
87
75
|
*/
|
|
88
76
|
const copyStaticFiles = async (root, commitHash) => {
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
77
|
+
await FileSystem.copy(Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static'), Path.join(root, 'dist'));
|
|
78
|
+
};
|
|
92
79
|
const applyOverrides = async ({ root, commitHash, pathPrefix }) => {
|
|
93
|
-
|
|
94
|
-
Path.join(root, 'dist', commitHash, 'packages', 'renderer-process', 'dist', 'rendererProcessMain.js'),
|
|
95
|
-
'platform =
|
|
96
|
-
'
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
Path.join(root, 'dist', commitHash, 'packages', 'renderer-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
80
|
+
await replace(Path.join(root, 'dist', commitHash, 'packages', 'renderer-process', 'dist', 'rendererProcessMain.js'), 'platform = getPlatform();', 'platform = "web"');
|
|
81
|
+
await replace(Path.join(root, 'dist', commitHash, 'packages', 'renderer-process', 'dist', 'rendererProcessMain.js'), `/${commitHash}`, `${pathPrefix}/${commitHash}`);
|
|
82
|
+
await replace(Path.join(root, 'dist', commitHash, 'packages', 'renderer-worker', 'dist', 'rendererWorkerMain.js'), 'platform = Remote;', 'platform = Web$1;');
|
|
83
|
+
await replace(Path.join(root, 'dist', commitHash, 'packages', 'renderer-worker', 'dist', 'rendererWorkerMain.js'), `/${commitHash}`, `${pathPrefix}/${commitHash}`);
|
|
84
|
+
await replace(Path.join(root, 'dist', commitHash, 'packages', 'renderer-worker', 'dist', 'rendererWorkerMain.js'), `return \`\${assetDir}/extensions/builtin.theme-\${colorThemeId}/color-theme.json\``, `return \`\${assetDir}/themes/\${colorThemeId}.json\``);
|
|
85
|
+
await replace(Path.join(root, 'dist', commitHash, 'packages', 'extension-host-worker', 'dist', 'extensionHostWorkerMain.js'), `/${commitHash}`, `${pathPrefix}/${commitHash}`);
|
|
86
|
+
await replace(Path.join(root, 'dist', commitHash, 'packages', 'renderer-worker', 'dist', 'rendererWorkerMain.js'), `return \`\${assetDir}/extensions/builtin.\${iconThemeId}/icon-theme.json\``, `return \`\${assetDir}/icon-themes/\${iconThemeId}.json\``);
|
|
87
|
+
const extensionDirents = await FileSystem.readDir(Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions'));
|
|
88
|
+
const languageBasicsDirents = extensionDirents.filter(isLanguageBasics);
|
|
89
|
+
const themeDirents = extensionDirents.filter(isTheme);
|
|
90
|
+
const iconThemeDirents = extensionDirents.filter(isIconTheme);
|
|
91
|
+
const getLanguages = (extension) => {
|
|
92
|
+
const languages = [];
|
|
93
|
+
for (const language of extension.languages || []) {
|
|
94
|
+
languages.push({
|
|
95
|
+
...language,
|
|
96
|
+
tokenize: `${pathPrefix}/${commitHash}/extensions/${extension.id}/${language.tokenize}`,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return languages;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* @param {string} dirent
|
|
103
|
+
*/
|
|
104
|
+
const getManifestPath = (dirent) => {
|
|
105
|
+
return Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions', dirent, 'extension.json');
|
|
106
|
+
};
|
|
107
|
+
const manifestPaths = languageBasicsDirents.map(getManifestPath);
|
|
108
|
+
const manifests = await Promise.all(manifestPaths.map(readExtensionManifest));
|
|
109
|
+
const languages = manifests.flatMap(getLanguages);
|
|
110
|
+
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'languages.json'), languages);
|
|
111
|
+
for (const languageBasicsDirent of languageBasicsDirents) {
|
|
112
|
+
await FileSystem.copy(Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions', languageBasicsDirent), Path.join(root, 'dist', commitHash, 'extensions', languageBasicsDirent));
|
|
113
|
+
}
|
|
114
|
+
for (const themeDirent of themeDirents) {
|
|
115
|
+
const themeId = getThemeName(themeDirent);
|
|
116
|
+
await FileSystem.copy(Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions', themeDirent, 'color-theme.json'), Path.join(root, 'dist', commitHash, 'themes', `${themeId}.json`));
|
|
117
|
+
}
|
|
118
|
+
const themeIds = mergeThemes(themeDirents.map(getThemeName), []);
|
|
119
|
+
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'themes.json'), themeIds);
|
|
120
|
+
for (const iconThemeDirent of iconThemeDirents) {
|
|
121
|
+
const iconThemeId = iconThemeDirent.slice('builtin.'.length);
|
|
122
|
+
await FileSystem.copy(Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions', iconThemeDirent, 'icon-theme.json'), Path.join(root, 'dist', commitHash, 'icon-themes', `${iconThemeId}.json`));
|
|
123
|
+
}
|
|
124
|
+
await replace(Path.join(root, 'dist', 'index.html'), `/${commitHash}`, `${pathPrefix}/${commitHash}`);
|
|
125
|
+
if (pathPrefix) {
|
|
126
|
+
await replace(Path.join(root, 'dist', 'index.html'), '</title>', `</title>
|
|
127
|
+
<link rel="shortcut icon" type="image/x-icon" href="${pathPrefix}/favicon.ico">`);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
await replace(Path.join(root, 'dist', 'index.html'), '</title>', `</title>
|
|
131
|
+
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">`);
|
|
142
132
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
return Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions', dirent, 'extension.json')
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
const manifestPaths = languageBasicsDirents.map(getManifestPath)
|
|
154
|
-
const manifests = await Promise.all(manifestPaths.map(readExtensionManifest))
|
|
155
|
-
const languages = manifests.flatMap(getLanguages)
|
|
156
|
-
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'languages.json'), languages)
|
|
157
|
-
|
|
158
|
-
for (const languageBasicsDirent of languageBasicsDirents) {
|
|
159
|
-
await FileSystem.copy(
|
|
160
|
-
Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions', languageBasicsDirent),
|
|
161
|
-
Path.join(root, 'dist', commitHash, 'extensions', languageBasicsDirent),
|
|
162
|
-
)
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
for (const themeDirent of themeDirents) {
|
|
166
|
-
const themeId = getThemeName(themeDirent)
|
|
167
|
-
await FileSystem.copy(
|
|
168
|
-
Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions', themeDirent, 'color-theme.json'),
|
|
169
|
-
Path.join(root, 'dist', commitHash, 'themes', `${themeId}.json`),
|
|
170
|
-
)
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
const themeIds = mergeThemes(themeDirents.map(getThemeName), [])
|
|
174
|
-
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'themes.json'), themeIds)
|
|
175
|
-
|
|
176
|
-
for (const iconThemeDirent of iconThemeDirents) {
|
|
177
|
-
const iconThemeId = iconThemeDirent.slice('builtin.'.length)
|
|
178
|
-
await FileSystem.copy(
|
|
179
|
-
Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static', commitHash, 'extensions', iconThemeDirent, 'icon-theme.json'),
|
|
180
|
-
Path.join(root, 'dist', commitHash, 'icon-themes', `${iconThemeId}.json`),
|
|
181
|
-
)
|
|
182
|
-
}
|
|
183
|
-
await replace(Path.join(root, 'dist', 'index.html'), `/${commitHash}`, `${pathPrefix}/${commitHash}`)
|
|
184
|
-
|
|
185
|
-
if (pathPrefix) {
|
|
186
|
-
await replace(
|
|
187
|
-
Path.join(root, 'dist', 'index.html'),
|
|
188
|
-
'</title>',
|
|
189
|
-
`</title>
|
|
190
|
-
<link rel="shortcut icon" type="image/x-icon" href="${pathPrefix}/favicon.ico">`,
|
|
191
|
-
)
|
|
192
|
-
} else {
|
|
193
|
-
await replace(
|
|
194
|
-
Path.join(root, 'dist', 'index.html'),
|
|
195
|
-
'</title>',
|
|
196
|
-
`</title>
|
|
197
|
-
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">`,
|
|
198
|
-
)
|
|
199
|
-
}
|
|
200
|
-
if (pathPrefix) {
|
|
201
|
-
await replace(Path.join(root, 'dist', commitHash, 'manifest.json'), `/${commitHash}`, `${pathPrefix}/${commitHash}`)
|
|
202
|
-
await replace(Path.join(root, 'dist', commitHash, 'manifest.json'), `"start_url": "/"`, `"start_url": "${pathPrefix}"`)
|
|
203
|
-
await replace(Path.join(root, 'dist', commitHash, 'css', 'App.css'), `/${commitHash}`, `${pathPrefix}/${commitHash}`)
|
|
204
|
-
await replace(Path.join(root, 'dist', commitHash, 'css', 'parts', 'Symbol.css'), `/${commitHash}`, `${pathPrefix}/${commitHash}`)
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
133
|
+
if (pathPrefix) {
|
|
134
|
+
await replace(Path.join(root, 'dist', commitHash, 'manifest.json'), `/${commitHash}`, `${pathPrefix}/${commitHash}`);
|
|
135
|
+
await replace(Path.join(root, 'dist', commitHash, 'manifest.json'), `"start_url": "/"`, `"start_url": "${pathPrefix}"`);
|
|
136
|
+
await replace(Path.join(root, 'dist', commitHash, 'css', 'App.css'), `/${commitHash}`, `${pathPrefix}/${commitHash}`);
|
|
137
|
+
await replace(Path.join(root, 'dist', commitHash, 'css', 'parts', 'Symbol.css'), `/${commitHash}`, `${pathPrefix}/${commitHash}`);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
208
140
|
const addExtensionSeo = async ({ root, name, description, commitHash }) => {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
'<meta name="description" content="Online Code Editor" />',
|
|
216
|
-
`<meta name="description" content="${description}" />`,
|
|
217
|
-
)
|
|
218
|
-
}
|
|
219
|
-
|
|
141
|
+
await replace(Path.join(root, 'dist', 'index.html'), '<title>Code Editor</title>', `<title>${name}</title>`);
|
|
142
|
+
await replace(Path.join(root, 'dist', commitHash, 'manifest.json'), `"name": "Code Editor Web - OSS"`, `"name": "${name}"`);
|
|
143
|
+
await replace(Path.join(root, 'dist', commitHash, 'manifest.json'), `"short_name": "Web - OSS"`, `"short_name": "${name}"`);
|
|
144
|
+
await replace(Path.join(root, 'dist', commitHash, 'manifest.json'), `"description": "Web Code Editor."`, `"description": "${description}"`);
|
|
145
|
+
await replace(Path.join(root, 'dist', 'index.html'), '<meta name="description" content="Online Code Editor" />', `<meta name="description" content="${description}" />`);
|
|
146
|
+
};
|
|
220
147
|
const getId = (object) => {
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
148
|
+
return object.id;
|
|
149
|
+
};
|
|
224
150
|
const addExtensionThemes = async ({ root, extensionPath, extensionJson, commitHash }) => {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
await
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
await FileSystem.copyFile(
|
|
244
|
-
Path.join(extensionPath, 'color-theme.json'),
|
|
245
|
-
Path.join(root, 'dist', commitHash, 'extensions', `builtin.theme-${id}`, 'color-theme.json'),
|
|
246
|
-
)
|
|
247
|
-
}
|
|
248
|
-
const themesJson = await JsonFile.readJson(Path.join(root, 'dist', commitHash, 'config', 'themes.json'))
|
|
249
|
-
const ids = colorThemes.map(getId)
|
|
250
|
-
const mergedThemes = mergeThemes(themesJson, ids)
|
|
251
|
-
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'themes.json'), mergedThemes)
|
|
252
|
-
}
|
|
253
|
-
|
|
151
|
+
const colorThemes = extensionJson.colorThemes || [];
|
|
152
|
+
if (colorThemes.length === 0) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
for (const colorTheme of colorThemes) {
|
|
156
|
+
const { id, path } = colorTheme;
|
|
157
|
+
await FileSystem.mkdir(Path.join(root, 'dist', commitHash, 'extensions', `builtin.theme-${id}`));
|
|
158
|
+
await FileSystem.copy(Path.join(extensionPath, path), Path.join(root, 'dist', commitHash, 'themes', `${id}.json`));
|
|
159
|
+
await replace(Path.join(root, 'dist', commitHash, 'config', 'defaultSettings.json'), `"workbench.colorTheme": "slime"`, `"workbench.colorTheme": "${id}"`);
|
|
160
|
+
await FileSystem.copyFile(Path.join(root, 'README.md'), Path.join(root, 'dist', commitHash, 'extensions', `builtin.theme-${id}`, 'README.md'));
|
|
161
|
+
await FileSystem.copyFile(Path.join(extensionPath, 'extension.json'), Path.join(root, 'dist', commitHash, 'extensions', `builtin.theme-${id}`, 'extension.json'));
|
|
162
|
+
await FileSystem.copyFile(Path.join(extensionPath, 'color-theme.json'), Path.join(root, 'dist', commitHash, 'extensions', `builtin.theme-${id}`, 'color-theme.json'));
|
|
163
|
+
}
|
|
164
|
+
const themesJson = await JsonFile.readJson(Path.join(root, 'dist', commitHash, 'config', 'themes.json'));
|
|
165
|
+
const ids = colorThemes.map(getId);
|
|
166
|
+
const mergedThemes = mergeThemes(themesJson, ids);
|
|
167
|
+
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'themes.json'), mergedThemes);
|
|
168
|
+
};
|
|
254
169
|
const compareId = (a, b) => {
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
170
|
+
return a.id.localeCompare(b.id);
|
|
171
|
+
};
|
|
258
172
|
const mergeLanguages = (languages, extensionLanguages) => {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
for (const language of languages) {
|
|
266
|
-
if (seen.includes(language.id)) {
|
|
267
|
-
continue
|
|
173
|
+
const seen = [];
|
|
174
|
+
const merged = [];
|
|
175
|
+
for (const language of extensionLanguages) {
|
|
176
|
+
seen.push(language.id);
|
|
177
|
+
merged.push(language);
|
|
268
178
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
179
|
+
for (const language of languages) {
|
|
180
|
+
if (seen.includes(language.id)) {
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
merged.push(language);
|
|
184
|
+
}
|
|
185
|
+
merged.sort(compareId);
|
|
186
|
+
return merged;
|
|
187
|
+
};
|
|
275
188
|
const toPlaygroundFile = (file) => {
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
|
|
189
|
+
return `/playground/${file}`;
|
|
190
|
+
};
|
|
279
191
|
const addExtensionLanguages = async ({ root, extensionPath, extensionJson, commitHash, pathPrefix }) => {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
192
|
+
const languages = extensionJson.languages || [];
|
|
193
|
+
if (languages.length === 0) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
const extensionId = extensionJson.id;
|
|
197
|
+
await FileSystem.forceRemove(Path.join(root, 'dist', commitHash, 'extensions', extensionId));
|
|
198
|
+
await FileSystem.mkdir(Path.join(root, 'dist', commitHash, 'extensions', extensionId));
|
|
199
|
+
await FileSystem.copyFile(Path.join(root, 'README.md'), Path.join(root, 'dist', commitHash, 'extensions', extensionId, 'README.md'));
|
|
200
|
+
for (const file of ['src', 'data', 'extension.json']) {
|
|
201
|
+
if (await FileSystem.exists(Path.join(extensionPath, file))) {
|
|
202
|
+
await FileSystem.copy(Path.join(extensionPath, file), Path.join(root, 'dist', commitHash, 'extensions', extensionId, file));
|
|
203
|
+
}
|
|
291
204
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
205
|
+
const extensionLanguages = [];
|
|
206
|
+
for (const language of languages) {
|
|
207
|
+
if (!language.tokenize) {
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
extensionLanguages.push({
|
|
211
|
+
...language,
|
|
212
|
+
tokenize: `${pathPrefix}/${commitHash}/extensions/${extensionId}/${language.tokenize}`,
|
|
213
|
+
});
|
|
297
214
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
const testFiles = await FileSystem.readDir(Path.join(extensionPath, 'test', 'cases'))
|
|
310
|
-
const fileMap = testFiles.map(toPlaygroundFile)
|
|
311
|
-
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'fileMap.json'), fileMap)
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
215
|
+
const builtinLanguages = await JsonFile.readJson(Path.join(root, 'dist', commitHash, 'config', 'languages.json'));
|
|
216
|
+
const mergedLanguages = mergeLanguages(builtinLanguages, extensionLanguages);
|
|
217
|
+
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'languages.json'), mergedLanguages);
|
|
218
|
+
if (await FileSystem.exists(Path.join(extensionPath, 'test', 'cases'))) {
|
|
219
|
+
await FileSystem.forceRemove(Path.join(root, 'dist', commitHash, 'playground'));
|
|
220
|
+
await FileSystem.copy(Path.join(extensionPath, 'test', 'cases'), Path.join(root, 'dist', commitHash, 'playground'));
|
|
221
|
+
const testFiles = await FileSystem.readDir(Path.join(extensionPath, 'test', 'cases'));
|
|
222
|
+
const fileMap = testFiles.map(toPlaygroundFile);
|
|
223
|
+
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'fileMap.json'), fileMap);
|
|
224
|
+
}
|
|
225
|
+
};
|
|
315
226
|
const addExtensionWebExtension = async ({ root, extensionPath, commitHash, extensionJson, pathPrefix, useSimpleWebExtensionFile }) => {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
|
|
227
|
+
if (!extensionJson.browser) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
const webExtensionPath = `${pathPrefix}/${commitHash}/extensions/${extensionJson.id}`;
|
|
231
|
+
if (useSimpleWebExtensionFile) {
|
|
232
|
+
const webExtensions = [webExtensionPath];
|
|
233
|
+
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'webExtensions.json'), webExtensions);
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
const webExtensions = [
|
|
237
|
+
{
|
|
238
|
+
...extensionJson,
|
|
239
|
+
isWeb: true,
|
|
240
|
+
path: webExtensionPath,
|
|
241
|
+
},
|
|
242
|
+
];
|
|
243
|
+
await JsonFile.writeJson(Path.join(root, 'dist', commitHash, 'config', 'webExtensions.json'), webExtensions);
|
|
244
|
+
for (const dirent of ['src', 'extension.json']) {
|
|
245
|
+
await FileSystem.copy(Path.join(extensionPath, dirent), Path.join(root, 'dist', commitHash, 'extensions', extensionJson.id, dirent));
|
|
246
|
+
}
|
|
247
|
+
};
|
|
338
248
|
const addExtension = async ({ root, extensionPath, commitHash, pathPrefix, useSimpleWebExtensionFile }) => {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}
|
|
370
|
-
|
|
249
|
+
const extensionJson = await readExtensionManifest(Path.join(extensionPath, 'extension.json'));
|
|
250
|
+
const name = extensionJson.name || extensionJson.id || '';
|
|
251
|
+
const description = extensionJson.description || '';
|
|
252
|
+
await addExtensionSeo({
|
|
253
|
+
root,
|
|
254
|
+
commitHash,
|
|
255
|
+
name,
|
|
256
|
+
description,
|
|
257
|
+
});
|
|
258
|
+
await addExtensionThemes({
|
|
259
|
+
root,
|
|
260
|
+
commitHash,
|
|
261
|
+
extensionJson,
|
|
262
|
+
extensionPath,
|
|
263
|
+
});
|
|
264
|
+
await addExtensionLanguages({
|
|
265
|
+
root,
|
|
266
|
+
extensionPath,
|
|
267
|
+
commitHash,
|
|
268
|
+
extensionJson,
|
|
269
|
+
pathPrefix,
|
|
270
|
+
});
|
|
271
|
+
await addExtensionWebExtension({
|
|
272
|
+
root,
|
|
273
|
+
extensionPath,
|
|
274
|
+
commitHash,
|
|
275
|
+
extensionJson,
|
|
276
|
+
pathPrefix,
|
|
277
|
+
useSimpleWebExtensionFile,
|
|
278
|
+
});
|
|
279
|
+
};
|
|
371
280
|
const generateTestOverviewHtml = (dirents) => {
|
|
372
|
-
|
|
281
|
+
const pre = `<!DOCTYPE html>
|
|
373
282
|
<html lang="en">
|
|
374
283
|
<head>
|
|
375
284
|
<meta charset="UTF-8" />
|
|
@@ -380,104 +289,94 @@ const generateTestOverviewHtml = (dirents) => {
|
|
|
380
289
|
<h1>Tests</h1>
|
|
381
290
|
<p>Available Tests</p>
|
|
382
291
|
<ul>
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
const post = ` </ul>
|
|
292
|
+
`;
|
|
293
|
+
let middle = ``;
|
|
294
|
+
// TODO properly escape name
|
|
295
|
+
for (const dirent of dirents) {
|
|
296
|
+
const name = dirent;
|
|
297
|
+
middle += ` <li><a href="./${name}.html">${name}</a></li>
|
|
298
|
+
`;
|
|
299
|
+
}
|
|
300
|
+
const post = ` </ul>
|
|
393
301
|
</body>
|
|
394
302
|
</html>
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
|
|
303
|
+
`;
|
|
304
|
+
return pre + middle + post;
|
|
305
|
+
};
|
|
399
306
|
const getName = (name) => {
|
|
400
|
-
|
|
401
|
-
}
|
|
307
|
+
return name.slice(0, -'.js'.length);
|
|
308
|
+
};
|
|
402
309
|
const isTestFile = (file) => {
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
|
|
310
|
+
return file !== '_all.js';
|
|
311
|
+
};
|
|
406
312
|
const getTestFiles = (testFilesRaw) => {
|
|
407
|
-
|
|
408
|
-
}
|
|
409
|
-
|
|
313
|
+
return testFilesRaw.map(getName).filter(isTestFile);
|
|
314
|
+
};
|
|
410
315
|
const addTestFiles = async ({ testPath, commitHash, root, pathPrefix }) => {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}
|
|
423
|
-
|
|
316
|
+
const testRoot = isAbsolute(testPath) ? testPath : join(root, testPath);
|
|
317
|
+
await FileSystem.copy(`${testRoot}/src`, `${root}/dist/${commitHash}/packages/extension-host-worker-tests/src`);
|
|
318
|
+
const testFilesRaw = await FileSystem.readDir(`${testRoot}/src`);
|
|
319
|
+
const testFiles = getTestFiles(testFilesRaw);
|
|
320
|
+
await FileSystem.mkdir(`${root}/dist/${commitHash}/tests`);
|
|
321
|
+
await FileSystem.mkdir(`${root}/dist/tests`);
|
|
322
|
+
for (const testFile of testFiles) {
|
|
323
|
+
await FileSystem.copyFile(`${root}/dist/index.html`, `${root}/dist/tests/${testFile}.html`);
|
|
324
|
+
}
|
|
325
|
+
const testOverviewHtml = generateTestOverviewHtml(testFiles);
|
|
326
|
+
await FileSystem.writeFile(`${root}/dist/tests/index.html`, testOverviewHtml);
|
|
327
|
+
};
|
|
424
328
|
/**
|
|
425
329
|
*
|
|
426
330
|
* @param {{root:string, pathPrefix:string , extensionPath:string, testPath:string, useSimpleWebExtensionFile?:boolean }} param0
|
|
427
331
|
*/
|
|
428
332
|
export const exportStatic = async ({ root, pathPrefix, extensionPath, testPath, useSimpleWebExtensionFile }) => {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
}
|
|
480
|
-
return {
|
|
481
|
-
commitHash,
|
|
482
|
-
}
|
|
483
|
-
}
|
|
333
|
+
if (!existsSync(root)) {
|
|
334
|
+
throw new Error(`root path does not exist: ${root}`);
|
|
335
|
+
}
|
|
336
|
+
if (!existsSync(extensionPath)) {
|
|
337
|
+
throw new Error(`extension path does not exist: ${extensionPath}`);
|
|
338
|
+
}
|
|
339
|
+
if (pathPrefix === 'auto') {
|
|
340
|
+
const extensionJson = await readExtensionManifest(Path.join(extensionPath, 'extension.json'));
|
|
341
|
+
const { id } = extensionJson;
|
|
342
|
+
const [author, name] = id.split('.');
|
|
343
|
+
pathPrefix = `/${name}`;
|
|
344
|
+
}
|
|
345
|
+
const dirents = await FileSystem.readDir(Path.join(root, 'node_modules', '@lvce-editor', 'server', 'static'));
|
|
346
|
+
const commitHash = dirents.find(isCommitHash) || '';
|
|
347
|
+
console.time('clean');
|
|
348
|
+
await clean(root);
|
|
349
|
+
console.timeEnd('clean');
|
|
350
|
+
console.time('copyStaticFiles');
|
|
351
|
+
await copyStaticFiles(root, commitHash);
|
|
352
|
+
console.timeEnd('copyStaticFiles');
|
|
353
|
+
console.time('applyOverrides');
|
|
354
|
+
await applyOverrides({
|
|
355
|
+
root,
|
|
356
|
+
commitHash,
|
|
357
|
+
pathPrefix,
|
|
358
|
+
});
|
|
359
|
+
console.timeEnd('applyOverrides');
|
|
360
|
+
console.time('addExtension');
|
|
361
|
+
await addExtension({
|
|
362
|
+
extensionPath,
|
|
363
|
+
commitHash,
|
|
364
|
+
pathPrefix,
|
|
365
|
+
root,
|
|
366
|
+
useSimpleWebExtensionFile,
|
|
367
|
+
});
|
|
368
|
+
console.timeEnd('addExtension');
|
|
369
|
+
if (testPath) {
|
|
370
|
+
console.time('addTestFiles');
|
|
371
|
+
await addTestFiles({
|
|
372
|
+
testPath,
|
|
373
|
+
commitHash,
|
|
374
|
+
pathPrefix,
|
|
375
|
+
root,
|
|
376
|
+
});
|
|
377
|
+
console.timeEnd('addTestFiles');
|
|
378
|
+
}
|
|
379
|
+
return {
|
|
380
|
+
commitHash,
|
|
381
|
+
};
|
|
382
|
+
};
|