Skip to content

Commit 225a769

Browse files
chore: generate
1 parent 0e20382 commit 225a769

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

packages/opencode/src/lsp/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,7 @@ export const Ty: Info = {
457457
if (!binary) {
458458
for (const venvPath of potentialVenvPaths) {
459459
const isWindows = process.platform === "win32"
460-
const potentialTyPath = isWindows
461-
? path.join(venvPath, "Scripts", "ty.exe")
462-
: path.join(venvPath, "bin", "ty")
460+
const potentialTyPath = isWindows ? path.join(venvPath, "Scripts", "ty.exe") : path.join(venvPath, "bin", "ty")
463461
if (await Filesystem.exists(potentialTyPath)) {
464462
binary = potentialTyPath
465463
break

packages/opencode/src/project/project.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ type Row = typeof ProjectTable.$inferSelect
5454

5555
export function fromRow(row: Row): Info {
5656
const icon =
57-
row.icon_url || row.icon_color
58-
? { url: row.icon_url ?? undefined, color: row.icon_color ?? undefined }
59-
: undefined
57+
row.icon_url || row.icon_color ? { url: row.icon_url ?? undefined, color: row.icon_color ?? undefined } : undefined
6058
return {
6159
id: row.id,
6260
worktree: row.worktree,
@@ -256,8 +254,7 @@ export const layer: Layer.Layer<
256254
time: { created: Date.now(), updated: Date.now() },
257255
}
258256

259-
if (Flag.OPENCODE_EXPERIMENTAL_ICON_DISCOVERY)
260-
yield* discover(existing).pipe(Effect.ignore, Effect.forkIn(scope))
257+
if (Flag.OPENCODE_EXPERIMENTAL_ICON_DISCOVERY) yield* discover(existing).pipe(Effect.ignore, Effect.forkIn(scope))
261258

262259
const result: Info = {
263260
...existing,

0 commit comments

Comments
 (0)