File tree Expand file tree Collapse file tree
apps/desktop/src/ipc/methods Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
1515} from "@t3tools/contracts" ;
1616import { WORKSPACE_IMAGE_PREVIEW_EXTENSIONS } from "@t3tools/shared/filePreview" ;
1717import { resolveEditorCommand } from "@t3tools/shared/editor" ;
18- import { HostProcessEnvironment } from "@t3tools/shared/hostProcess" ;
18+ import * as HostProcess from "@t3tools/shared/hostProcess" ;
1919import * as NodeOS from "node:os" ;
2020import * as FileSystem from "effect/FileSystem" ;
2121import * 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 ) ) ) {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as FileSystem from "effect/FileSystem";
44import * as Option from "effect/Option" ;
55import * as Path from "effect/Path" ;
66
7- import { HostProcessPlatform } from "./hostProcess.ts" ;
7+ import * as HostProcess from "./hostProcess.ts" ;
88import { isCommandAvailable } from "./shell.ts" ;
99
1010type 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 ;
You can’t perform that action at this time.
0 commit comments