Jeremy Kolb
d7cd88b1a2
Mark machine applicable fixes as preferred
...
This allows us to run the auto fix command from vscode to automatically
fix all diagnostics in the file.
They are also distinguished in the UI.
2020-07-16 10:51:25 -04:00
Leander Tentrup
119e71d9ea
Add new Punctuation
highlight tag
2020-07-15 16:42:47 +02:00
Jeremy Kolb
007812dcae
Update lsp-types to account for new CodeActionKind structure
2020-07-11 17:29:45 -04:00
Aleksey Kladov
e1d6b7f7c4
Use dedicated semantic highlight tag for parameters
...
closes #5106
2020-07-11 14:51:41 +02:00
Aleksey Kladov
0f0c5081c0
Make sure there are no commands in code actions
2020-07-11 11:53:24 +02:00
Aleksey Kladov
e8bb153b19
Add Markup type
2020-07-08 22:37:35 +02:00
Aleksey Kladov
5b8a5bfb15
Modernize unqualified reference completion tests
2020-07-07 12:52:09 +02:00
Aleksey Kladov
d09f692300
Add AssistKind::Generate
2020-07-03 19:32:18 +02:00
kjeremy
4c9347ecc3
Don't categorize things we don't care about
2020-07-02 18:01:22 -04:00
kjeremy
36cc81ac71
Move AssistKind into AssistId
2020-07-02 17:48:35 -04:00
Jeremy Kolb
b98c16a034
Categorize assists
2020-07-02 17:13:02 -04:00
daxpedda
eb75a644a1
Implement rust-analyzer feature configuration to tests.
2020-07-02 16:13:24 +02:00
Aleksey Kladov
8295dc42a0
Fold multiline calls
2020-07-01 18:27:58 +02:00
Aleksey Kladov
af7e300041
Remove confusing API
2020-06-30 13:29:53 +02:00
Aleksey Kladov
03c5a6690d
Add light-weight snapshot testing library with editor integration
2020-06-27 19:22:31 +02:00
Aleksey Kladov
10ee6eb733
Tweak visibility
2020-06-25 01:02:08 +02:00
Aleksey Kladov
e6c61d5072
Cleanup project.json deserialization
2020-06-24 16:16:52 +02:00
Paul Daniel Faria
2a56323537
Update injection mechanism and stop injecting through highlight element, switch to more general new highlight tag, generic
2020-06-23 12:13:50 -04:00
Paul Daniel Faria
d8230acd84
Add punctuation highlighting for highlighting punctuation in doctests, fix highlighting in doctests
2020-06-23 12:11:33 -04:00
Paul Daniel Faria
351bba9bee
Add support for marking doctest items as distinct from normal code, add default tag to all doctest elements
2020-06-23 12:08:04 -04:00
Aleksey Kladov
dad1333b48
New VFS
2020-06-23 17:51:06 +02:00
bors[bot]
f7f627d342
Merge #4903
...
4903: Add highlighting support for doc comments r=matklad a=Nashenas88
The language server protocol includes a semantic modifier for documentation. This change exports that modifier for doc comments so users can choose to highlight them differently compared to regular comments.
Example:
<img width="375" alt="Screen Shot 2020-06-16 at 10 34 14 AM" src="https://user-images.githubusercontent.com/1673130/84788271-f6599580-afbc-11ea-96e5-7a0215da620b.png ">
CC @woody77
Co-authored-by: Paul Daniel Faria <Nashenas88@users.noreply.github.com>
2020-06-18 13:23:14 +00:00
Leander Tentrup
2145e2d878
Syntax highlighting for escape sequences in strings
2020-06-17 15:27:13 +02:00
Paul Daniel Faria
aae26bc5b8
Add highlighting support for doc comments
2020-06-17 08:29:13 -04:00
Aleksey Kladov
3c72fc0573
Anchor file-system operations to the file, and not to the source root.
...
Anchoring to the SourceRoot wont' work if the path is absolute:
#[path = "/tmp/foo.rs"]
mod foo;
Anchoring to a file will.
However, we *should* anchor, instead of just producing an abs path.
I can imagine a situation where, for example, rust-analyzer processes
crates from different machines (or, for example, from in-memory git
branch), where the same absolute path in different crates might refer
to different files in the end!
2020-06-16 18:45:58 +02:00
Aleksey Kladov
50bbf7233d
Cleanup URL handling
2020-06-13 14:15:38 +02:00
vsrs
b7db9f058a
Apply suggestions from code review
2020-06-08 14:19:40 +03:00
vsrs
3434f1dd2c
Add Run|Debug hover actions
2020-06-06 18:17:52 +03:00
vsrs
de74c0dcab
Preliminary runnables refactoring
2020-06-06 18:17:52 +03:00
Mikhail Rakhmanov
6a0083a519
Merge branch 'master' into compute-lazy-assits
...
# Conflicts:
# crates/rust-analyzer/src/main_loop/handlers.rs
# crates/rust-analyzer/src/to_proto.rs
2020-06-03 19:26:01 +02:00
Mikhail Rakhmanov
bacd0428fa
Fix review comments
2020-06-03 18:39:01 +02:00
Aleksey Kladov
a87cd8ecc6
Rename WorldState -> GlobalState
2020-06-03 11:20:01 +02:00
Mikhail Rakhmanov
cb482e6351
Merge remote-tracking branch 'upstream/master' into compute-lazy-assits
...
# Conflicts:
# crates/rust-analyzer/src/to_proto.rs
2020-06-02 23:22:45 +02:00
Mikhail Rakhmanov
57cd936c52
Preliminary implementation of lazy CodeAssits
2020-06-02 23:10:53 +02:00
Aleksey Kladov
0303982119
New runnables API
2020-06-02 17:22:42 +02:00
Aleksey Kladov
31f282636b
Minor
2020-06-02 16:30:47 +02:00
Roland Ruckerbauer
18aa4bcb03
Add semantic highlight to QUESTION token
...
Made it an operator with controlFlow modifier.
2020-05-29 21:17:14 +02:00
bors[bot]
30f058dfea
Merge #4602 #4603
...
4602: Add boolean literal semantic token type to package.json r=matklad a=lnicola
Closes #4583 .
CC @GrayJack
4603: Add self keyword semantic token type r=matklad a=lnicola
Not sure if this is warranted a new token type or just a modifier.
---
CC #4583 , @GrayJack
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2020-05-25 14:08:21 +00:00
Aleksey Kladov
0ebb25b29b
Document parentModule
experimental LSP request
2020-05-25 15:59:49 +02:00
Aleksey Kladov
76e170c3d0
Less rust-analyzer specific onEnter
2020-05-25 14:28:47 +02:00
Laurențiu Nicola
c2358365ad
Add self keyword semantic token type
2020-05-25 12:08:58 +03:00
Matthew Jasper
e2d36cb692
Highlight true
and false
as literals
2020-05-24 15:12:17 +01:00
Aleksey Kladov
ce7144a93d
Merge pull request #4474 from georgewfraser/color_attrs
...
Color attribute functions
2020-05-24 15:32:31 +02:00
kjeremy
7a46a99490
And a few drive-bys
2020-05-22 17:26:31 -04:00
Aleksey Kladov
2075e77ee5
CodeAction groups
2020-05-22 17:32:46 +02:00
Aleksey Kladov
5b5ebec440
Formalize JoinLines protocol extension
2020-05-21 20:05:33 +02:00
Aleksey Kladov
5f57491c98
Cleanup TextEdit
2020-05-21 15:56:18 +02:00
Aleksey Kladov
ff28c79ebd
Remove dead code for handling cursor positions
2020-05-21 15:08:03 +02:00
Aleksey Kladov
4a3a525ea9
Use new format for all assists that don't change cursor positon
2020-05-20 01:23:05 +02:00
Aleksey Kladov
2bf6b16a7f
Server side of SnippetTextEdit
2020-05-19 20:28:27 +02:00