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

@@ -0,0 +1,21 @@
import { App } from "../../app/app"
import { VERSION } from "../version"
import { LSP } from "../../lsp"
import { cmd } from "./cmd"
export const ScrapCommand = cmd({
command: "scrap <file>",
builder: (yargs) =>
yargs.positional("file", { type: "string", demandOption: true }),
describe: "test command",
async handler(args) {
await App.provide(
{ cwd: process.cwd(), version: VERSION, printLogs: true },
async () => {
await LSP.file(args.file)
const diagnostics = await LSP.diagnostics()
console.log(diagnostics)
},
)
},
})