about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2024-07-20fix: handle highlightings inside macro calls & only highlight kws in current ↵roife-220/+278
file
2024-07-20fix: ensure that highlight_related works for macro_exprroife-6/+13
2024-07-20use token_ancestors_with_macros to simplify goto-def on kwroife-83/+45
2024-07-20fix: navigate to label directly when perform 'goto-def' on control-flow kwroife-3/+3
See https://github.com/rust-lang/rust-analyzer/pull/17542#discussion_r1667656190
2024-07-20feat: find references on control-flow kwsroife-1/+253
2024-07-20fix: keyword highlighting in macro expansionroife-0/+133
2024-07-20fix: incorrect highlighting of try blocks with control flow kwsroife-138/+242
2024-07-20fix: ensure that goto-def works on fn/try/async kwroife-3/+9
2024-07-20feat: goto-def on keywordsroife-7/+419
2024-07-19Drop an unnecessary `Arc::clone`Lukas Wirth-1/+1
2024-07-19Regenerate filesLukas Wirth-2/+8
2024-07-19Make LRU opt-inLukas Wirth-342/+1159
2024-07-19Remove duplicate information from interned::SlotLukas Wirth-11/+18
2024-07-19Auto merge of #17638 - Veykril:salsa-perf, r=Veykrilbors-35/+28
perf: Reduce memory usage of salsa slots by 8 bytes
2024-07-19Reduce maximum LRU size to 2^16 entries, reducing memory footprint of LRU ↵Lukas Wirth-49/+50
entries
2024-07-19perf: Reduce memory usage of salsa slots by 8 bytesLukas Wirth-35/+28
2024-07-19Auto merge of #17637 - jjoeldaniel:master, r=Veykrilbors-14/+0
internal: remove rust-analyzer.openFAQ Removed no longer functional `rust-analyzer.openFAQ` command created in #17508
2024-07-19Auto merge of #17622 - roife:fix-issue-17602, r=Veykrilbors-5/+82
fix: handle synonymous imports with different renaming in 'merge imports' fix #17602
2024-07-19remove rust-analyzer.openFAQJoel Daniel Rico-19/+0
2024-07-19Auto merge of #17620 - Veykril:edition-aware-parser, r=Veykrilbors-1425/+2642
Edition aware parser Fixes https://github.com/rust-lang/rust-analyzer/issues/16324 by allowing us to properly thread through the edition to the parser
2024-07-19Test macros doing edition dependent parsingLukas Wirth-62/+92
2024-07-19Prevent generated runner module from being format checkedLukas Wirth-0/+1
2024-07-19Parse `try` as a keyword only in edition 2018 and upLukas Wirth-42/+24
2024-07-19Add basic edition inline parser test supportLukas Wirth-172/+185
2024-07-19Make xtask install work againLaurențiu Nicola-2/+2
2024-07-18Auto merge of #17246 - ↵bors-169/+877
davidbarsky:david/move-rust-project-generation-to-server, r=Veykril feature: teach rust-analyzer to discover `linked_projects` This PR's been a long-time coming, but like the title says, it introduces server-side project discovery and removes the extension hooks I previously introduced. I don't think this PR is ready to land, but here are the things I'm feeling squishy about: - I don't think I like the idea of introducing the `cargo-metadata` command-but-for-everything-else in the `flycheck` module, but the progress reporting infrastructure was too convenient to pass up. Happy to move it elsewhere. Here are the things I _know_ I need to change: - For progress reporting, I'm extracting from a `serde_json::Value` that corresponds to `tracing_subsciber::fmt::Layer`'s JSON output. I'd like to make this a bit more structured/documented than the current nonsense I wrote. - The progress reporting currently hardcodes "Buck"; it should be deriving that from the previously mentioned more-structured-output. - This doesn't handle *reloading* when a corresponding buildfile is changed. It should be doing that. <details> <summary>Anyway, here's a video of rust-analyzer discovering a Buck target.</summary> https://github.com/rust-lang/rust-analyzer/assets/2067774/be6cd9b9-2c9a-402d-847f-05f860a91df1 </details>
2024-07-18feature: move `linked_projects` discovery to the rust-analyzer serverDavid Barsky-169/+877
2024-07-18Rewrite inline parser test infra to generated proper rust test casesLukas Wirth-163/+955
2024-07-18Update test fixturesLukas Wirth-195/+301
2024-07-18Encode edition within FileId in the hir layerLukas Wirth-822/+1115
2024-07-18fix: handle synonymous imports in 'merge imports'roife-5/+82
2024-07-17Auto merge of #17618 - Veykril:rustc_skip_during_method_dispatch, r=Veykrilbors-17/+94
Support rustc_skip_during_method_dispatch Fixes https://github.com/rust-lang/rust-analyzer/issues/17256
2024-07-17Support rustc_skip_during_method_dispatchLukas Wirth-17/+94
2024-07-17Auto merge of #17617 - Veykril:grammar-kind-gen, r=Veykrilbors-757/+816
Derive kinds information from ungrammar file This reduces the need to touch more files when adding a new grammar rule
2024-07-17string is not a keywordLukas Wirth-5/+13
2024-07-17Add always disabled gen parse supportLukas Wirth-55/+376
2024-07-17Derive kinds information from ungrammar fileLukas Wirth-704/+434
2024-07-17Auto merge of #17616 - Veykril:config-param-hints, r=Veykrilbors-6/+6
Fix incorrect generic parameter hint defaults Missed this in the review but we should show const param hints, not lifetime param hints by default
2024-07-17Fix incorrect generic parameter hint defaultsLukas Wirth-6/+6
2024-07-17Add --keep-going to rust-analyzer.cargo.buildScripts.overrideCommand docsLaurențiu Nicola-3/+3
2024-07-16Auto merge of #17611 - Veykril:macro-arg-no-call, r=Veykrilbors-3/+10
fix: Don't call macro_arg directly in `ExpandDatabase::syntax_context`
2024-07-16Don't call macro_arg directly in `ExpandDatabase::syntax_context`Lukas Wirth-3/+10
2024-07-16Auto merge of #17609 - lnicola:sync-from-rust, r=lnicolabors-5/+4
minor: Sync from downstream
2024-07-16Merge from rust-lang/rustLaurențiu Nicola-4/+3
2024-07-16Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2024-07-16Set RUSTC_SYSROOT for runnablesLukas Wirth-43/+59
2024-07-16Auto merge of #127617 - lnicola:sync-from-ra, r=lnicolabors-4424/+7363
Subtree update of `rust-analyzer` r? `@ghost`
2024-07-16Remove Name::to_smol_strLukas Wirth-190/+288
2024-07-16More symbol usageLukas Wirth-303/+388
2024-07-16Use symbol in cfgLukas Wirth-92/+147