Skip to content

Commit 025e58a

Browse files
committed
chore(web): satisfy biome formatting
1 parent cb69f95 commit 025e58a

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

packages/web/src/features/code-editor/actions/use-code-editor-actions.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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";
77
import { useCallback, useEffect, useRef, useState } from "react";
88
import { dispatchCommandAtom } from "../../../atoms/connection";
99
import { 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";
3027
import { monacoModelRegistry } from "../monaco/model-registry";
3128
import { parseSystemAgentInstructionsEditorPath } from "../system-agent-instructions-path";
3229
import {
@@ -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 ?? "");

packages/web/src/features/code-editor/components/monaco-host.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* in the Git Diff feature and is deliberately not surfaced here.
66
*/
77

8-
import { useAtomValue, useSetAtom, type PrimitiveAtom } from "jotai";
8+
import { type PrimitiveAtom, useAtomValue, useSetAtom } from "jotai";
99
import * as monaco from "monaco-editor";
1010
import { ICodeEditorService } from "monaco-editor/esm/vs/editor/browser/services/codeEditorService.js";
1111
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker";

packages/web/src/features/workspace/actions/use-workspace-screen-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ export function useWorkspaceScreenModel() {
339339

340340
const mainAreaMode: WorkspaceMainAreaMode =
341341
activeFilePath ||
342-
diffPreview?.kind === "commit-file-list" ||
343-
diffPreview?.kind === "commit-file-diff"
342+
diffPreview?.kind === "commit-file-list" ||
343+
diffPreview?.kind === "commit-file-diff"
344344
? "editor"
345345
: "agent";
346346

0 commit comments

Comments
 (0)