mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-17 10:14:45 +00:00
Extend the set of file extensions used for Python, JS, TS
This commit is contained in:
1 parent
b0884bb1fd
commit
50fb559c7c
2 files changed
+6
-3
No files matched your search
@@ -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`
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user