fix: allow LSP filename matching when extension is missing (#2975)

This commit is contained in:
Aiden Cline
2025-10-04 20:30:53 -05:00
committed by GitHub
parent 080fce9601
commit f41a54b4b0

View File

@@ -113,7 +113,7 @@ export namespace LSP {
async function getClients(file: string) {
const s = await state()
const extension = path.parse(file).ext
const extension = path.parse(file).ext || file
const result: LSPClient.Info[] = []
for (const server of Object.values(s.servers)) {
if (server.extensions.length && !server.extensions.includes(extension)) continue