Skip to content

Commit 469a479

Browse files
committed
⬆️ Upgrade lsp-tree-sitter
1 parent dc033f5 commit 469a479

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- windows-latest
3131
runs-on: ${{matrix.runs-on}}
3232
steps:
33-
- uses: actions/checkout@v3
34-
- uses: actions/setup-python@v4
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-python@v5
3535
with:
3636
python-version: ${{env.python-version}}
3737
cache: ${{env.cache}}
@@ -44,7 +44,7 @@ jobs:
4444
- name: Test
4545
run: |
4646
pytest --cov
47-
- uses: codecov/codecov-action@v3
47+
- uses: codecov/codecov-action@v4
4848
build:
4949
needs: test
5050
strategy:
@@ -56,8 +56,8 @@ jobs:
5656
- windows-latest
5757
runs-on: ${{matrix.runs-on}}
5858
steps:
59-
- uses: actions/checkout@v3
60-
- uses: actions/setup-python@v4
59+
- uses: actions/checkout@v4
60+
- uses: actions/setup-python@v5
6161
with:
6262
python-version: ${{env.python-version}}
6363
cache: ${{env.cache}}
@@ -74,12 +74,12 @@ jobs:
7474
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
7575
with:
7676
password: ${{secrets.PYPI_API_TOKEN}}
77-
- uses: actions/upload-artifact@v3
77+
- uses: actions/upload-artifact@v4
7878
if: runner.os == 'Linux' && ! startsWith(github.ref, 'refs/tags/')
7979
with:
8080
path: |
8181
dist/*
82-
- uses: softprops/action-gh-release@v1
82+
- uses: softprops/action-gh-release@v2
8383
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
8484
with:
8585
# body_path: build/CHANGELOG.md

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ repos:
6464
- mdformat-myst
6565
- mdformat-toc
6666
- mdformat-deflist
67-
- mdformat-beautysh
67+
# - mdformat-beautysh
6868
- mdformat-ruff
6969
- mdformat-config
7070
- mdformat-web
@@ -75,12 +75,12 @@ repos:
7575
additional_dependencies:
7676
- markdown-it-texmath
7777
- repo: https://github.com/astral-sh/ruff-pre-commit
78-
rev: v0.14.1
78+
rev: v0.14.2
7979
hooks:
8080
- id: ruff-check
8181
- id: ruff-format
8282
- repo: https://github.com/kumaraditya303/mirrors-pyright
83-
rev: v1.1.406
83+
rev: v1.1.407
8484
hooks:
8585
- id: pyright
8686

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env -S pip install -r
22

3-
lsp-tree-sitter
3+
lsp-tree-sitter >= 0.1.0
44
pygls >= 2.0.0
55
tree-sitter-tmux

src/tmux_language_server/finders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImportTmuxFinder(QueryFinder):
1717

1818
def __init__(
1919
self,
20-
message: str = "{{uni.get_text()}}: found",
20+
message: str = "{{uni.text}}: found",
2121
severity: DiagnosticSeverity = DiagnosticSeverity.Information,
2222
):
2323
r"""Init.

src/tmux_language_server/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def hover(params: TextDocumentPositionParams) -> Hover | None:
9292
)
9393
if uni is None:
9494
return None
95-
text = uni.get_text()
95+
text = uni.text
9696
result = None
9797
if uni.node.range.start_point[1] == 0:
9898
result = get_schema()["properties"].get(text)
@@ -104,7 +104,7 @@ def hover(params: TextDocumentPositionParams) -> Hover | None:
104104
return None
105105
return Hover(
106106
MarkupContent(MarkupKind.Markdown, result["description"]),
107-
uni.get_range(),
107+
uni.range,
108108
)
109109

110110
@self.feature(TEXT_DOCUMENT_COMPLETION)
@@ -121,7 +121,7 @@ def completions(params: CompletionParams) -> CompletionList:
121121
)
122122
if uni is None:
123123
return CompletionList(False, [])
124-
text = uni.get_text()
124+
text = uni.text
125125
if uni.node.range.start_point[1] == 0:
126126
return CompletionList(
127127
False,

0 commit comments

Comments
 (0)