UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

19 lines 722 B
/** * Language Detection * * Maps file extensions to LSP language identifiers. * Browser-safe — no Node.js dependencies. */ /** * Maps file extensions (including the dot) to LSP language identifiers. */ export declare const LANGUAGE_EXTENSIONS: Record<string, string>; /** * Get the LSP language ID for a file path based on its extension. * Returns undefined if the extension is not recognized. * * When `customExtensions` is provided, it is checked first, allowing * custom servers to register new file extensions or override built-in mappings. */ export declare function getLanguageId(filePath: string, customExtensions?: Record<string, string>): string | undefined; //# sourceMappingURL=language.d.ts.map