We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9679ba commit 376a0c9Copy full SHA for 376a0c9
src/termux_language_server/utils.py
@@ -27,10 +27,9 @@ def get_query(name: str, filetype: str = "bash") -> Query:
27
if name not in QUERIES:
28
with open(
29
os.path.join(
30
- os.path.join(
31
- os.path.join(os.path.dirname(__file__), "assets"),
32
- "queries",
33
- ),
+ os.path.dirname(__file__),
+ "assets",
+ "queries",
34
f"{name}{os.path.extsep}scm",
35
)
36
) as f:
@@ -49,10 +48,9 @@ def get_schema(filetype: FILETYPE) -> dict[str, Any]:
49
48
"""
50
if filetype not in SCHEMAS:
51
file = os.path.join(
52
53
54
- "json",
55
+ "json",
56
f"{filetype}.json",
57
58
with open(file) as f:
0 commit comments