Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: detect installed editors outside PATH #12439

MergedBil0000(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/12439/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 6 changed files with 195 additions and 12 deletions (loading 3).

x
0 of 6 viewed, 6 left
36 additions and 0 deletionsapps/desktop/src/ipc/methods/window.test.tsModified
View file
@@ -1,4 +1,8 @@
import { assert, describe, it } from "@effect/vitest";
+import * as NodeServices from "@effect/platform-node/NodeServices";
+import { HostProcessEnvironment, HostProcessPlatform } from "@t3tools/shared/hostProcess";
+import * as FileSystem from "effect/FileSystem";
+import * as Path from "effect/Path";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
@@ -26,6 +30,7 @@
getWindowFullscreenState,
pasteAsText,
pickProjectFavicon,
+ probeRemoteEditors,
} from "./window.ts";
​
const readyWslConfig: DesktopBackendManager.DesktopBackendStartConfig = {
@@ -262,3 +267,34 @@
}),
});
+​
+it.effect.skipIf(HostProcessPlatform.defaultValue() === "win32")(
+ "finds remote editors installed without PATH launchers",
+ () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const home = yield* fs.makeTempDirectoryScoped({ prefix: "t3-remote-editors-" });