Commit graph

282250 commits

Author SHA1 Message Date
Laurențiu Nicola
a43a5f9aef
Merge pull request #19266 from the-mikedavis/lsp-pull-diagnostics-identifier
Add `identifier` to pull diagnostic LSP capabilities
2025-03-02 14:51:59 +00:00
Michael Davis
1c00d8ffd6
Add identifier to pull diagnostic LSP capabilities
This field in the server capabilities instructs the client to maintain
the diagnostics received from a `textDocument/diagnostic` pull request
as a separate set from other diagnostics: namely those sent with classic
"push" diagnostics, `textDocument/publishDiagnostic`. rust-analyzer
emits "native" diagnostics (computed by rust-analyzer itself) in pull
diagnostics and separately emits cargo-based diagnostics with push, so
push and pull diagnostics should be different sets. Setting this field
instructs the client to avoid clearing push diagnostics when new pull
diagnostics arrive and vice versa.
2025-03-02 09:27:45 -05:00
Laurențiu Nicola
5c124a3b00
Merge pull request #19264 from lnicola/theme-color
minor: Fix transparent diagnostics
2025-03-02 14:21:42 +00:00
Laurențiu Nicola
6c1e5b4edb Fix transparent diagnostics 2025-03-02 16:05:59 +02:00
Lukas Wirth
768749f41d
Merge pull request #19259 from Veykril/push-skmvrmtorqso
Add flip or-pattern assist
2025-03-02 07:41:42 +00:00
Lukas Wirth
7d8e95806c
Merge pull request #19253 from ShoyuVanilla/migrate-convert-bool-then
internal: Migrate `convert_bool_then` to `SyntaxEditor`
2025-03-02 07:21:04 +00:00
Lukas Wirth
1b85befbd9 Add flip or-pattern assist 2025-03-02 08:04:27 +01:00
Lukas Wirth
e6a0fc58ec
Merge pull request #19251 from Veykril/push-tkmpqtzxynxk
Remove syntax editing from parenthesis computation
2025-03-01 17:46:07 +00:00
Lukas Wirth
a565f7f9c6
Merge pull request #19257 from Veykril/push-myvwxskworsn
internal: Cleanup some syntax highlighting things
2025-03-01 17:43:31 +00:00
Lukas Wirth
629baf217c Remove syntax editing from parenthesis computation 2025-03-01 18:32:04 +01:00
Lukas Wirth
28a5eeb157 Fix test_keyword_highlighting test 2025-03-01 18:29:47 +01:00
Lukas Wirth
497f14013c Cleanup string handling in syntax highlighting 2025-03-01 17:44:29 +01:00
Lukas Wirth
b0e3526f32 More precise macro modifiers for syntax highlighting 2025-03-01 17:23:51 +01:00
Lukas Wirth
08eeb8f3b2 Cleanup highlighting macro-def handling 2025-03-01 16:54:40 +01:00
Shoyu Vanilla
dfb2e3566d Migrate convert_bool_then to SyntaxEditor
Update assist docs
2025-03-01 13:12:15 +09:00
Lukas Wirth
e862daf778
Merge pull request #19250 from Veykril/push-tmrnrlotwtmr
Have inline_local_variable use precedence calculation for parentheses
2025-02-28 10:18:50 +00:00
Lukas Wirth
ff7de58156 Have inline_local_variable use precedence calculation for parentheses 2025-02-28 11:03:33 +01:00
Lukas Wirth
fd1f2e3528
Merge pull request #19249 from Veykril/push-noosrywrsuvn
Fix prefix adjustment hints unnecessarily introducing parens
2025-02-28 09:33:36 +00:00
Lukas Wirth
637dbe56fa Fix prefix adjustment hints unnecessarily introducing parens 2025-02-28 10:18:10 +01:00
Lukas Wirth
bd8b58d7ec
Merge pull request #19246 from ncrothers/add-anchor-for-associated-items
Add anchor for intra-doc links to associated items
2025-02-28 06:32:53 +00:00
Nicholas Crothers
af0c8b7f25 Add anchor for intra-doc links to associated items 2025-02-27 16:39:07 -06:00
Laurențiu Nicola
13eb83413a
Merge pull request #19194 from BenjaminBrienen/node
Update Node.js and vscode
2025-02-27 21:24:48 +00:00
BenjaminBrienen
d6f5377826 Update Node.js, vscode, and ts deps 2025-02-27 20:53:48 +01:00
Laurențiu Nicola
239a6864c7
Merge pull request #19237 from BenjaminBrienen/doc-tests
Doc tests
2025-02-27 16:53:59 +00:00
BenjaminBrienen
1b6c4b7770 ignore another test that fails on windows 2025-02-27 16:09:00 +01:00
BenjaminBrienen
0404156654 ignore doc test that only fails on windows 2025-02-27 15:57:08 +01:00
BenjaminBrienen
df903a55dd fix doc tests 2025-02-27 14:58:46 +01:00
BenjaminBrienen
8c16ded966 enable doctest 2025-02-27 14:58:46 +01:00
Lukas Wirth
494192b12e
Merge pull request #19241 from Veykril/push-lqumoruvuyvo
Fix sysroot crate-graph construction not mapping crate-ids for proc-macros
2025-02-27 12:34:03 +00:00
Lukas Wirth
cabb08ded5 Fix sysroot crate-graph construction not mapping crate-ids for proc-macros 2025-02-27 13:20:19 +01:00
Laurențiu Nicola
d4b92f4b68
Merge pull request #19230 from lnicola/zig
internal: set up Zig on CI and start using it in rust-analyzer
2025-02-27 11:34:41 +00:00
Lukas Wirth
e162475e7c
Merge pull request #19096 from darichey/rust-project-sysroot
Allow rust-project.json to specify sysroot workspace
2025-02-27 11:22:41 +00:00
Laurențiu Nicola
230ce20d56
Merge pull request #19239 from LuuuXXX/add-support-for-ohos
Cofigurate out ohos target to avoid compilation crashes
2025-02-27 10:19:23 +00:00
LuuuXXX
dae664d09a Cofigurate out ohos target to avoid compilation crashes 2025-02-27 11:43:03 +08:00
David Richey
5109c0b9e4 Drop support for stitched sysroot 2025-02-26 14:18:52 -06:00
David Richey
faaba55be1 Allow rust-project.json to specify sysroot workspace 2025-02-26 14:18:48 -06:00
Laurențiu Nicola
444ce09d53
Merge pull request #19220 from Shourya742/2025-02-24-nit-setup-doc
doc: remove nit from setup.md
2025-02-26 15:31:24 +00:00
Laurențiu Nicola
fae88f2ab5 Use cargo zigbuild for releases 2025-02-26 14:16:09 +02:00
Lukas Wirth
aa32933982
Merge pull request #19225 from Giga-Bowser/remove-assists
internal: Migrate some low-hanging `remove_*` assists to `SyntaxEditor`
2025-02-26 11:54:31 +00:00
Chayim Refael Friedman
3b4e268d81
Merge pull request #19204 from kazatsuyu/allow-package-specific-feature
Allow "package/feature" format feature flag
2025-02-26 06:01:12 +00:00
Giga Bowser
6e6e7e9669 internal: Migrate remove_unused_param assist to SyntaxEditor 2025-02-25 11:52:13 -05:00
Giga Bowser
1d5f831ffc fix: Properly handle removals in SyntaxEditor 2025-02-25 11:52:13 -05:00
Giga Bowser
8036e841b0 internal: Migrate remove_parentheses assist to SyntaxEditor 2025-02-25 11:52:13 -05:00
Giga Bowser
cac5153961 internal: Migrate remove_mut assist to SyntaxEditor 2025-02-25 11:52:13 -05:00
Giga Bowser
f7adafc7a3 internal: Improve reporting of intersecting changes 2025-02-25 11:46:45 -05:00
Lukas Wirth
16402de527
Merge pull request #19223 from ChayimFriedman2/implied-target-feature
fix: Support target features implications in target_feature 1.1
2025-02-25 08:02:50 +00:00
Chayim Refael Friedman
5c654dcb46 Disable typos checker for the target feature names 2025-02-25 05:02:17 +02:00
Chayim Refael Friedman
d5a85af7c0 Support target features implications in target_feature 1.1
We vendor the list of implications, which isn't nice, but t-compiler doesn't want to make rustc_target available to us.
2025-02-25 04:50:26 +02:00
bit-aloo
91ff4208d1
doc: remove nit from setup.md 2025-02-25 07:37:16 +05:30
Laurențiu Nicola
e6bb047627
Merge pull request #19221 from Giga-Bowser/generate-trait-impl-tabstop
minor: Add tabstop to impl body in `generate_trait_impl` assist
2025-02-24 19:15:53 +00:00