Lukas Wirth
1dd859f658
Add missing name-ref parents to syntactic highlighting
2025-03-10 12:31:38 +01:00
Lukas Wirth
44fad0b1d6
Merge pull request #19079 from ChayimFriedman2/rename-conflict
...
feat: Warn the user when a rename will change the meaning of the program
2025-03-10 08:59:43 +00:00
Lukas Wirth
f53d1eba48
Merge pull request #19327 from Veykril/push-qyyvkulltzpz
...
Fix `path` macro hygiene
2025-03-10 08:45:04 +00:00
Lukas Wirth
7ee9ce8480
Fix path macro hygiene
2025-03-10 09:29:27 +01:00
Lukas Wirth
c961ee6456
Merge pull request #19311 from aibaars/log-build-script-error
...
Log build script error output in `load_cargo::load_workspace_at`
2025-03-10 08:16:10 +00:00
Lukas Wirth
71b9103ea2
Merge pull request #19314 from snprajwal/variantdef-impl
...
fix(hir): `VariantDef` is `impl HasSource`
2025-03-10 08:13:24 +00:00
Lukas Wirth
b2a4f3dcef
Merge pull request #19316 from snprajwal/git-commit-ec
...
fix: do not apply editorconfig to git commit msg
2025-03-10 08:11:48 +00:00
Lukas Wirth
b2501efad5
Merge pull request #19252 from flodiebold/fix-fixup-delimiters
...
Fix syntax fixup producing invalid punctuation
2025-03-10 08:11:27 +00:00
Lukas Wirth
f36e2ead55
Merge pull request #19232 from ShoyuVanilla/issue-19196
...
Bump chalk for built-in supports of async closures
2025-03-10 08:11:23 +00:00
Lukas Wirth
e1912f8fa9
Rank ADT constructors as constructors for completion scoring
2025-03-09 15:36:53 +01:00
Shoyu Vanilla
965a0c0166
fix: Prevent wrong invocations of needs_parens_in with non-ancestral "parent"s
2025-03-09 18:54:22 +09:00
Shoyu Vanilla
0e4f189e80
internal: Migrate inline_local_variable to SyntaxEditor
2025-03-09 15:51:37 +09:00
Shoyu Vanilla
bb82831126
Bump chalk for built-in supports of async closures
2025-03-09 11:41:08 +09:00
¨Florian
fee83ba852
Generated doc update
2025-03-08 13:26:28 +01:00
¨Florian
e88f892eca
Fix syntax fixup producing invalid punctuation
...
Fixes #19206 .
Fixes #18244 .
2025-03-08 13:21:00 +01:00
Prajwal S N
b6f1ce8071
fix: do not apply editorconfig to git commit msg
...
The `max_line_length` property was set to 100 for all filetypes, which
led to git commit messages being wrapped at 100 characters instead of
the usual 75. This introduces an exception for the special file used by
git to write commit messages.
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-08 01:44:27 +05:30
Prajwal S N
e98837f558
fix(hir): VariantDef is impl HasSource
...
A new syntax node `ast::VariantDef` has been introduced to map between the HIR node and the AST.
The files have been updated with `cargo test -p xtask`.
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-08 01:25:27 +05:30
Arthur Baars
bdf602a594
Log build script error output in load_cargo::load_workspace_at
2025-03-07 16:07:56 +01:00
Lukas Wirth
d11c5b8d75
Merge pull request #19308 from Veykril/push-rnrxutwlvmly
...
Move loaded project MSRV back to 1.78, show notification for the warning
2025-03-07 07:06:54 +00:00
Lukas Wirth
5c6a1247fb
Pop up a notification for the MSRV project loading warning
2025-03-07 07:51:53 +01:00
Lukas Wirth
c8d9d5a930
Move project MSRV back to 1.78
2025-03-07 07:51:53 +01:00
Tongjun Gao
16878eb02a
Refactor relevance scoring to use a named constant BASE_SCORE
...
Replace magic number with a named constant for improved readability and maintainability of the scoring logic
2025-03-07 14:44:57 +08:00
Tongjun Gao
f68fd669f3
Fix logical error in relevance scoring implementation
2025-03-07 14:21:57 +08:00
Chayim Refael Friedman
b58fc9c2bc
Mark rust-analyzer.showSyntaxTree config option as requiring server restart
...
We register the provider when we start the server. It confused me why I set the option and it didn't work, so probably better to have it hint people.
2025-03-07 00:16:54 +02:00
Chayim Refael Friedman
0bd3229ef2
Warn the user when a rename will change the meaning of the program
...
Specifically, when a rename of a local will change some code that refers it to refer another local, or some code that refer another local to refer to it.
We do it by introducing a dummy edit with an annotation. I'm not a fond of this approach, but I don't think LSP has a better way.
2025-03-06 21:07:10 +02:00
Lukas Wirth
6a3ede1240
Merge pull request #19290 from aibaars/patch-1
...
Add warning and debug information when `cargo metadata` fails
2025-03-06 13:21:24 +00:00
Arthur Baars
66a1164eeb
Change %e to ?e to include detailed error message
2025-03-06 12:42:35 +00:00
Lukas Wirth
2e6292c0f3
Merge pull request #19295 from alibektas/rust_analyzer_run_on_cargo_toml
...
fix: Make RustAnalyzer:Run available in manifest file
2025-03-06 08:08:56 +00:00
Tongjun Gao
d95d2784da
Adjust relevance scoring threshold to consistent with existing implementations
2025-03-06 10:14:39 +08:00
Ali Bektas
bee6cdd962
fix: Make RustAnalyzer:Run available in manifest file
2025-03-06 00:01:16 +01:00
Lukas Wirth
2cff7013c0
Merge pull request #19292 from Veykril/push-zonnrrlosqmv
...
Fix syntax highlightingg punct filtering ignoring mods
2025-03-05 14:18:09 +00:00
Lukas Wirth
363297dc53
Merge pull request #19279 from Natural-selection1/master
...
Improve keyword completion for 'let' and 'let mut'
2025-03-05 14:14:41 +00:00
Lukas Wirth
8641805dfe
Fix syntax highlightingg punct filtering ignoring mods
2025-03-05 15:02:44 +01:00
Lukas Wirth
b9f5453d77
Merge pull request #19274 from Veykril/push-pouwrwwrlrlt
...
Highlight unsafe operations as unsafe, not definitions
2025-03-05 12:57:25 +00:00
Lukas Wirth
87815f7c0b
Use HIR unsafety information for unsafe syntax highlightng
2025-03-05 13:18:46 +01:00
Arthur Baars
52525bc913
Improve tracing log format in cargo_workspace.rs
2025-03-05 12:49:42 +01:00
Arthur Baars
049f4dbd2b
Add warning and debug information when cargo metadata fails
...
The errors are silently dropped elsewhere, which make it really hard to debug issues due to dependency download failures.
2025-03-05 10:40:11 +01:00
Tongjun Gao
5421fba746
add test cases for 'letm' keyword completion
2025-03-05 17:26:30 +08:00
Thalia Archibald
653801b854
Use size_of from the prelude instead of imported
...
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.
These functions were added to all preludes in Rust 1.80.
2025-03-05 00:48:44 -08:00
Thalia Archibald
0ffef9b5d1
minicore: Add size_of to prelude and add rust_2024 prelude
2025-03-05 00:30:38 -08:00
Laurențiu Nicola
e260467cfd
Merge pull request #19286 from lnicola/twiddle-ci
...
Twiddle with the `rustup` invocation on CI
2025-03-05 06:11:37 +00:00
Laurențiu Nicola
9a8968fa6c
Merge pull request #19265 from Shourya742/2025-03-01-add-dangling-dyn-diagnostic
...
feat: Add diagnostic for dangling dyn and impl
2025-03-05 05:58:31 +00:00
Laurențiu Nicola
b9d157c67a
Twiddle with the rustup invocation on CI
2025-03-05 07:56:17 +02:00
Tongjun Gao
120d5490aa
change 'let mut' keyword completion into 'ietm' snippet
2025-03-04 12:04:54 +08:00
Tongjun Gao
0d6dfc8031
Improve keyword completion for 'let' and 'let mut'
2025-03-04 11:50:11 +08:00
Laurențiu Nicola
de07b171ef
Bump minimum supported toolchain to 1.82
2025-03-03 16:03:06 +02:00
Lukas Wirth
16644ba8b8
Merge pull request #19261 from Veykril/push-rnqlyrvqpols
...
Support tuple struct patterns for expand_rest_pattern assist
2025-03-03 11:51:07 +00:00
Lukas Wirth
73e0fe1545
Merge pull request #19243 from Veykril/push-qrrqsywkwyzp
...
Allow unsetting default cfgs
2025-03-03 11:42:40 +00:00
Lukas Wirth
6610e60175
Merge pull request #19244 from Veykril/push-nmnrnlysvyvk
...
Warn when the used toolchain looks too old for rust-analyzer
2025-03-03 11:41:12 +00:00
Lukas Wirth
c315ad914f
Support tuple struct patterns for expand_rest_pattern assist
2025-03-03 12:35:53 +01:00