Skip to content

Commit e8e3c53

Browse files
committed
Update client.ts
1 parent 25b4bae commit e8e3c53

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/opencode/src/lsp/client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,10 @@ export async function create(input: { serverID: string; server: LSPServer.Handle
265265
)
266266
if (!hasStaticPullDiagnostics && registrations.length === 0) return false
267267

268-
const results = [await requestDiagnosticReport(filePath)]
268+
const results: Awaited<ReturnType<typeof requestDiagnosticReport>>[] = []
269+
if (hasStaticPullDiagnostics) {
270+
results.push(await requestDiagnosticReport(filePath))
271+
}
269272
const identifiers = new Set(
270273
registrations
271274
.map((registration) => registration.registerOptions?.identifier)

0 commit comments

Comments
 (0)