|
@@ -1,6 +1,5 @@
|
|
|
import { App } from "../../app/app"
|
|
import { App } from "../../app/app"
|
|
|
import { VERSION } from "../version"
|
|
import { VERSION } from "../version"
|
|
|
-import { LSP } from "../../lsp"
|
|
|
|
|
import { cmd } from "./cmd"
|
|
import { cmd } from "./cmd"
|
|
|
|
|
|
|
|
export const ScrapCommand = cmd({
|
|
export const ScrapCommand = cmd({
|
|
@@ -8,10 +7,9 @@ export const ScrapCommand = cmd({
|
|
|
builder: (yargs) =>
|
|
builder: (yargs) =>
|
|
|
yargs.positional("file", { type: "string", demandOption: true }),
|
|
yargs.positional("file", { type: "string", demandOption: true }),
|
|
|
describe: "test command",
|
|
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)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|