about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates
AgeCommit message (Collapse)AuthorLines
2024-09-10feat: generate names for tuple-struct in add-missing-match-armsroife-24/+106
2024-09-10refactor: introduce NameGenerator in suggest_nameroife-81/+192
2024-09-09feat: use shorthand when pretty-print record patroife-6/+79
2024-09-09Auto merge of #18041 - roife:fix-issue-17631, r=Veykrilbors-1/+95
feat: better name suggestions for fn fix #17631. Better name suggestions for fn-calls / method-calls in the form of `from()`, `from_xxx()`, `into()`, etc.
2024-09-09feat: better name suggestions for fnroife-1/+95
2024-09-09fix: add parenthesis for or-patternroife-1/+18
2024-09-09fix: use `pretty_print_pat` for params in fnroife-5/+123
2024-09-09feat: add prettifier for Patroife-0/+31
2024-09-09feat: Allow hir-def prettifier formatting into one-lineroife-15/+55
2024-09-09Remove unnecessary symbols and add missing symbolscuishuang-3/+5
Signed-off-by: cuishuang <imcusg@gmail.com>
2024-09-08Better testing infra for ratomlAli Bektas-102/+227
2024-09-08Automatically add semicolon when completing unit-returning functionsChayim Refael Friedman-40/+200
But provide a config to suppress that. I didn't check whether we are in statement expression position, because this is hard in completion (due to the natural incompleteness of source code when completion is invoked), and anyway using function returning unit as an argument to something seems... dubious.
2024-09-06Fix toolsMichael Goulet-0/+7
2024-09-06fix: Properly prevent mir building with unknown types presentLukas Wirth-5/+14
2024-09-06fix: Always explicitly set trait ref self types when loweringLukas Wirth-64/+80
2024-09-06Bump lsp-serverLukas Wirth-1/+1
2024-09-06Auto merge of #18065 - Veykril:catchy-diagnostics, r=Veykrilbors-12/+23
fix: Catch panics from diagnostics computation
2024-09-06fix: Catch panics from diagnostics computationLukas Wirth-12/+23
2024-09-05fix: Updating settings should not clobber discovered projectsWilfred Hughes-61/+85
`linkedProjects` is owned by the user's configuration, so when users update this setting, `linkedProjects` is reset. This is problematic when `linkedProjects` also contains projects discovered with `discoverCommand`. The buggy behaviour occurred when: (1) The user configures `discoverCommand` and loads a Rust project. (2) The user changes any setting in VS Code, so rust-analyzer receives `workspace/didChangeConfiguration`. (3) `handle_did_change_configuration` ultimately calls `Client::apply_change_with_sink()`, which updates `config.user_config` and discards any items we added in `linkedProjects`. Instead, separate out `discovered_projects_from_filesystem` and `discovered_projects_from_command` from user configuration, so user settings cannot affect any type of discovered project. This fixes the subtle issue mentioned here: https://github.com/rust-lang/rust-analyzer/pull/17246#issuecomment-2185259122
2024-09-05Add command to report unresolved referencesDavid Richey-0/+200
2024-09-05fix: Fix parser panicking on invalid asm optionsLukas Wirth-0/+6
2024-09-05asm! parsing and lowering fixesLukas Wirth-18/+106
2024-09-05Fix name fetching being incorrect for asm operandsLukas Wirth-93/+107
2024-09-05Add missing doc commentsLukas Wirth-0/+1
2024-09-05Support more IDE features for asm operandsLukas Wirth-40/+180
2024-09-05Give InlineAsmOperand a HIR representationLukas Wirth-217/+409
2024-09-05Add Definition kind for asm register operandLukas Wirth-35/+59
2024-09-05Add Definition kind for asm register classesLukas Wirth-28/+214
2024-09-05Lower asm expressionsLukas Wirth-97/+612
2024-09-05fix: Fix `inline_const_as_literal` error when the number >= 10coekjan-4/+14
2024-09-04assist: ensure replace_qualified_name_with_use applies to the first path segmentDavid Barsky-9/+25
2024-09-04Parse builtin#asm expressionsLukas Wirth-21/+805
2024-09-04Auto merge of #18045 - Veykril:fix-loop-lower, r=Veykrilbors-9/+65
fix: Fix lowering of for loops dropping the loop block
2024-09-04fix: Fix lowering of for loops dropping the `loop` blockLukas Wirth-9/+65
2024-09-04Add edition dependent keyword highlighting testsLukas Wirth-7/+326
2024-09-03Add an internal lint that warns when accessing untracked dataNadrieril-0/+3
2024-09-03bundle old root into `SyntaxEdit` resultDropDemBits-12/+30
useful for `SourceChangeBuilder` so it can still perform a tree diff without having to store the old root separately
2024-09-03Auto merge of #17984 - ShoyuVanilla:cast, r=Veykrilbors-93/+1614
feat: Implement cast typecheck and diagnostics Fixes #17897 and fixes #16564 Mainly adopted from https://github.com/rust-lang/rust/blob/100fde5246bf56f22fb5cc85374dd841296fce0e/compiler/rustc_hir_typeck/src/cast.rs
2024-09-03Auto merge of #18031 - roife:suggest-name-in-completion, r=Veykrilbors-15/+142
feat: Suggest name in completion for let_stmt and fn_param fix #17780 1. Refactor: move `ide_assist::utils::suggest_name` to `ide-db::syntax_helpers::suggest_name` for reuse. 2. When completing `IdentPat`, detecte if the current node is a `let_stmt` or `fn_param`, and suggesting a new name based on the context.
2024-09-02misc fixesDropDemBits-26/+20
2024-09-02handle replace_with_many and replace_allDropDemBits-16/+97
2024-09-02support replacing root nodeDropDemBits-14/+200
2024-09-02properly sort changes by depth to sort between nodes that have the same ↵DropDemBits-4/+19
start range
2024-09-02fix insert ranges not being excluded from disjointnessDropDemBits-7/+12
2024-09-02support insert{_all}DropDemBits-11/+88
2024-09-02propagate annotations to mapped elementsDropDemBits-52/+168
2024-09-03tests: suggesting names in completions for let_stmt and fn_paramroife-0/+73
2024-09-03feat: suggest name in let_stmt and fn_paramroife-2/+53
2024-09-03refactor: move ide_assist::utils::suggest_name to ide-dbroife-13/+16
2024-09-03feat: Implement cast typechecksShoyu Vanilla-93/+1614