Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite the language server on top of a ruff_server fork #126

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ba8d566
Add support for reading `air.toml` in the CLI and LSP
DavisVaughan Dec 20, 2024
2a8b891
Temp
DavisVaughan Dec 24, 2024
cfc19e9
Review `ruff_source_file`, merge in our line ending tools
DavisVaughan Dec 26, 2024
95487aa
Drop ruff_text_size in favor of biome's
DavisVaughan Dec 26, 2024
7ae11db
Add in support for view `ViewFile` LSP method
DavisVaughan Dec 26, 2024
b3a24eb
Eat unused `setTrace` notification
DavisVaughan Dec 26, 2024
cd1705b
Add range formatting support, add test client support
DavisVaughan Jan 1, 2025
f94e493
Extract out `TextSize` proto bits
DavisVaughan Jan 2, 2025
1f4605a
Check for incoming messages during `shutdown()`
DavisVaughan Jan 2, 2025
fd66159
Assert same `RequestId` on shutdown
DavisVaughan Jan 2, 2025
11fbbb2
Use `ErrorVec` approach in `DidChangeWorkspace`
DavisVaughan Jan 2, 2025
3c58e80
Add tracing
DavisVaughan Jan 2, 2025
10fe146
Move `FormatResponse` around
DavisVaughan Jan 2, 2025
d3212bd
Make `define_document_url` less magical
DavisVaughan Jan 2, 2025
4bb77d3
Nuke the old lsp
DavisVaughan Jan 2, 2025
80fb276
Rename `ruff_source_file` to `source_file`
DavisVaughan Jan 2, 2025
e937806
Rename `ruff_server` to `server`
DavisVaughan Jan 2, 2025
0c5b612
Remove ruff attribution in code blocks (will be added elsewhere)
DavisVaughan Jan 2, 2025
cde63e9
Remove internal references to ruff
DavisVaughan Jan 2, 2025
455c767
`cargo machete` clean up
DavisVaughan Jan 2, 2025
c9142a5
Remove ruff specific TODOs
DavisVaughan Jan 2, 2025
1739f0c
Don't need resolved capabilities in snapshots right now
DavisVaughan Jan 2, 2025
3e40f5a
Remove some `dead_code`s
DavisVaughan Jan 2, 2025
dbc7ae6
Spacing
DavisVaughan Jan 2, 2025
5daa24a
Prefer `anyhow::Result` not `crate::Result`
DavisVaughan Jan 2, 2025
5084673
Add a `SourceFile` for ergonomics
DavisVaughan Jan 2, 2025
f7c251f
Rename `edit` to `document`
DavisVaughan Jan 2, 2025
10ba9ce
Use a global test client accessible through `with_client()`
DavisVaughan Jan 2, 2025
8368ea2
Separate settings discovery from `SettingsResolver`
DavisVaughan Jan 3, 2025
ca41f92
Use `Arc<Settings>` in the LSP
DavisVaughan Jan 3, 2025
cf6715a
Add a test for `AIR_CRATE_NAMES`
DavisVaughan Jan 3, 2025
1391463
Adjust `LICENSE` to reflect `server` fork
DavisVaughan Jan 3, 2025
32f8dcf
Internally handle errors when opening/closing/reloading workspace set…
DavisVaughan Jan 3, 2025
bbd2a47
Remove not needed `clone()`
DavisVaughan Jan 3, 2025
951794c
Remove unused clippy allow
DavisVaughan Jan 3, 2025
2c58036
Simplify by letting `apply_changes()` handle the empty case
DavisVaughan Jan 3, 2025
a959982
Add some documentation around the `make_mut()` call
DavisVaughan Jan 3, 2025
8c1ae65
We use >=1.83 MSRV, so can use `PanicHookInfo` directly
DavisVaughan Jan 3, 2025
b11f252
Sort packages in `AIR_CRATE_NAMES`
DavisVaughan Jan 3, 2025
931f051
No longer need `--test-threads 1`
DavisVaughan Jan 3, 2025
50af6f9
Trim dependencies in the workspace toml
DavisVaughan Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ jobs:
env:
AIR_LOG_LEVEL: trace
# `--nocapture` to see our own `tracing` logs
# `--test-threads 1` to ensure `tracing` logs aren't interleaved
run: cargo test -- --nocapture --test-threads 1
run: cargo test -- --nocapture
3 changes: 1 addition & 2 deletions .github/workflows/test-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ jobs:
env:
AIR_LOG_LEVEL: trace
# `--nocapture` to see our own `tracing` logs
# `--test-threads 1` to ensure `tracing` logs aren't interleaved
run: cargo test -- --nocapture --test-threads 1
run: cargo test -- --nocapture
3 changes: 1 addition & 2 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ jobs:
env:
AIR_LOG_LEVEL: trace
# `--nocapture` to see our own `tracing` logs
# `--test-threads 1` to ensure `tracing` logs aren't interleaved
run: cargo test -- --nocapture --test-threads 1
run: cargo test -- --nocapture
Loading
Loading