Skip to content

Commit

Permalink
fix: Update supported file extensions (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrayburn-tech authored Nov 20, 2024
1 parent 0446c29 commit 19faa0d
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 19faa0d

Please sign in to comment.