Update LSP client/server and CLI scrap command functionality

🤖 Generated with [OpenCode](https://opencode.ai)

Co-Authored-By: OpenCode <noreply@opencode.ai>
This commit is contained in:
Dax Raad
2025-06-10 10:46:55 -04:00
parent 0e58f488df
commit 96b5a079ff
3 changed files with 17 additions and 11 deletions

View File

@@ -1,6 +1,5 @@
import { App } from "../../app/app"
import { VERSION } from "../version"
import { LSP } from "../../lsp"
import { cmd } from "./cmd"
export const ScrapCommand = cmd({
@@ -8,10 +7,9 @@ export const ScrapCommand = cmd({
builder: (yargs) =>
yargs.positional("file", { type: "string", demandOption: true }),
describe: "test command",
async handler(args) {
await App.provide({ cwd: process.cwd(), version: VERSION }, async () => {
await LSP.touchFile(args.file, true)
await LSP.diagnostics()
async handler() {
await App.provide({ cwd: process.cwd(), version: VERSION }, async (app) => {
Bun.resolveSync("typescript/lib/tsserver.js", app.path.cwd)
})
},
})