Laurențiu Nicola
7c1d5f286a
Fix line index rebuild during incremental changes
2020-05-04 20:04:30 +03:00
Laurențiu Nicola
191abf3685
Make incremental sync opt-out
2020-05-04 19:54:39 +03:00
Edwin Cheng
5ae18f4f81
Remove unused import
2020-05-05 00:34:54 +08:00
Edwin Cheng
204c8de3bf
Add test for issue
2020-05-05 00:29:47 +08:00
Edwin Cheng
af001677d1
Fix test
2020-05-05 00:17:30 +08:00
Edwin Cheng
8d96db3417
Favor types for Record in name resolution
2020-05-05 00:17:22 +08:00
bors[bot]
15de338703
Merge #4303
...
4303: Remove false positive attr compleitons r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-04 14:52:35 +00:00
Aleksey Kladov
b211c5814e
Remove false positive attr compleitons
2020-05-04 16:48:50 +02:00
bors[bot]
a1ccd09d4b
Merge #4301
...
4301: Fix typo in markdownDescription r=matklad a=szunami
Co-authored-by: szunami <sam.szuflita@gmail.com>
2020-05-04 14:44:41 +00:00
szunami
7330b8da63
Fix typo in markdownDescription
2020-05-04 10:27:59 -04:00
bors[bot]
a559459fb0
Merge #4300
...
4300: Cleanup attribute completion r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-04 13:38:55 +00:00
Aleksey Kladov
8f4478390e
Qualify ast types
2020-05-04 15:33:08 +02:00
Aleksey Kladov
e9643ab74c
Cleanup imports
2020-05-04 15:33:08 +02:00
Aleksey Kladov
71f6d58e31
Remove unnecessary condition
...
No tests fail, and quick manual testing shows that there are no
false-positives. In general, each completion contributor should be
independent from the others.
2020-05-04 15:32:23 +02:00
bors[bot]
ea098fdbd2
Merge #4299
...
4299: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-04 12:55:48 +00:00
Aleksey Kladov
d7450222a9
Simplify
2020-05-04 14:55:24 +02:00
bors[bot]
580c5a969d
Merge #4297
...
4297: refactor: use parent instead ancestors for use alias r=matklad a=bnjjj
Linked to this comment https://github.com/rust-analyzer/rust-analyzer/pull/4269/files#r419343670
Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-05-04 12:37:41 +00:00
bors[bot]
c12de4afbf
Merge #4298
...
4298: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-04 12:20:52 +00:00
Aleksey Kladov
802617ccc2
Simplify
2020-05-04 14:16:10 +02:00
Benjamin Coenen
e88c3e4fcd
refactor: use parent instead ancestors for use alias
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-05-04 13:42:30 +02:00
robojumper
2980ba1fde
Support build.rs cargo:rustc-cfg
2020-05-04 13:29:09 +02:00
bors[bot]
96f581079f
Merge #4295
...
4295: Specify cotributed semanticTokenTypes in package.json r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-04 11:11:23 +00:00
Aleksey Kladov
dc19d64f0a
Specify cotributed semanticTokenTypes in package.json
2020-05-04 13:10:59 +02:00
bors[bot]
57f285d0eb
Merge #4283
...
4283: Support macro for trait items r=matklad a=edwin0cheng
Fixed #4039
r? @flodiebold
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
Co-authored-by: Edwin Cheng <edwin@m-inverse.com>
2020-05-04 10:49:24 +00:00
Edwin Cheng
5899c8eaa9
Fixes names for collect_item funtions
2020-05-04 18:34:32 +08:00
bors[bot]
b1a5dc8c8b
Merge #4269 #4293
...
4269: add support of use alias semantic in definition r=matklad a=bnjjj
close #4202
4293: no doctests for flycheck r=matklad a=matklad
bors r+
🤖
Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-04 10:34:06 +00:00
Aleksey Kladov
6af464d185
no doctests for flycheck
2020-05-04 12:26:52 +02:00
bors[bot]
0ef4665d42
Merge #4292
...
4292: Fix focus range for TypeParam r=matklad a=matklad
closes #4274
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-04 10:26:18 +00:00
Aleksey Kladov
710e430dbb
Fix focus range for TypeParam
...
closes #4274
2020-05-04 12:25:32 +02:00
bors[bot]
9134d888b1
Merge #4291
...
4291: Add test marks r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-05-04 10:11:53 +00:00
Aleksey Kladov
13bce1a164
Add test marks
2020-05-04 12:10:26 +02:00
bors[bot]
3b1d983085
Merge #4282
...
4282: More name hints omitting heuristics r=matklad a=SomeoneToIgnore
Omit parameter name hints for cases like the first two parameters from the screenshot:
<img width="394" alt="Screenshot 2020-05-03 at 15 06 34" src="https://user-images.githubusercontent.com/2690773/80914717-165b2f80-8d56-11ea-8675-040972f70d98.png ">
Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2020-05-04 08:36:48 +00:00
Kirill Bulatov
30817de3af
Code review fixes
...
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-05-04 11:04:02 +03:00
bors[bot]
d855280818
Merge #4285
...
4285: add support of cfg attributes on enum variants r=edwin0cheng a=bnjjj
close #4279
Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-05-04 03:18:48 +00:00
bors[bot]
57ec813294
Merge #4286
...
4286: Make incremental sync opt-in r=matklad a=lnicola
@matklad do you want to merge this? I'd make it opt-out, but it's fine to test it more.
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2020-05-04 03:03:52 +00:00
bors[bot]
805c0b92ac
Merge #4287
...
4287: Update debugging.md r=matklad a=lonesometraveler
Co-authored-by: KENTARO OKUDA <lonesometraveler@mac.com>
2020-05-04 02:54:49 +00:00
bors[bot]
6a48a94d47
Merge #4268
...
4268: Support auto-import in macro r=SomeoneToIgnore a=edwin0cheng
Fixed : #3854
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-05-03 22:52:10 +00:00
KENTARO OKUDA
42e2eca921
Update debugging.md
2020-05-03 15:14:56 -04:00
Kirill Bulatov
66882f1a24
Move snake case method to heck
2020-05-03 21:35:21 +03:00
Laurențiu Nicola
87a18b18ea
Make incremental sync opt-in
2020-05-03 20:58:07 +03:00
Benjamin Coenen
bed115d6e1
add support of cfg attributes on enum variants #4279
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-05-03 17:56:45 +02:00
Edwin Cheng
73ed2f2e90
Remove whitespaces
2020-05-03 22:15:07 +08:00
Edwin Cheng
8b6216df05
Support macro for trait items
2020-05-03 22:08:39 +08:00
Kirill Bulatov
ba8ffab644
Omit name hints for enum names similar to parameter names
2020-05-03 15:55:08 +03:00
Kirill Bulatov
8eb820f460
Omit name hints for method names similar to parameter names
2020-05-03 15:55:08 +03:00
bors[bot]
baa35b02b2
Merge #4280
...
4280: Add documents owner for ImplDef and SourceFile r=matklad a=edwin0cheng
When working on #3182 , I found that `ImplDef` and `SourceFile` do not implemet `DocCommentsOwer` trait, and I tested it in `cargo doc` that `impl` could has some doc-comments.
I am not so sure about `SourceFile` case, but in theory if that file is a crate root, the doc comment of it should represent the whole crate documentation, right ?
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-05-03 10:46:07 +00:00
Edwin Cheng
f90fbaf6a6
Add documents owner for ImplDef and SourceFile
2020-05-03 18:00:27 +08:00
bors[bot]
76c2f4ef49
Merge #4278
...
4278: Log panics in apply_document_changes r=matklad a=lnicola
This doesn't necessarily help (because of https://github.com/rust-analyzer/rust-analyzer/issues/4263#issuecomment-623078531 ), but maybe we could leave it in there for a while in case it catches something.
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2020-05-03 09:48:44 +00:00
Laurențiu Nicola
074d1ac2f7
Log panics in apply_document_changes
2020-05-03 12:46:20 +03:00
bors[bot]
682c079043
Merge #4276
...
4276: Don't count start of non-ASCII characters as being inside of them r=matklad a=lnicola
I'm still not sure that `utf16_to_utf8_col` is correct for code points from Supplementary Planes. These have two UTF-16 code units, and I feel we're not going to count them correctly.
Fixes the crash in https://github.com/rust-analyzer/rust-analyzer/issues/4263#issuecomment-622988258 .
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2020-05-03 08:57:02 +00:00