Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): Open in works on a service paired from the same T3 home #31358

Closedbinjamshid(GitHub profile, opens in a new tab)wants to merge 8 commits intomain fromrefs/pull/31358/headopened View on GitHub

Showing 18 changed files with 37 additions and 0 deletions (loading 15).

x
0 of 18 viewed, 18 left
19 additions and 0 deletionsapps/desktop/src/ipc/methods/window.test.tsModified
View file
@@ -20,6 +20,7 @@
BrowserWindow: { fromWebContents: ownerWindow },
}));
​
+import * as DesktopEnvironment from "../../app/DesktopEnvironment.ts";
import * as DesktopBackendConfiguration from "../../backend/DesktopBackendConfiguration.ts";
import * as DesktopBackendManager from "../../backend/DesktopBackendManager.ts";
import * as DesktopBackendPool from "../../backend/DesktopBackendPool.ts";
@@ -33,6 +34,7 @@
getLocalEnvironmentBootstraps,
installRelayTelemetryEnabled,
pickProjectFavicon,
+ getHomeEnvironmentId,
probeRemoteEditors,
readMedia,
} from "./window.ts";
@@ -386,3 +388,20 @@
assert.include(editors, "webstorm");
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
+​
+it.effect("reads the home's environment id and treats an unwritten home as none", () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const stateDir = yield* fs.makeTempDirectoryScoped({ prefix: "t3-home-environment-" });
+ const read = getHomeEnvironmentId.handler(undefined).pipe(
+ Effect.provideService(DesktopEnvironment.DesktopEnvironment, {