From 5e501d59a04428428279a5f0023757941c63a7e5 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Thu, 19 Mar 2026 15:46:20 -0600 Subject: [PATCH] fix: restore lsp single-server selector export --- packages/pi-coding-agent/src/core/lsp/config.ts | 3 +++ 1 file changed, 3 insertions(+) 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; +}