Andrei Listochkin
33d2c8a3f9
Enable variable substitutions before passing them over to R-A server
2022-05-11 15:53:28 +01:00
Lukas Wirth
d6dba1c97c
auto update old configurations to newer ones
2022-05-01 19:57:09 +02:00
Laurențiu Nicola
bfa2a08da1
Update for languageclient API changes
2022-04-08 14:24:28 +03:00
Andrew Onyshchuk
a05e09acbe
Support <code> blocks from Rust docs
2022-01-27 11:46:04 -08:00
Aleksey Kladov
be84f85c1d
feat: gate custom clint-side commands behind capabilities
...
Some features of rust-analyzer requires support for custom commands on
the client side. Specifically, hover & code lens need this.
Stock LSP doesn't have a way for the server to know which client-side
commands are available. For that reason, we historically were just
sending the commands, not worrying whether the client supports then or
not.
That's not really great though, so in this PR we add infrastructure for
the client to explicitly opt-into custom commands, via `extensions`
field of the ClientCapabilities.
To preserve backwards compatability, if the client doesn't set the
field, we assume that it does support all custom commands. In the
future, we'll start treating that case as if the client doesn't support
commands.
So, if you maintain a rust-analyzer client and implement
`rust-analyzer/runSingle` and such, please also advertise this via a
capability.
2021-07-30 19:16:33 +03:00
Alexander Gonzalez
cff2a0fe32
lint: Format the typescript files properly
2021-07-27 18:31:21 -04:00
Alexander Gonzalez
1a0a5da1a4
refactor: Make handle_hover handle ranges too
2021-07-27 18:29:22 -04:00
Alexander Gonzalez
18644720eb
feat: Completed the client side implementation of rust-analyzer/hoverRange
2021-07-27 18:29:22 -04:00
Kirill Bulatov
a05163db14
Create tasks for all workspaces
2021-05-26 01:11:52 +03:00
Kirill Bulatov
c1f6a5a0b0
Fix ts lint errors
2021-05-23 23:47:58 +03:00
Kirill Bulatov
b3383b0661
Send detached files info to server via init params
2021-05-23 22:46:20 +03:00
Kirill Bulatov
d9a5490646
Start rust-analyzer server for arbitrary rust files
2021-05-23 22:46:20 +03:00
Aleksey Kladov
8fe20b19d4
More robust status notifications
2021-04-06 15:45:31 +03:00
kjeremy
a403be6456
Remove Semantic Tokens flicker workaround
...
https://github.com/microsoft/vscode-languageserver-node/issues/576 has been closed with
the latest vscode-languageclient release.
2021-02-16 16:27:30 -05:00
Jeremy Kolb
8105418b25
Start LSP 3.17 support
2021-02-14 14:51:29 -05:00
Sahandevs
2f82a84d2a
fix errors
2021-02-07 22:06:16 +03:30
Sahandevs
1d0e93b58e
handle promise catches
2021-02-07 21:27:21 +03:30
Sahandevs
06c02021a3
remove unnecessary
2021-02-07 21:15:13 +03:30
lf-
f7f6ac3554
Add an option for extra env vars in the Code extension
2020-12-30 04:51:07 -08:00
kjeremy
1d333a8387
Use vscode-languageclient 7.0.0-next.14
2020-11-17 10:10:34 -05:00
Aleksey Kladov
7d2eb000b0
Switch to upstream protocol for resolving code action
...
Note that we have to maintain custom implementation on the client
side: I don't see how to marry bulitin resolve support with groups and
snippets.
2020-11-10 18:48:46 +01:00
Charles Pierce
d2bf2ebe15
Restore semantic token flickering workaround removed in #5697
2020-11-04 10:26:58 -08:00
kjeremy
b527257330
Move to vscode-languageclient 7.0.0-next.9
...
Stabilizes call hierarchy and semantic tokens features.
2020-09-02 09:40:59 -04:00
Jeremy Kolb
58c97bdcbf
Remove 'as any'
2020-08-09 18:09:27 -04:00
Jeremy Kolb
7252babc13
Remove workaround for semantic token flickering
...
See: https://github.com/microsoft/vscode-languageserver-node/issues/576#issuecomment-593384479
This has been fixed since vscode 1.44
2020-08-09 17:57:27 -04:00
James Leitch
995c624f57
ProblemMatcher auto detects relative/absolute paths and matches VSCode LSP's owner and source. VSCode LSP updated to specify owner.
2020-07-22 22:34:47 -07:00
Jeremy Kolb
5b9257561f
Pass CodeActionKind through our middleware to populate menus
2020-07-02 17:13:03 -04:00
Aleksey Kladov
3ef7676076
Implement StatusBar
2020-07-02 15:32:14 +02:00
vsrs
78c9223b7b
Remove hover contents marking as trusted.
...
Hover contents might be extracted from raw
doc comments and need some validation.
2020-06-05 15:25:01 +03:00
vsrs
da7ec4b339
Add hover actions LSP extension documentation.
2020-06-05 15:00:28 +03:00
vsrs
7d0dd17b09
Add hover actions as LSP extension
2020-06-05 14:59:26 +03:00
Mikhail Rakhmanov
bacd0428fa
Fix review comments
2020-06-03 18:39:01 +02:00
Mikhail Rakhmanov
57cd936c52
Preliminary implementation of lazy CodeAssits
2020-06-02 23:10:53 +02:00
Aleksey Kladov
2075e77ee5
CodeAction groups
2020-05-22 17:32:46 +02:00
Aleksey Kladov
3dd68c1ba3
Implement client-side of SnippetTextEdit
2020-05-19 20:28:27 +02:00
Aleksey Kladov
a752853350
Add snippetTextEdit protocol extension
2020-05-19 20:28:27 +02:00
bors[bot]
45832b990c
Merge #4145
...
4145: Remove dead code r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-04-25 19:30:04 +00:00
Aleksey Kladov
0ac5ed5a84
Remove dead code
2020-04-25 21:22:40 +02:00
veetaha
5f88df82a6
Remove unnecessary async from vscode language client creation
2020-04-25 20:52:50 +03:00
kjeremy
6f0f86d2c5
Enable the SemanticTokensFeature by default
...
This is covered under vscode's "editor.semanticHighlighting.enabled"
setting plus the user has to have a theme that has opted into highlighting.
Bumps required vscode stable to 1.44
2020-04-08 15:45:39 -04:00
Aleksey Kladov
48c58309cc
Lean onto default implementation of configs
2020-04-02 12:47:58 +02:00
Aleksey Kladov
309fc70155
Remove old syntax highlighting
2020-04-02 09:52:27 +02:00
Tim
3eb45b9922
Pass string instread of WorkspaceFolder
2020-03-31 10:24:01 +01:00
Tim
a781a58fe2
Throw error if no folder is opened
2020-03-31 09:06:52 +01:00
Tim
768aa4259f
Add basic task support
...
This adds basic support for running `cargo build`, `cargo run`, etc.
2020-03-30 21:23:21 +01:00
Kirill Bulatov
b892a48740
Code review fixes
...
Co-Authored-By: Veetaha <veetaha2@gmail.com>
2020-03-30 13:39:14 +03:00
Kirill Bulatov
8a23bec2cd
Style fixes
2020-03-30 13:39:14 +03:00
Kirill Bulatov
a9dd442733
Send the config from the client
2020-03-30 13:39:14 +03:00
Matt Hooper
6f239a581a
Extension types and rendering
2020-03-24 23:22:41 +01:00
Aleksey Kladov
be4977da7f
Don't try to enable proposed API's on stable
2020-03-24 09:34:54 +01:00