Kirill Bulatov
9c0c199e96
Clean up the redundant hints code and config
2022-03-04 07:45:51 +02:00
Laurențiu Nicola
0b69717ab6
Fixes
2022-03-04 07:45:51 +02:00
Laurențiu Nicola
2ae8248cee
Add log messages
2022-03-04 07:45:51 +02:00
Laurențiu Nicola
0f396d670b
Bump deps
2022-03-04 07:45:51 +02:00
Kirill Bulatov
55371be807
Add experimental VSCode api
2022-03-04 07:45:51 +02:00
Lukas Wirth
2a7793d912
feat: Make private editable completions configurable, disable by default
2022-02-25 22:16:40 +01:00
Laurențiu Nicola
6e7b17374c
Remove reference to updates.channel from settings
2022-02-23 06:38:01 +02:00
bors[bot]
ba33054802
Merge #11416
...
11416: Fix eslint language server not working r=Veykril a=jackos
Allows the language server for eslint to work inside VS Code.
Before change:
![image](https://user-images.githubusercontent.com/77730378/152661637-c5d90678-39dc-4018-b884-fc4b6135368e.png )
After change:
![image](https://user-images.githubusercontent.com/77730378/152661647-164c0655-aa6a-4c50-b49d-49cda112d149.png )
Co-authored-by: Jack Clayton <jackclayto@gmail.com>
2022-02-06 14:42:01 +00:00
Moritz Vetter
9f6c206ea0
fix two vulneabilities (moderate: 1, high: 1) by running npm audit
2022-02-06 15:23:48 +01:00
Jack Clayton
76ecf9a17d
Fix eslint errors
2022-02-06 06:52:51 +08:00
Florian Diebold
b36c83032b
Update README.md
...
I'm not currently sponsored anymore.
2022-01-30 14:21:52 +01:00
Andrew Onyshchuk
a05e09acbe
Support <code> blocks from Rust docs
2022-01-27 11:46:04 -08:00
bors[bot]
2cb85c14b6
Merge #11281
...
11281: ide: parallel prime caches r=jonas-schievink a=jhgg
cache priming goes brrrr... the successor to #10149
---
this PR implements a parallel cache priming strategy that uses a topological work queue to feed a pool of worker threads the crates to index in parallel.
## todo
- [x] should we keep the old prime caches?
- [x] we should use num_cpus to detect how many cpus to use to prime caches. should we also expose a config for # of worker CPU threads to use?
- [x] something is wonky with cancellation, need to figure it out before this can merge.
Co-authored-by: Jake Heinz <jh@discordapp.com>
2022-01-25 16:03:35 +00:00
Laurențiu Nicola
cd50c71631
Bump npm deps
2022-01-22 11:59:45 +02:00
Chris Price
c18ee35ce8
fix: remove pipe from surroundingPairs
...
Closes https://github.com/rust-analyzer/rust-analyzer/issues/11192
2022-01-17 20:08:39 +00:00
Jake Heinz
25f67b6939
make it a config
2022-01-15 02:47:47 +00:00
bors[bot]
40009e07d0
Merge #11145
...
11145: feat: add config to use reasonable default expression instead of todo! when filling missing fields r=Veykril a=bnjjj
Use `Default::default()` in struct fields when we ask to fill it instead of putting `todo!()` for every fields
before:
```rust
pub enum Other {
One,
Two,
}
pub struct Test {
text: String,
num: usize,
other: Other,
}
fn t_test() {
let test = Test {<|>};
}
```
after:
```rust
pub enum Other {
One,
Two,
}
pub struct Test {
text: String,
num: usize,
other: Other,
}
fn t_test() {
let test = Test {
text: String::new(),
num: 0,
other: todo!(),
};
}
```
Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Co-authored-by: Coenen Benjamin <benjamin.coenen@hotmail.com>
2022-01-07 14:10:11 +00:00
Benjamin Coenen
8e0a05eb70
feat(diagnostics): use default expression instead of todo! when missing fields
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2022-01-07 15:01:37 +01:00
Benjamin Coenen
b60a29ca94
feat(diagnostics): use default expression instead of todo! when missing fields
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2022-01-07 14:13:34 +01:00
Lukas Wirth
f6eba28ef8
Adjust config name
2022-01-06 13:50:35 +01:00
Lukas Wirth
dd4b53402d
Regenrate docs and package.json
2022-01-06 13:50:24 +01:00
Benjamin Coenen
336c899a07
add better default behavior on fill struct fields diagnostic
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2022-01-04 15:59:00 +01:00
Lukas Wirth
3a525c831f
internal: Handle macro calls better in highlighting
2022-01-02 19:10:10 +01:00
Benjamin Coenen
df6fa50f92
feat(diagnostics): add new config to fill default expression
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2021-12-31 16:29:08 +01:00
Laurențiu Nicola
0182f74516
Fix server path on NixOS
2021-12-30 14:50:54 +02:00
Nixon Enraght-Moony
6ebb9ffd2a
Remove note about alpha status from vscode extension descritpion
...
See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/156 and https://github.com/rust-analyzer/rust-analyzer/pull/8237
2021-12-27 01:26:25 +00:00
Laurențiu Nicola
af2bbce8d9
Spelling fix
2021-12-23 14:04:46 +02:00
Laurențiu Nicola
5bed9d6188
Simplify conflict check
2021-12-23 14:04:15 +02:00
Laurențiu Nicola
f872419847
Drop kalitaalexey.vscode-rust check
2021-12-23 14:04:15 +02:00
Laurențiu Nicola
c0d0ceefb2
Don't check for platform details
2021-12-23 14:04:15 +02:00
Laurențiu Nicola
8b304a72f6
Remove ETXTBUSY check, we don't overwrite binaries
2021-12-23 13:10:50 +02:00
Laurențiu Nicola
3835b3790e
Improve NixOS handling
2021-12-23 13:10:50 +02:00
Laurențiu Nicola
e97569c998
Drop extensionUri copy
2021-12-23 09:36:55 +02:00
Laurențiu Nicola
f63690c058
Remove proxy settings
2021-12-23 09:23:56 +02:00
Laurențiu Nicola
650ec14e4f
Remove channel and ask before download prefs
2021-12-23 09:23:56 +02:00
Laurențiu Nicola
c68dbc16f8
Remove node-fetch and https-proxy-agent deps
2021-12-23 09:23:56 +02:00
Laurențiu Nicola
53c183cc13
Remove network functions
2021-12-23 09:23:56 +02:00
Laurențiu Nicola
d5b4aa3037
Remove server download and update checks
2021-12-23 08:24:58 +02:00
Laurențiu Nicola
89cecff2bd
Bump vscode in package.json
2021-12-20 20:58:09 +02:00
Laurențiu Nicola
9c74f646f4
Publish platform-specific Code VSIXes
2021-12-18 22:49:11 +02:00
Laurențiu Nicola
262a698875
Prepare Code extension for bundling
2021-12-18 17:44:16 +02:00
Lukas Wirth
9fe0f0d1d9
Add a few default snippets for VSCode
2021-12-17 16:24:29 +01:00
bors[bot]
6df9bd42f4
Merge #10972
...
10972: minor: Bump vscode to 1.62 r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-12-09 15:18:41 +00:00
Laurențiu Nicola
19c774b4c4
Bump eslint
2021-12-09 17:16:30 +02:00
Laurențiu Nicola
c1fc774b6e
Bump vscode
2021-12-09 17:15:21 +02:00
Jonas Schievink
deb5c1426d
internal: add "Shuffle Crate Graph" command
2021-12-07 16:37:19 +01:00
bors[bot]
b519a179b4
Merge #10940
...
10940: minor: Fix HttpsProxyAgent creation and avoid deprecated call r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-12-05 12:12:44 +00:00
Laurențiu Nicola
725b3fdd65
Fix HttpsProxyAgent creation and avoid deprecated call
2021-12-05 14:11:49 +02:00
bors[bot]
396f864134
Merge #10938
...
10938: minor: Bump d3 r=lnicola a=lnicola
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-12-05 11:40:23 +00:00
Laurențiu Nicola
6300d03acd
Bump d3
2021-12-05 13:38:31 +02:00
bors[bot]
372a7cf981
Merge #10929
...
10929: internal: Split up macro/attribute semantic tokens a bit more r=Veykril a=Veykril
Fixes https://github.com/rust-analyzer/rust-analyzer/issues/9172
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-12-04 17:33:16 +00:00
Lukas Wirth
3472105ad9
Update semantic token docs
2021-12-04 18:23:25 +01:00
Laurențiu Nicola
341e3773c3
Bump rest of the npm deps
2021-12-04 14:28:48 +02:00
Laurențiu Nicola
29682445ac
Bump node-fetch
2021-12-04 14:26:37 +02:00
Laurențiu Nicola
c3a97a9a9c
Bump vsce
2021-12-04 14:26:14 +02:00
Laurențiu Nicola
98697b61b5
Bump eslint
2021-12-04 14:26:14 +02:00
Laurențiu Nicola
0cf031a18a
Bump engine in lockfile
2021-12-04 14:26:14 +02:00
Laurențiu Nicola
65cdced805
Simplify .vscodeignore
2021-12-04 14:16:10 +02:00
Laurențiu Nicola
acd5c1f19b
Add LICENSE file to make vsce happy
2021-12-04 12:29:27 +02:00
bors[bot]
348110dcd9
Merge #10919
...
10919: internal: Define missing semantic token hierarchies in package.json r=Veykril a=Veykril
Closes https://github.com/rust-analyzer/rust-analyzer/issues/10077
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-12-03 22:53:32 +00:00
Lukas Wirth
d74894abe2
Add some more semantic token to textmate grammar mapping
2021-12-03 22:17:56 +01:00
Lukas Wirth
90e9a49cb9
Define missing semantic token hierarchies in package.json
2021-12-03 21:59:34 +01:00
Laurențiu Nicola
3ed0f349f2
Bump engine
2021-12-03 20:53:46 +02:00
Laurențiu Nicola
51426c4299
Bump esbuild
2021-12-03 20:53:43 +02:00
Laurențiu Nicola
d790a6b991
Bump typescript
2021-12-03 20:49:38 +02:00
Laurențiu Nicola
c6a35531f3
Bump @types/vscode
2021-12-03 20:48:15 +02:00
Laurențiu Nicola
278e435d93
Bump eslint
2021-12-03 20:46:19 +02:00
Laurențiu Nicola
effe112130
Bump vscode-test
2021-12-03 20:40:29 +02:00
Laurențiu Nicola
300e4dfbcc
Bump tslib
2021-12-03 20:35:22 +02:00
Laurențiu Nicola
f547d52d75
Bump node-fetch and @types/node-fetch
2021-12-03 20:33:14 +02:00
Laurențiu Nicola
37b60e5d2b
Bump @types/node
2021-12-03 20:30:26 +02:00
Laurențiu Nicola
b236ce83bb
Bump d3
2021-12-03 20:29:30 +02:00
bors[bot]
3b02aec0cc
Merge #10903
...
10903: internal: Replace `mocha` with a custom test runner r=Aloso a=lnicola
Closes #10723
r? `@Aloso`
Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-12-02 17:37:56 +00:00
Laurențiu Nicola
157056db22
Fix proxyStrictSSL check
2021-12-02 15:46:23 +02:00
Laurențiu Nicola
76b3d437d3
Replace mocha with a custom test runner
2021-12-02 13:05:50 +02:00
Laurențiu Nicola
a59c1a0af0
Try to fix Code tests
2021-12-01 12:22:34 +02:00
Laurențiu Nicola
7d815b862f
Refactor proxy settings
2021-11-28 10:54:35 +02:00
Laurențiu Nicola
2f5149886d
Respect http.proxyStrictSSL
2021-11-27 07:29:44 +02:00
Laurențiu Nicola
a68ce62f6a
Add toggle to disable cache priming
2021-11-19 19:30:11 +02:00
Paul Horn
553bb7f50a
Allow clients to configure the global workspace search limit
2021-11-18 17:52:02 +01:00
Jake Heinz
520ff62f4e
flip the default
2021-11-13 23:39:34 +00:00
Jake Heinz
d3d768de0d
inlay hints: add the option to always show constructor inlay hints
2021-11-13 23:12:29 +00:00
bors[bot]
f48b2622d8
Merge #10688
...
10688: internal: Type-check TS on CI and also turn off the strict setting `useUnknownInCatchVariables` r=lnicola a=ChayimFriedman2
We don't follow it and I found that turning it on will have little benefit.
I'm not sure if we should also type-check when building in launch.json.
Co-authored-by: Chayim Refael Friedman <chayimfr@gmail.com>
2021-11-08 13:37:34 +00:00
Laurențiu Nicola
1fe48a7184
Avoid deprecated methods in client-side tests
2021-11-07 10:00:58 +02:00
Chayim Refael Friedman
36bdb5c94d
Type-check TS on CI and also turn off the strict setting useUnknownInCatchVariables
...
We don't follow it and I found that turning it on will have little benefit.
2021-11-04 01:23:45 +02:00
bors[bot]
057558b756
Merge #10595
...
10595: internal: Fix a format error r=Veykril a=dzvon
Fixes #10581
Co-authored-by: Dezhi Wu <wu543065657@163.com>
2021-10-29 10:40:43 +00:00
Dezhi Wu
74396d27c0
Fix: correct markdown link form.
2021-10-29 18:25:32 +08:00
Dezhi Wu
ffc6cdd871
Fix: transform the asciidoc form link to markdown style when generating the package.json
2021-10-28 10:13:43 +08:00
Lukas Wirth
4c582ffe9f
Don't ask the user to reload when chaning HoverAction configs in VSCode
2021-10-25 14:48:36 +02:00
Dezhi Wu
1a24ee9a1b
Fix a format error
2021-10-20 20:13:03 +08:00
bors[bot]
f87debcf87
Merge #10434
...
10434: Allow `Locate parent module` command in Cargo.toml r=Veykril a=rainy-me
close #10355
Co-authored-by: rainy-me <github@rainy.me>
Co-authored-by: rainy-me <github@yue.coffee>
2021-10-14 10:56:08 +00:00
Laurențiu Nicola
e43e1240a7
Document rustc source auto-discovery
2021-10-14 08:57:07 +03:00
rainy-me
59c755227d
Provide navigations to parent modules
2021-10-14 07:16:42 +09:00
bors[bot]
5ff992465e
Merge #10447
...
10447: Add enum variant references CodeLens. r=Veykril a=ericsampson
Co-authored-by: Eric Sampson <esampson@eaze.com>
2021-10-05 22:03:23 +00:00
Lukas Wirth
041cfbe0f4
Render the expansion of snippets as their docs
2021-10-05 18:11:22 +02:00
Lukas Wirth
ca1fdd75f1
Regen docs
2021-10-04 22:13:12 +02:00
Eric Sampson
99dd8066d9
need to update some generated files.
2021-10-04 02:30:46 -05:00
Eric Sampson
a0bb31587e
Add enum variant references CodeLens.
2021-10-04 02:18:31 -05:00
Laurențiu Nicola
f5c9204ff2
Limit depth to 1 when searching for Cargo.toml
2021-10-03 17:58:03 +03:00
rainy-me
39044fe39c
Allow locate parent module action in cargo toml
2021-10-03 11:58:10 +09:00