mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
sync
This commit is contained in:
parent
f03637b1fc
commit
73e9fb53d5
1 changed files with 4 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import { App } from "../../app/app"
|
import { App } from "../../app/app"
|
||||||
|
import { LSP } from "../../lsp"
|
||||||
import { VERSION } from "../version"
|
import { VERSION } from "../version"
|
||||||
import { cmd } from "./cmd"
|
import { cmd } from "./cmd"
|
||||||
|
|
||||||
|
|
@ -6,9 +7,10 @@ export const ScrapCommand = cmd({
|
||||||
command: "scrap <file>",
|
command: "scrap <file>",
|
||||||
builder: (yargs) =>
|
builder: (yargs) =>
|
||||||
yargs.positional("file", { type: "string", demandOption: true }),
|
yargs.positional("file", { type: "string", demandOption: true }),
|
||||||
async handler() {
|
async handler(args) {
|
||||||
await App.provide({ cwd: process.cwd(), version: VERSION }, async (app) => {
|
await App.provide({ cwd: process.cwd(), version: VERSION }, async (app) => {
|
||||||
Bun.resolveSync("typescript/lib/tsserver.js", app.path.cwd)
|
await LSP.touchFile(args.file, true)
|
||||||
|
console.log(await LSP.diagnostics())
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue