Extend the set of file extensions used for Python, JS, TS

This commit is contained in:
Dominik Jain committed 2025-04-08 00:52:00 +02:00
1 parent b0884bb1fd
commit 50fb559c7c
2 files changed
+6 -3

No files matched your search

+3
View File
@@ -2,6 +2,9 @@
Changes prior to the next official version change will appear here.
* Language Servers:
* Add further file extensions considered by the language servers for Python (.pyi), JavaScript (.jsx) and TypeScript (.tsx, .jsx)
# 2025-04-07
> **Breaking Config Changes**: make sure to set `ignore_all_files_in_gitignore`, remove `ignore_dirs`
+3 -3
View File
@@ -41,13 +41,13 @@ class Language(str, Enum):
def get_source_fn_matcher(self) -> FilenameMatcher:
match self:
case self.PYTHON:
return FilenameMatcher("*.py")
return FilenameMatcher("*.py", "*.pyi")
case self.JAVA:
return FilenameMatcher("*.java")
case self.TYPESCRIPT:
return FilenameMatcher("*.ts", "*.js")
return FilenameMatcher("*.ts", "*.js", "*.jsx", "*.tsx")
case self.JAVASCRIPT:
return FilenameMatcher("*.js")
return FilenameMatcher("*.js", "*.jsx")
case self.CSHARP:
return FilenameMatcher("*.cs")
case self.RUST: