@@ -3,7 +3,7 @@ import type {
33 GitCommitFileEntry ,
44 GitFileDiffPayload ,
55} from "@coder-studio/core" ;
6- import { useAtom , useAtomValue , useSetAtom , type PrimitiveAtom } from "jotai" ;
6+ import { type PrimitiveAtom , useAtom , useAtomValue , useSetAtom } from "jotai" ;
77import { useCallback , useEffect , useRef , useState } from "react" ;
88import { dispatchCommandAtom } from "../../../atoms/connection" ;
99import { activeWorkspaceAtom } from "../../../atoms/workspaces" ;
@@ -23,10 +23,7 @@ import {
2323 openFilesAtomFamily ,
2424 type WorkspaceEditorMode ,
2525} from "../../workspace/atoms" ;
26- import {
27- type PendingEditorNavigation ,
28- pendingEditorNavigationAtomFamily ,
29- } from "../atoms" ;
26+ import { type PendingEditorNavigation , pendingEditorNavigationAtomFamily } from "../atoms" ;
3027import { monacoModelRegistry } from "../monaco/model-registry" ;
3128import { parseSystemAgentInstructionsEditorPath } from "../system-agent-instructions-path" ;
3229import {
@@ -100,7 +97,8 @@ export function useCodeEditorActions(options: CodeEditorActionsOptions = {}) {
10097 } | null > ( null ) ;
10198
10299 const workspaceId = workspace ?. id ;
103- const activeFilePathAtom = options . activeFilePathAtom ?? activeFilePathAtomFamily ( workspaceId ?? "" ) ;
100+ const activeFilePathAtom =
101+ options . activeFilePathAtom ?? activeFilePathAtomFamily ( workspaceId ?? "" ) ;
104102 const editorModeAtom = options . editorModeAtom ?? editorModeAtomFamily ( workspaceId ?? "" ) ;
105103 const pendingNavigationAtom =
106104 options . pendingNavigationAtom ?? pendingEditorNavigationAtomFamily ( workspaceId ?? "" ) ;
0 commit comments