chore: generate
This commit is contained in:
@@ -457,9 +457,7 @@ export const Ty: Info = {
|
|||||||
if (!binary) {
|
if (!binary) {
|
||||||
for (const venvPath of potentialVenvPaths) {
|
for (const venvPath of potentialVenvPaths) {
|
||||||
const isWindows = process.platform === "win32"
|
const isWindows = process.platform === "win32"
|
||||||
const potentialTyPath = isWindows
|
const potentialTyPath = isWindows ? path.join(venvPath, "Scripts", "ty.exe") : path.join(venvPath, "bin", "ty")
|
||||||
? path.join(venvPath, "Scripts", "ty.exe")
|
|
||||||
: path.join(venvPath, "bin", "ty")
|
|
||||||
if (await Filesystem.exists(potentialTyPath)) {
|
if (await Filesystem.exists(potentialTyPath)) {
|
||||||
binary = potentialTyPath
|
binary = potentialTyPath
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -54,9 +54,7 @@ type Row = typeof ProjectTable.$inferSelect
|
|||||||
|
|
||||||
export function fromRow(row: Row): Info {
|
export function fromRow(row: Row): Info {
|
||||||
const icon =
|
const icon =
|
||||||
row.icon_url || row.icon_color
|
row.icon_url || row.icon_color ? { url: row.icon_url ?? undefined, color: row.icon_color ?? undefined } : undefined
|
||||||
? { url: row.icon_url ?? undefined, color: row.icon_color ?? undefined }
|
|
||||||
: undefined
|
|
||||||
return {
|
return {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
worktree: row.worktree,
|
worktree: row.worktree,
|
||||||
@@ -256,8 +254,7 @@ export const layer: Layer.Layer<
|
|||||||
time: { created: Date.now(), updated: Date.now() },
|
time: { created: Date.now(), updated: Date.now() },
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Flag.OPENCODE_EXPERIMENTAL_ICON_DISCOVERY)
|
if (Flag.OPENCODE_EXPERIMENTAL_ICON_DISCOVERY) yield* discover(existing).pipe(Effect.ignore, Effect.forkIn(scope))
|
||||||
yield* discover(existing).pipe(Effect.ignore, Effect.forkIn(scope))
|
|
||||||
|
|
||||||
const result: Info = {
|
const result: Info = {
|
||||||
...existing,
|
...existing,
|
||||||
|
|||||||
Reference in New Issue
Block a user