Commit Graph

24036 Commits

Author SHA1 Message Date
Alex Vasilev
5f1796f837 uncomment check 2023-01-24 12:45:51 +05:30
Alex Vasilev
8678b92218 Allow renaming lifetiems and labels without leading apostrophe 2023-01-24 12:43:13 +05:30
bors
daa0138e4c Auto merge of #14001 - Veykril:lang-item, r=Veykril
Replace SmolStr usage with lang item enum for lang items

Fixes https://github.com/rust-lang/rust-analyzer/issues/13395
2023-01-21 18:25:02 +00:00
Lukas Wirth
f8ed4d7ae4 Use lang item resolution instead of known paths 2023-01-21 19:03:36 +01:00
Lukas Wirth
1535881836 Replace SmolStr usage with lang item enum for lang items 2023-01-21 17:55:45 +01:00
bors
1afa032f34 Auto merge of #13996 - lnicola:bump-deps, r=lnicola
minor: Bump deps
2023-01-21 12:27:40 +00:00
Laurențiu Nicola
a9b96e1efa Bump the rest of the deps 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
7a285e2933 Bump flate2 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
8f678a0169 Bump snap 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
1431264646 Bump rayon 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
c5a182c56b Bump mimalloc 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
7bbe4c299c Bump proc-macro2 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
f9598522fb Bump libloading 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
1165279905 Bump xshell 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
ff0b15cafa Bump xflags 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
e90b0b6504 Bump quote 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
25a5bd9b13 Bump object 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
11e4baba1a Bump indexmap 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
452e1e54ef Bump backtrace 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
f2397638f5 Bump arbitrary and derive-arbitrary 2023-01-21 14:05:22 +02:00
Laurențiu Nicola
ee4710d922 Bump cargo_metadata 2023-01-21 09:35:28 +02:00
Laurențiu Nicola
1dd1f41ef9 Bump typed-arena 2023-01-21 09:33:52 +02:00
Laurențiu Nicola
84c38d0456 Bump scoped-tls 2023-01-21 09:33:36 +02:00
Laurențiu Nicola
047bc6f037 Bump tracing-tree 2023-01-21 09:31:38 +02:00
Laurențiu Nicola
da85d43f02 Bump dissimilar 2023-01-21 08:50:34 +02:00
Laurențiu Nicola
d26c8ccc89 Bump num_cpus 2023-01-21 08:49:50 +02:00
Laurențiu Nicola
392a6ee422 Bump once_cell 2023-01-21 08:48:46 +02:00
Laurențiu Nicola
938aa9d0bc Bump semver 2023-01-21 08:45:47 +02:00
Laurențiu Nicola
9e63b9ba10 Bump memmap2 2023-01-21 08:44:25 +02:00
bors
9a6294d703 Auto merge of #13993 - OmarTawfik-forks:fix-server-path, r=Veykril
fix: substitute vscode variables in `config.serverPath`

From comment by `@Veykril` in https://github.com/rust-lang/rust-analyzer/issues/13939#issuecomment-1398187320:

> Yep, we pull the server path first, then substitute the configs, that's the wrong order.

6e52c64031/editors/code/src/ctx.ts (L155-L161)

Fixes #13939
2023-01-20 22:17:08 +00:00
bors
303737dad7 Auto merge of #13989 - Veykril:hover, r=Veykril
internal: Remove hover fallback in favor of ranged hover

The fallback is usually more annoying than useful at this point (it messes with the range of diagnostic popups a lot), we now have a ranged hover to check the type of something which works a lot better.

Closes https://github.com/rust-lang/rust-analyzer/issues/11602
2023-01-20 22:00:22 +00:00
OmarTawfik
7198cd04ac allow using vscode variables in config.serverPath 2023-01-20 13:22:11 -08:00
Lukas Wirth
4685b97f74 Remove hover fallback in favor of ranged hover 2023-01-20 21:52:05 +01:00
Laurențiu Nicola
5691c20bb4 Bump serde and serde_json 2023-01-20 20:57:27 +02:00
Laurențiu Nicola
2901e2803f Bump anyhow 2023-01-20 20:54:37 +02:00
Lukas Wirth
a542bd46bf Split out some hover functions 2023-01-20 16:30:08 +01:00
bors
ce67dea2ac Auto merge of #13988 - Veykril:hover-no-markdown, r=Veykril
Fix markdown removal in hover handling whitespace weirdly

Fixes https://github.com/rust-lang/rust-analyzer/issues/10028
2023-01-20 15:23:54 +00:00
Lukas Wirth
c5b1e3f2ae Fix markdown removal in hover handling whitespace weirdly 2023-01-20 14:29:12 +01:00
bors
d46d012c38 Auto merge of #13978 - bvanjoi:array-match, r=Veykril
feat: array match

fixed https://github.com/rust-lang/rust-analyzer/issues/13970
2023-01-20 10:30:18 +00:00
bvanjoi
8fa69f9f7d feat: array match 2023-01-20 10:59:30 +08:00
bors
6e52c64031 Auto merge of #13985 - Veykril:content-modified, r=Veykril
Don't respond with a ContentModified while loading the workspace

Initially this was done to prevent frequent inlay hint flickering, but this causes a lot of problems for a bunch of clients. We can (and already kind of have) move this into the semantic token request handlers instead.

Fixes https://github.com/rust-lang/rust-analyzer/issues/10910
2023-01-19 21:00:26 +00:00
Lukas Wirth
7385467f2e Don't respond with a ContentModified while loading the workspace 2023-01-19 21:52:27 +01:00
bors
56fb0cad6d Auto merge of #13984 - Veykril:target-data-layout, r=Veykril
fix: Fix target-data-layout fetching incorrectly passing 'rustc' to rustc
2023-01-19 20:45:29 +00:00
Lukas Wirth
384fa4b84a fix: Fix target-data-layout fetching incorrectly passing 'rustc' to rustc 2023-01-19 21:31:08 +01:00
bors
bbb730a441 Auto merge of #13983 - ink-feather-org:parse_const_closure, r=Veykril
Parse const_closures syntax.

Enables parsing of the syntax for `#![features(const_closures)]` introduced in [this PR](https://github.com/rust-lang/rust/pull/106004)
2023-01-19 14:53:59 +00:00
onestacked
872408500b Parse const_closures syntax.
Enables parsing of the syntax for `#![features(const_closures)]` introduced in https://github.com/rust-lang/rust/pull/106004
2023-01-19 15:40:07 +01:00
bors
93c8ae08dd Auto merge of #13981 - Veykril:saveOnCheckStartup, r=Veykril
Don't run flycheck on startup unless checkOnSave is enabled

The main reason people disable it is because they don't want the expensive checks to occur automatically, so we shouldn't trigger them at the start up either if this is disabled.
2023-01-18 20:39:44 +00:00
Lukas Wirth
c9d33cddc9 Don't run flycheck on startup unless checkOnSave is enabled 2023-01-18 21:38:30 +01:00
bors
760f2ff58d Auto merge of #13980 - Veykril:checkOnSaveConfigPatch, r=Veykril
Fix checkOnSave to check config patching not always working

This early return was missed in the initial PR, so if we aren't patching the `completion_addCallArgumentSnippets` `completion_addCallParenthesis` configs we won't be patching the checkOnSave ones...
2023-01-18 19:31:21 +00:00
Lukas Wirth
1e4a182954 Fix checkOnSave to check config patching not always working 2023-01-18 20:29:55 +01:00