We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25b4bae commit e8e3c53Copy full SHA for e8e3c53
1 file changed
packages/opencode/src/lsp/client.ts
@@ -265,7 +265,10 @@ export async function create(input: { serverID: string; server: LSPServer.Handle
265
)
266
if (!hasStaticPullDiagnostics && registrations.length === 0) return false
267
268
- const results = [await requestDiagnosticReport(filePath)]
+ const results: Awaited<ReturnType<typeof requestDiagnosticReport>>[] = []
269
+ if (hasStaticPullDiagnostics) {
270
+ results.push(await requestDiagnosticReport(filePath))
271
+ }
272
const identifiers = new Set(
273
registrations
274
.map((registration) => registration.registerOptions?.identifier)
0 commit comments