Quellcode durchsuchen

chore: generate

opencode-agent[bot] vor 20 Stunden
Ursprung
Commit
225a769411
2 geänderte Dateien mit 3 neuen und 8 gelöschten Zeilen
  1. 1 3
      packages/opencode/src/lsp/server.ts
  2. 2 5
      packages/opencode/src/project/project.ts

+ 1 - 3
packages/opencode/src/lsp/server.ts

@@ -457,9 +457,7 @@ export const Ty: Info = {
     if (!binary) {
       for (const venvPath of potentialVenvPaths) {
         const isWindows = process.platform === "win32"
-        const potentialTyPath = isWindows
-          ? path.join(venvPath, "Scripts", "ty.exe")
-          : path.join(venvPath, "bin", "ty")
+        const potentialTyPath = isWindows ? path.join(venvPath, "Scripts", "ty.exe") : path.join(venvPath, "bin", "ty")
         if (await Filesystem.exists(potentialTyPath)) {
           binary = potentialTyPath
           break

+ 2 - 5
packages/opencode/src/project/project.ts

@@ -54,9 +54,7 @@ type Row = typeof ProjectTable.$inferSelect
 
 export function fromRow(row: Row): Info {
   const icon =
-    row.icon_url || row.icon_color
-      ? { url: row.icon_url ?? undefined, color: row.icon_color ?? undefined }
-      : undefined
+    row.icon_url || row.icon_color ? { url: row.icon_url ?? undefined, color: row.icon_color ?? undefined } : undefined
   return {
     id: row.id,
     worktree: row.worktree,
@@ -256,8 +254,7 @@ export const layer: Layer.Layer<
             time: { created: Date.now(), updated: Date.now() },
           }
 
-      if (Flag.OPENCODE_EXPERIMENTAL_ICON_DISCOVERY)
-        yield* discover(existing).pipe(Effect.ignore, Effect.forkIn(scope))
+      if (Flag.OPENCODE_EXPERIMENTAL_ICON_DISCOVERY) yield* discover(existing).pipe(Effect.ignore, Effect.forkIn(scope))
 
       const result: Info = {
         ...existing,