export interface LspServerConfig { command: string; args: string[]; rootPatterns: string[]; } const TS_CONFIG: LspServerConfig = { command: 'typescript-language-server', args: ['--stdio'], rootPatterns: ['package.json', 'tsconfig.json'], }; const SUPPORTED_EXTS = new Set(['ts', 'tsx', 'js', 'jsx', 'mjs', 'cjs']); export function getServerConfig(filePath: string): LspServerConfig | null { const ext = filePath.split('.').pop()?.toLowerCase(); if (ext && SUPPORTED_EXTS.has(ext)) return TS_CONFIG; return null; }