Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): a slow PowerShell profile delays Windows startup by 5 s, not 10 #19467

Mergedluke2x(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/19467/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 94 additions and 2 deletions.

x
0 of 2 viewed, 2 left
88 additions and 1 deletionapps/desktop/src/shell/DesktopShellEnvironment.test.tsModified
View file
@@ -1,6 +1,9 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
+import * as Clock from "effect/Clock";
import { assert, describe, it } from "@effect/vitest";
+import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
+import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as Logger from "effect/Logger";
import * as PlatformError from "effect/PlatformError";
@@ -9,6 +12,7 @@
import * as Stream from "effect/Stream";
import * as ChildProcess from "effect/process/ChildProcess";
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
+import * as TestClock from "effect/testing/TestClock";
import * as NodeOS from "node:os";
import { vi } from "vite-plus/test";
​
@@ -74,7 +78,10 @@
readonly userShell?: string;
readonly handler: (
command: ChildProcess.Command,
- ) => string | { output: string; exitCode: number };
+ ) =>
+ | string
+ | { output: string; exitCode: number }
+ | Effect.Effect<ChildProcessSpawner.ChildProcessHandle, PlatformError.PlatformError>;
readonly failure?: PlatformError.PlatformError;
}) {