wip: vscode extension

This commit is contained in:
Frank
2025-07-21 19:10:51 -04:00
parent bec796e3c3
commit 5611ef8b28
10 changed files with 366 additions and 29 deletions

View File

@@ -12,6 +12,7 @@ import { Bus } from "../../bus"
import { Log } from "../../util/log"
import { FileWatcher } from "../../file/watch"
import { Mode } from "../../session/mode"
import { Ide } from "../../ide"
export const TuiCommand = cmd({
command: "$0 [project]",
@@ -116,6 +117,16 @@ export const TuiCommand = cmd({
})
.catch(() => {})
})()
;(async () => {
if (Ide.alreadyInstalled()) return
const ide = await Ide.ide()
if (ide === "unknown") return
await Ide.install(ide)
.then(() => {
Bus.publish(Ide.Event.Installed, { ide })
})
.catch(() => {})
})()
await proc.exited
server.stop()