Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): installed editors no longer vanish when discovery is slow #13669

Mergedbfowler(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/13669/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 3 changed files with 97 additions and 2 deletions.

x
0 of 3 viewed, 3 left
6 additions and 2 deletionsapps/server/src/process/externalLauncher.tsModified
View file
@@ -20,7 +20,11 @@
} from "@t3tools/contracts";
import { resolveEditorCommand } from "@t3tools/shared/editor";
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
-import { isCommandAvailable, resolveSpawnCommand } from "@t3tools/shared/shell";
+import {
+ isCommandAvailable,
+ resolveSpawnCommand,
+ withPathDirectoryListings,
+} from "@t3tools/shared/shell";
import * as Clock from "effect/Clock";
import * as Config from "effect/Config";
import * as Context from "effect/Context";
@@ -442,7 +446,7 @@
const resolveAvailableEditors = Effect.fn("externalLauncher.resolveAvailableEditors")(function* () {
const platform = yield* HostProcessPlatform;
const env = { ...(yield* readBrowserLaunchEnv), ...(yield* readCommandLookupEnv) };
- return yield* buildAvailableEditors(platform, env);
+ return yield* buildAvailableEditors(platform, env).pipe(withPathDirectoryListings);
});
​
const resolveFileManagerRevealKind = Effect.fn("externalLauncher.resolveFileManagerRevealKind")(
35 additions and 0 deletionspackages/shared/src/shell.test.tsModified
View file
@@ -25,6 +25,7 @@
resolveWindowsEnvironment,
SpawnExecutableResolution,