diff --git a/packages/pi-coding-agent/src/core/lsp/config.ts b/packages/pi-coding-agent/src/core/lsp/config.ts index 39c2374df..cc104be21 100644 --- a/packages/pi-coding-agent/src/core/lsp/config.ts +++ b/packages/pi-coding-agent/src/core/lsp/config.ts @@ -319,3 +319,6 @@ export function getServersForFile(config: LspConfig, filePath: string): Array<[s }); } +export function getServerForFile(config: LspConfig, filePath: string): [string, ServerConfig] | null { + return getServersForFile(config, filePath)[0] ?? null; +}