about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2024-12-22fix: Fix empty check diagnostics not marking files as changedLukas Wirth-20/+20
2024-12-22Merge pull request #18739 from Veykril/push-ntpvvqnnovtnLukas Wirth-0/+19
fix: Don't trigger paren wrapping typing handler after idents
2024-12-22fix: Properly check if workspace flychecking is allowedLukas Wirth-8/+13
2024-12-22fix: Don't trigger paren wrapping typing handler after identsLukas Wirth-0/+19
2024-12-22Merge pull request #18737 from Veykril/push-rslstwynmzpxLukas Wirth-0/+2
minor: Tell the server to stop prior to restarting it
2024-12-22minor: Tell the server to stop prior to restarting itLukas Wirth-0/+2
2024-12-22Merge pull request #18735 from Veykril/push-rpuxqrzrzvswLukas Wirth-3/+3
fix: Set `result_id` for `RelatedFullDocumentDiagnosticReport` everywhere
2024-12-22fix: Set `result_id` for `RelatedFullDocumentDiagnosticReport` everywhereLukas Wirth-3/+3
2024-12-21fix: only show debug lens with a valid rootroife-15/+19
2024-12-21fix: remove always! check for file_id in runnablesroife-16/+3
2024-12-20change config rust-analyzer.statusBar.documentSelector to showStatusBarMark Murphy-35/+62
2024-12-20Revert "internal: Drop proc-macro server support for ~1.66.0 and older ↵Lukas Wirth-30/+48
toolchains"
2024-12-20internal: Standardize how we take iterator parameters in `SyntaxFactory`Giga Bowser-16/+28
2024-12-20Move ty lowering diagnostic definitions into a separate moduleChayim Refael Friedman-29/+34
To keep them organized.
2024-12-20Merge pull request #18729 from Veykril/push-kyxtnozqzwknLukas Wirth-53/+140
Clear flycheck diagnostics more granularly
2024-12-20Clear all check diagnostics when the workspace changesLukas Wirth-0/+1
2024-12-20Arc the package ids coming from flycheckLukas Wirth-12/+21
2024-12-20Arc the workspace root flycheckLukas Wirth-8/+8
2024-12-20Clear flycheck diagnostics more granularlyLukas Wirth-48/+125
2024-12-20Merge pull request #18723 from ChayimFriedman2/tracing-completeLukas Wirth-360/+596
fix: Fix a case where completion was unable to expand a macro
2024-12-20Fix a case where completion was unable to expand a macroChayim Refael Friedman-360/+596
Which caused the macros of the popular `tracing` crate to not offer completions. The reason is rather complicated: it boils down to macro ignoring their input and completion always choosing the first expansion.
2024-12-20Merge pull request #18728 from Veykril/push-ozqlrzmqklwtLukas Wirth-49/+51
internal: Split `serde` derive feature into `serde_derive` usage
2024-12-20Merge pull request #18702 from ChayimFriedman2/prepLukas Wirth-133/+162
minor: Use a record struct instead of a tuple for each namespace in `PerNs`
2024-12-20internal: Split serde derive feature into `serde_derive` usageLukas Wirth-49/+51
Ideally we'd not have any dependency pull in the derive feature for faster build times, once that is the case this change would have an actual effect. See https://github.com/matklad/macro-dep-test/blob/master/README.md for context.
2024-12-20Show substitution where hovering over generic thingsChayim Refael Friedman-186/+1015
There are few things to note in the implementation: First, this is a best-effort implementation. Mainly, type aliases may not be shown (due to their eager nature it's harder) and partial pathes (aka. hovering over `Struct` in `Struct::method`) are not supported at all. Second, we only need to show substitutions in expression and pattern position, because in type position all generic arguments always have to be written explicitly.
2024-12-20Merge pull request #18726 from Veykril/push-vyzotyqqtpqsLukas Wirth-26/+19
fix: Reduce applicability of unnecessary_async assist
2024-12-20fix: Reduce applicability of unnecessary_async assistLukas Wirth-26/+19
2024-12-19Merge pull request #18717 from Veykril/push-pomxnvxotwlrLukas Wirth-7/+11
internal: Set `result_id` for pull diagnostics
2024-12-19internal: Set `result_id` for pull diagnosticsLukas Wirth-7/+11
2024-12-18Merge pull request #18715 from aibaars/ungram-asm-optionLukas Wirth-3/+1
Fix AsmOption rule in rust.ungram
2024-12-18fix: Consider both completion detail fields in to_protoLukas Wirth-1/+1
2024-12-18Fix AsmOption rule in rust.ungramArthur Baars-3/+1
2024-12-18fix: Do not ask the client ro resolve for non existing label detailsLukas Wirth-2/+4
2024-12-18internal: Cleanup label structure of `CompletionItem`Lukas Wirth-1070/+1201
2024-12-18Merge pull request #18711 from Veykril/push-kwurwxttmqwoLukas Wirth-2/+27
Taking a raw ref of a deref is always safe
2024-12-18Taking a raw ref of a deref is always safeLukas Wirth-2/+27
2024-12-18make no-variant types a dedicated Variants variantRalf Jung-9/+10
2024-12-18Variants::Single: do not use invalid VariantIdx for uninhabited enumsRalf Jung-6/+7
2024-12-18Remove salsa from proc-macro server dep treeLukas Wirth-15/+88
2024-12-18Merge pull request #18708 from ChayimFriedman2/fix-tinyLukas Wirth-0/+19
fix: Fix pretty-printing of `@` patterns
2024-12-18Fix pretty-printing of `@` patternsChayim Refael Friedman-0/+19
It didn't print the `@`.
2024-12-16Stabilize #[coverage] attributeltdk-1/+1
2024-12-16Merge pull request #18700 from ChayimFriedman2/dyn-sendLukas Wirth-1/+18
fix: Fix a panic with a diagnostics fix when a keyword is used as a field
2024-12-16Use a record struct instead of a tuple for each namespace in `PerNs`Chayim Refael Friedman-133/+162
The reason I did this is because I plan to add another field to this struct (indicating whether the item was cfg'ed out), but it seems worthy even separately and removes a bunch of one-letter variable names and tuple-indexing. It is also easy to separate from future changes, so it will be easier to review this way.
2024-12-16Fix a panic with a diagnostics fix when a keyword is used as a fieldChayim Refael Friedman-1/+18
I found it easiest to fix in the quickfix code, and not deeper (e.g. body lowering).
2024-12-16fix: Fix path qualified auto-importing completions not working with re-exportsLukas Wirth-134/+221
Prior to this commit we used to generate import paths, then zipped them with the existing qualifier to check if they agree on the path to import. This is brittle when re-exports come into play causing items to have multiple applicable paths that refer to them. This commit instead rewrites this logic by generating the import path for the qualifier, verifying that the rest of the qualifier resolves and then doing a final lookup on that resolution result for the final segment instead.
2024-12-16Merge pull request #18698 from Veykril/push-vpqwrwxptsqlLukas Wirth-4/+12
internal: Don't serialize empty fields in completions and resolve payloads
2024-12-16Merge pull request #18690 from Giga-Bowser/extract-variable-stringLukas Wirth-15/+168
feat: Use string literal contents as a name when extracting into variable
2024-12-16internal: Don't serialize empty fields in completions and resolve payloadsLukas Wirth-4/+12
2024-12-16Merge pull request #18695 from roife/improve-tuple-destructionLukas Wirth-74/+74
minor: improve name suggestion for destructure_tuple_binding