mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 02:34:21 +01:00
sync
This commit is contained in:
@@ -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())
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user