Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: intellij not being visible even though it's installed #1828

Closedtomaspiaggio(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/1828/headopened View on GitHub

Showing 3 changed files with 92 additions and 16 deletions.

x
0 of 3 viewed, 3 left
37 additions and 3 deletionsapps/server/src/open.test.tsModified
View file
@@ -5,10 +5,12 @@
​
import {
isCommandAvailable,
+ isAppInstalled,
launchDetached,
resolveAvailableEditors,
resolveEditorLaunch,
} from "./open";
+import {EDITORS} from "@t3tools/contracts";
​
it.layer(NodeServices.layer)("resolveEditorLaunch", (it) => {
it.effect("returns commands for command-based editors", () =>
@@ -82,7 +84,8 @@
​
const ideaLaunch = yield* resolveEditorLaunch(
{ cwd: "/tmp/workspace", editor: "idea" },
- "darwin",
+ "linux",
+ { PATH: "" },
);
assert.deepEqual(ideaLaunch, {
command: "idea",
@@ -172,7 +175,8 @@
​
const ideaLineOnly = yield* resolveEditorLaunch(
{ cwd: "/tmp/workspace/AGENTS.md:48", editor: "idea" },
- "darwin",