Skip to content

Commit fd6a6d4

Browse files
Honasdeonvacation
authored andcommitted
feat: support pull diagnostics in the LSP client (C#, Kotlin, etc) (anomalyco#23771)
1 parent afb6793 commit fd6a6d4

12 files changed

Lines changed: 1151 additions & 158 deletions

File tree

packages/opencode/src/cli/cmd/debug/lsp.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { bootstrap } from "../../bootstrap"
33
import { cmd } from "../cmd"
44
import { Log } from "../../../util/log"
55
import { EOL } from "os"
6-
import { setTimeout as sleep } from "node:timers/promises"
76

87
export const LSPCommand = cmd({
98
command: "lsp",
@@ -19,8 +18,7 @@ const DiagnosticsCommand = cmd({
1918
builder: (yargs) => yargs.positional("file", { type: "string", demandOption: true }),
2019
async handler(args) {
2120
await bootstrap(process.cwd(), async () => {
22-
await LSP.touchFile(args.file, true)
23-
await sleep(1000)
21+
await LSP.touchFile(args.file, "full")
2422
process.stdout.write(JSON.stringify(await LSP.diagnostics(), null, 2) + EOL)
2523
})
2624
},

0 commit comments

Comments
 (0)