feat(server): add diagnosticsOnly flag for lint-only servers

Add diagnosticsOnly?: boolean to ServerConfig. When set, the server is
excluded from pickServer() (hover/definition/references/completion/
documentSymbol) but still included in pickDiagnosticServers() for
lsp_diagnostics and auto-check.

Mark oxlint as diagnosticsOnly: true — it now contributes diagnostics
alongside typescript-language-server without interfering with navigation
or completion tools.
This commit is contained in:
2026-05-04 07:41:39 -04:00
parent b9808a8b1f
commit e40c93fc80
3 changed files with 7 additions and 2 deletions

View File

@@ -64,5 +64,6 @@ export const servers: ServerConfig[] = [
args: ["--lsp"],
rootMarkers: [".oxlintrc.json", "oxlint.config.json"],
languageId: "typescript",
diagnosticsOnly: true,
},
];