Skip to content

Commit 76a54e6

Browse files
committed
fix: preserve host process service namespaces
1 parent 89703de commit 76a54e6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/desktop/src/ipc/methods/window.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "@t3tools/contracts";
1616
import { WORKSPACE_IMAGE_PREVIEW_EXTENSIONS } from "@t3tools/shared/filePreview";
1717
import { resolveEditorCommand } from "@t3tools/shared/editor";
18-
import { HostProcessEnvironment } from "@t3tools/shared/hostProcess";
18+
import * as HostProcess from "@t3tools/shared/hostProcess";
1919
import * as NodeOS from "node:os";
2020
import * as FileSystem from "effect/FileSystem";
2121
import * as Path from "effect/Path";
@@ -336,7 +336,7 @@ export const probeRemoteEditors = DesktopIpc.makeIpcMethod({
336336
result: Schema.Array(EditorId),
337337
handler: Effect.fn("desktop.ipc.window.probeRemoteEditors")(function* () {
338338
const available: Array<EditorId> = [];
339-
const env = yield* HostProcessEnvironment;
339+
const env = yield* HostProcess.HostProcessEnvironment;
340340
for (const editorId of REMOTE_CAPABLE_EDITOR_IDS) {
341341
const editor = EDITORS.find((editor) => editor.id === editorId);
342342
if (editor && Option.isSome(yield* resolveEditorCommand(editor, env))) {

‎packages/shared/src/editor.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as FileSystem from "effect/FileSystem";
44
import * as Option from "effect/Option";
55
import * as Path from "effect/Path";
66

7-
import { HostProcessPlatform } from "./hostProcess.ts";
7+
import * as HostProcess from "./hostProcess.ts";
88
import { isCommandAvailable } from "./shell.ts";
99

1010
type Editor = (typeof EDITORS)[number];
@@ -27,7 +27,7 @@ export const resolveEditorCommand = Effect.fn("editor.resolveEditorCommand")(fun
2727
if (yield* isCommandAvailable(command, { env })) return Option.some({ command, baseArgs });
2828
}
2929

30-
const platform = yield* HostProcessPlatform;
30+
const platform = yield* HostProcess.HostProcessPlatform;
3131
const path = yield* Path.Path;
3232
const fs = yield* FileSystem.FileSystem;
3333
const home = env.HOME;

0 commit comments

Comments
 (0)