lsp progress

This commit is contained in:
Dax Raad
2025-06-05 23:42:04 -04:00
parent 16520261f4
commit 265f427d2a
13 changed files with 169 additions and 105 deletions

View File

@@ -32,7 +32,11 @@ export namespace App {
const APP_JSON = "app.json"
async function create(input: { cwd: string; version: string }) {
async function create(input: {
cwd: string
version: string
printLogs?: boolean
}) {
const git = await Filesystem.findUp(".git", input.cwd).then((x) =>
x ? path.dirname(x) : undefined,
)
@@ -58,7 +62,7 @@ export namespace App {
}
>()
await Log.file(path.join(data, "log"))
if (!input.printLogs) await Log.file(path.join(data, "log"))
const info: Info = {
user: os.userInfo().username,
@@ -106,7 +110,7 @@ export namespace App {
}
export async function provide<T extends (app: Info) => any>(
input: { cwd: string; version: string },
input: { cwd: string; version: string; printLogs?: boolean },
cb: T,
) {
const app = await create(input)