summaryrefslogtreecommitdiff
path: root/tests/util/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/util/server/src')
-rw-r--r--tests/util/server/src/lsp.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/util/server/src/lsp.rs b/tests/util/server/src/lsp.rs
index b615ed475..85879d9d8 100644
--- a/tests/util/server/src/lsp.rs
+++ b/tests/util/server/src/lsp.rs
@@ -1301,6 +1301,8 @@ impl SourceFile {
let lang = match path.as_path().extension().unwrap().to_str().unwrap() {
"js" => "javascript",
"ts" | "d.ts" => "typescript",
+ "jsx" => "javascriptreact",
+ "tsx" => "typescriptreact",
"json" => "json",
"md" => "markdown",
other => panic!("unsupported file extension: {other}"),