Aleksey Kladov
4d307ff802
Fully document ra_lsp_server
2020-02-18 12:25:26 +01:00
Aleksey Kladov
1f142d79ed
Refactor
2020-02-18 12:17:47 +01:00
Aleksey Kladov
42c766b2bd
Reduce visibility
2020-02-18 12:16:40 +01:00
Aleksey Kladov
b6740060f6
Refactor
2020-02-18 12:15:12 +01:00
Aleksey Kladov
93b969003d
Some docs
2020-02-18 12:11:32 +01:00
Aleksey Kladov
59e1207dac
Better folder structure
2020-02-18 11:56:18 +01:00
Laurențiu Nicola
b6b8fd9525
Replace ra_cli mentions
2020-02-17 22:07:24 +02:00
Aleksey Kladov
2c9b91ad32
Merge ra_vfs_glob and ra_lsp_server
2020-02-17 19:07:30 +01:00
Aleksey Kladov
659b0e73cf
Merge cli and ra_lsp_server
2020-02-17 19:03:03 +01:00
Aleksey Kladov
90e61ac75d
Sort deps
2020-02-17 17:41:53 +01:00
bors[bot]
93d28fb50c
Merge #3099
...
3099: Init implementation of structural search replace r=matklad a=mikhail-m1
next steps:
* ignore space and other minor difference
* add support to ra_cli
* call rust parser to check pattern
* documentation
original issue #2267
Co-authored-by: Mikhail Modin <mikhailm1@gmail.com>
2020-02-17 10:02:54 +00:00
bors[bot]
953dbe3e02
Merge #3181
...
3181: Add ability to pass additional arguments to rustfmt. r=matklad a=Leonqn
relates to #2848
Co-authored-by: Ilya Titkov <ilya@titkov.me>
2020-02-17 09:05:01 +00:00
bors[bot]
c9989a524c
Merge #3153
...
3153: When a single test is run, do not run others with overlapping names r=matklad a=SomeoneToIgnore
Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2020-02-17 08:52:45 +00:00
Ilya Titkov
a2b0bdcc24
Add arguments to rustfmt
2020-02-17 11:44:58 +03:00
Aleksey Kladov
98cc51580d
Enable profiling for bench
2020-02-16 18:04:08 +01:00
Kirill Bulatov
f0338cea5b
Fix a slow test
2020-02-16 18:55:52 +02:00
Kirill Bulatov
426c0f26fe
If possible, use --exact flag when running tests
2020-02-15 01:06:14 +02:00
Mikhail Modin
f8f454ab5c
Init implementation of structural search replace
2020-02-14 21:45:42 +00:00
Quan Luu
409c1a7f06
prevent "Play" symbol in "Run Test" code lens from rendering as emoji
2020-02-13 15:09:39 +07:00
Aleksey Kladov
44425eaebc
Better error messages while deserializing
2020-02-11 09:46:45 +01:00
Aleksey Kladov
9769c5140c
Simplify Assists interface
...
Instead of building a physical tree structure, just "tag" related
assists with the same group
2020-02-09 16:03:54 +01:00
Emil Lauridsen
137a878461
to_string_lossy() -> display()
2020-02-07 12:35:36 +01:00
Emil Lauridsen
5db7c8642b
Don't crash when recieving unkown file for cargo diagnostic.
2020-02-07 12:30:29 +01:00
Emil Lauridsen
cde20bf8f0
Remove stray todo
2020-02-03 12:18:06 +01:00
Emil Lauridsen
790788d5f4
Rework how we send diagnostics to client.
...
The previous way of sending from the thread pool suffered from stale
diagnostics due to being canceled before we could clear the old ones.
The key change is moving to sending diagnostics from the main loop
thread, but doing all the hard work in the thread pool. This should
provide the best of both worlds, with little to no of the downsides.
This should hopefully fix a lot of issues, but we'll need testing in
each individual issue to be sure.
2020-02-03 11:34:24 +01:00
Aleksey Kladov
24ad1cce2c
Avoid premature pessimization
...
The extra allocation for message should not matter here at all, but
using a static string is just as ergonomic, if not more, and there's
no reason to write deliberately slow code
2020-02-02 18:56:37 +01:00
Aleksey Kladov
9d5a5211a4
Small cleanup
2020-01-31 13:34:44 +01:00
Aleksey Kladov
7cc0a86528
Fix long loop timeout
2020-01-29 14:04:10 +01:00
Aleksey Kladov
9753eb98cc
Complain loudly if the main loop is blocked
2020-01-29 11:21:49 +01:00
Aleksey Kladov
aaa4861a0b
More uniform naming
2020-01-29 11:15:08 +01:00
Aleksey Kladov
2d2585e03f
Don't compute diagnostics on the main thread
...
closes #2909
2020-01-29 11:03:59 +01:00
Aleksey Kladov
493a903f22
Bump main thread priority on windows
2020-01-26 14:15:57 +01:00
Aleksey Kladov
40109941db
Use default threadpool size
2020-01-25 13:27:36 +01:00
Aleksey Kladov
f44aee27d3
Disable env_logger humantime feature
...
We rarely care about timings of events, and, when we care, we need
millisecond precision
2020-01-25 11:53:40 +01:00
Aleksey Kladov
b90ea640e6
Cancel requests during shutdown
2020-01-24 16:35:37 +01:00
Emil Lauridsen
05aa5b854b
Remove RWLock from check watcher.
...
@matklad mentioned this might be a good idea.
So the general idea is that we don't really need the lock, as we can
just clone the check watcher state when creating a snapshot. We can then
use `Arc::get_mut` to get mutable access to the state from `WorldState`
when needed.
Running with this it seems to improve responsiveness a bit while cargo
is running, but I have no hard numbers to prove it. In any case, a
serialization point less is always better when we're trying to be
responsive.
2020-01-23 09:26:08 +01:00
kjeremy
ee7dd4b9ae
Update crates
2020-01-22 15:40:35 -05:00
Aleksey Kladov
bd96d0b258
Minimize visibility
2020-01-16 11:58:31 +01:00
Kirill Bulatov
d51cf7794d
itertools::Either -> either::Either
2020-01-15 20:20:20 +02:00
Kirill Bulatov
78a21253b4
Apply the api design suggestions
2020-01-15 20:17:17 +02:00
Kirill Bulatov
73dc8b6f06
Another attempt to add multiple edits
2020-01-15 20:16:27 +02:00
Emil Lauridsen
7a8c6351bf
Extract check task handling into function
2020-01-15 16:33:58 +01:00
Emil Lauridsen
478ba65f8d
Manage check state updates in main_loop to reduce lock contention
2020-01-15 15:50:49 +01:00
Jeremy Kolb
e1688be1bb
lsp-types 0.69.0
...
Stabilizes most proposed features
2020-01-15 08:05:42 -05:00
bors[bot]
876f92d547
Merge #2843
...
2843: Add inlay parameter name hints for call expr r=matklad a=imtsuki
This patch adds Intellij-like parameter name hints for literal values in function calls.
<img width="624" alt="Screenshot" src="https://user-images.githubusercontent.com/8423594/72366533-68d7f800-3735-11ea-9279-cf193ca8ca2f.png ">
Signed-off-by: imtsuki <me@qjx.app>
Co-authored-by: imtsuki <me@qjx.app>
2020-01-15 10:24:51 +00:00
imtsuki
c390e92fdd
Add inlay parameter name hints for function calls
...
Signed-off-by: imtsuki <me@qjx.app>
2020-01-15 01:18:52 +08:00
Jeremy Kolb
325912f01e
Tweak add_custom_impl
2020-01-14 09:08:45 -05:00
kjeremy
170c7bd7e3
Log client info if present
2020-01-13 16:20:47 -05:00
Emil Lauridsen
c774850fd8
Schedule check update regardless of notification setting
2020-01-13 17:22:21 +01:00
Emil Lauridsen
daca5a3711
Defer cargo check until after workspace load
2020-01-13 17:12:14 +01:00