Aleksey Kladov
f7db49bfc6
Better highlightign API
2020-02-27 09:32:00 +01:00
bors[bot]
05388b4ea4
Merge #3334
...
3334: Update lsp-types r=matklad a=kjeremy
Uses the correct type for the currently unused `SemanticTokensEditsRequest::Return`
Co-authored-by: kjeremy <kjeremy@gmail.com>
2020-02-26 21:53:29 +00:00
kjeremy
bc1985037f
Update lsp-types
2020-02-26 16:50:47 -05:00
bors[bot]
0e09ecb8b3
Merge #3332
...
3332: Fix r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-02-26 21:10:44 +00:00
Aleksey Kladov
c88ba9c4bd
Fix
2020-02-26 22:10:23 +01:00
Aleksey Kladov
723e83fb25
wip
2020-02-26 22:08:21 +01:00
Aleksey Kladov
cfc6abed9d
Merge pull request #3330 from Veetaha/feature/cargo-audit
...
cicd: add cargo audit
2020-02-26 22:00:30 +01:00
Aleksey Kladov
5fcb4bb509
Merge pull request #3329 from Veetaha/feature/vscode-add-npm-audit
...
vscode: added audit at ci
2020-02-26 22:00:09 +01:00
bors[bot]
e47f0f98c9
Merge #3331
...
3331: Update r=kjeremy a=kjeremy
Co-authored-by: kjeremy <kjeremy@gmail.com>
2020-02-26 20:34:00 +00:00
kjeremy
d90d1e8f8e
Update
2020-02-26 15:33:16 -05:00
Veetaha
23907b5d4c
cicd: add cargo audit
2020-02-26 22:28:23 +02:00
Veetaha
4291b61810
vscode: added audit at ci
2020-02-26 22:01:09 +02:00
Aleksey Kladov
d1e7a20c00
Merge pull request #3327 from matklad/bitsetoops
...
Fix bitset ops
2020-02-26 18:32:13 +01:00
Aleksey Kladov
2a2d289e5f
Fix bitset ops
2020-02-26 18:09:49 +01:00
Aleksey Kladov
913cdcee8f
Merge pull request #3325 from edwin0cheng/skip-trival-token
...
Skip trival token in original_range
2020-02-26 17:58:32 +01:00
Aleksey Kladov
6ea633c494
Merge pull request #3324 from matklad/highlight-tag
...
More type safety for highlighting
2020-02-26 17:24:35 +01:00
Aleksey Kladov
f38bac48e5
More type safety for highlighting
2020-02-26 17:17:15 +01:00
Edwin Cheng
553254973e
Skip trival token in original_range
2020-02-27 00:12:26 +08:00
Aleksey Kladov
640ede4ade
Merge pull request #3322 from matklad/semantic-tokens-config
...
Config to switch to semantic tokens
2020-02-26 16:05:11 +01:00
Aleksey Kladov
225ef6dea2
Config to switch to semantic tokens
2020-02-26 16:03:30 +01:00
Aleksey Kladov
8c0d0894b6
Merge pull request #3321 from kjeremy/semantic-client
...
Enable SemanticTokens on the client
2020-02-26 15:59:30 +01:00
Aleksey Kladov
2dee0779e9
Merge pull request #3314 from edwin0cheng/original-range-recursive
...
Add recursive macro support in `original_range`
2020-02-26 14:43:15 +01:00
Jeremy Kolb
74125d012e
Enable SemanticTokens on the client
...
This will crash the extension on stable and insiders without the "--enable-proposed-api matklad.rust-analyzer" command line switch.
2020-02-26 08:42:26 -05:00
Aleksey Kladov
9b11c183ed
Merge pull request #3320 from matklad/no-dep
...
Remove unnecessary dep
2020-02-26 14:34:46 +01:00
Aleksey Kladov
1f1bda2c5a
Remove unnecessary dep
2020-02-26 14:21:23 +01:00
Edwin Cheng
871dc2bd3c
Remove duplicate comment
2020-02-26 20:55:11 +08:00
Edwin Cheng
ffdc740446
Add recursive support in original_range
2020-02-26 20:53:00 +08:00
Aleksey Kladov
80f8e474a0
Merge pull request #3318 from matklad/cleanup
...
Reduce visibility
2020-02-26 13:28:18 +01:00
Aleksey Kladov
ade0176c20
Remove dead code
2020-02-26 13:26:53 +01:00
Aleksey Kladov
09bc7ca74d
Reduce visibility
2020-02-26 13:22:46 +01:00
Aleksey Kladov
5c64ad27e0
Merge pull request #3222 from matklad/identity
...
Introduce Semantics API
2020-02-26 13:04:22 +01:00
Aleksey Kladov
c3a4c4429d
Refactor primary IDE API
...
This introduces the new type -- Semantics.
Semantics maps SyntaxNodes to various semantic info, such as type,
name resolution or macro expansions.
To do so, Semantics maintains a HashMap which maps every node it saw
to the file from which the node originated. This is enough to get all
the necessary hir bits just from syntax.
2020-02-26 12:55:50 +01:00
Aleksey Kladov
04deae3dba
Merge pull request #3317 from matklad/no-unicase
...
Actually drop unicase dependency
2020-02-26 12:00:33 +01:00
Aleksey Kladov
21fa338bd6
Merge pull request #3316 from matklad/dedup
...
Remove code duplication in tests
2020-02-26 11:59:59 +01:00
Aleksey Kladov
8046622871
Actually drop unicase dependency
2020-02-26 11:38:33 +01:00
Aleksey Kladov
52fd19621c
Remove code duplication in tests
2020-02-26 11:25:07 +01:00
bors[bot]
ae0aeb1b23
Merge #3307
...
3307: Semantic Ranges r=matklad a=kjeremy
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
Co-authored-by: kjeremy <kjeremy@gmail.com>
2020-02-25 21:11:33 +00:00
kjeremy
fa355d6339
Rename back to highlight and check event's again highlight range
2020-02-25 14:44:47 -05:00
Jeremy Kolb
8f6f864547
Semantic Ranges
2020-02-25 11:37:43 -05:00
bors[bot]
d3040c0deb
Merge #3305
...
3305: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-02-25 13:59:44 +00:00
Aleksey Kladov
d7da42bd40
Simplify
2020-02-25 14:59:13 +01:00
bors[bot]
7763f425d9
Merge #3304
...
3304: ⬆️ rowan r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-02-25 13:45:15 +00:00
Aleksey Kladov
469011169b
⬆️ rowan
2020-02-25 14:44:51 +01:00
bors[bot]
744ec58bc3
Merge #3303
...
3303: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-02-25 12:51:36 +00:00
Aleksey Kladov
6542ab89ce
Simplify
2020-02-25 13:49:34 +01:00
bors[bot]
3853a3b643
Merge #3298
...
3298: Bump chalk and replace TypeFamily with Interner r=flodiebold a=lnicola
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2020-02-25 11:59:47 +00:00
bors[bot]
e9c9f47fe0
Merge #3302
...
3302: Replace generic with a concrete type r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-02-25 11:44:00 +00:00
Aleksey Kladov
136151515a
Replace generic with a concrete type
2020-02-25 12:43:08 +01:00
bors[bot]
c4c15363fb
Merge #3295
...
3295: Refactoring fetchArtifactReleaseInfo() r=matklad a=Veetaha
https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md
I fact this rule doesn't work when you put an unnecessary non-null assertion in an expression (as we had `(awat f())!`, but it is useful in other cases...
Closes #3295 , i guess...
Co-authored-by: Veetaha <gerzoh1@gmail.com>
2020-02-25 10:09:14 +00:00
bors[bot]
1fe48a0115
Merge #3159
...
3159: Server-side Semantic Tokens r=matklad a=kjeremy
Takes the output of `syntax_highlighting` and converts it to the proposed semantic tokens API (so far only `textDocument/semanticTokens`. There's a lot of cool stuff we could do with this and the "Inspect Editor Tokens and Scopes" vscode command (pic below) is a cool way to see what has tokens and what doesn't.
Incredibly hacky and could panic due to unwraps, `panic!` etc. To use: run with `code-insiders --enable-proposed-api matklad.rust-analyzer`. If you try to run this without `--enable-proposed-api` it will crash.
![image](https://user-images.githubusercontent.com/4325700/74595603-7c66cf00-5011-11ea-9593-312663f04fc1.png )
@matklad I'm mostly looking for design feedback.
Co-authored-by: kjeremy <kjeremy@gmail.com>
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
2020-02-25 10:02:21 +00:00