From 19faa0dbb77ce68226f7f4aa55b5735c80ad2279 Mon Sep 17 00:00:00 2001 From: Nicholas Rayburn <52075362+nrayburn-tech@users.noreply.github.com> Date: Tue, 19 Nov 2024 22:08:51 -0600 Subject: [PATCH] fix: Update supported file extensions (#90) --- .../oxcintellijplugin/lsp/OxcLspServerDescriptor.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/github/oxc/project/oxcintellijplugin/lsp/OxcLspServerDescriptor.kt b/src/main/kotlin/com/github/oxc/project/oxcintellijplugin/lsp/OxcLspServerDescriptor.kt index a17f8a3..eef0ebe 100644 --- a/src/main/kotlin/com/github/oxc/project/oxcintellijplugin/lsp/OxcLspServerDescriptor.kt +++ b/src/main/kotlin/com/github/oxc/project/oxcintellijplugin/lsp/OxcLspServerDescriptor.kt @@ -16,10 +16,14 @@ import org.eclipse.lsp4j.InitializeParams class OxcLspServerDescriptor(project: Project) : ProjectWideLspServerDescriptor(project, "Oxc") { companion object { - fun supportedFile(file: VirtualFile): Boolean { - return file.isInLocalFileSystem && listOf("js", "jsx", "ts", "tsx").contains( - file.extension) + return file.isInLocalFileSystem && listOf( + "astro", + "js", "jsx", "cjs", "mjs", + "svelte", + "ts", "tsx", "cts", "mts", + "vue" + ).contains(file.extension) } }