summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/project-model
AgeCommit message (Collapse)AuthorLines
2024-08-28Fix cwd used for proc macro expansionLaurențiu Nicola-2/+2
2024-08-27Auto merge of #17973 - Veykril:proc-macro-curr-dir, r=Veykrilbors-4/+21
Expand proc-macros in workspace root, not package root Should fix https://github.com/rust-lang/rust-analyzer/issues/17748. The approach is generally not perfect though as rust-project.json projects don't benefit from this (still, nothing changes in that regard)
2024-08-27Expand proc-macros in workspace root, not package rootLukas Wirth-4/+21
2024-08-25Auto merge of #17956 - Veykril:metadata-err, r=Veykrilbors-40/+46
fix: Fix metadata retrying eating original errors
2024-08-25fix: Fix metadata retrying eating original errorsLukas Wirth-40/+46
2024-08-23Auto merge of #17857 - ChayimFriedman2:rust-project-cfg-group, r=Veykrilbors-4/+607
feat: Allow declaring cfg groups in rust-project.json, to help sharing common cfgs Closes #17815.
2024-08-19Improve documentation for `InvocationStrategy`Lukas Wirth-12/+14
2024-08-19chore(config): remove `invocationLocation` in favor of `invocationStrategy`Victor Song-25/+6
These flags were added to help rust-analyzer integrate with repos requiring non-Cargo invocations. The consensus is that having two independent settings are no longer needed. This change removes `invocationLocation` in favor of `invocationStrategy` and changes the internal representation of `InvocationStrategy::Once` to hold the workspace root.
2024-08-17feat: Make rust-analyzer work partially when missing an internet connectionLukas Wirth-17/+63
2024-08-12Allow declaring cfg groups in rust-project.json, to help sharing common cfgsChayim Refael Friedman-4/+607
2024-08-09minor: log error when sysroot can't be discoveredwinstxnhdw-4/+4
2024-08-08Split up flycheck moduleLukas Wirth-124/+123
2024-08-07Fix cargo config get env parsingLukas Wirth-4/+7
2024-08-07Remove unnecessary CfgFlag definition in project-modelLukas Wirth-319/+285
2024-08-07Allow rust-project.json to be hiddenAli Bektas-0/+6
2024-08-06Replace `[package.repository] = "…"` of published crates with ↵Vincent Esche-1/+1
`[package.repository.workspace] = true`
2024-08-06Add repository URL for published crates' missing `[package.repository]` fieldsVincent Esche-0/+1
2024-08-06Replace `"TBD"` with more helpful desciptions in published crates' ↵Vincent Esche-1/+1
`[package.description]` fields
2024-08-05Simplify FileDelegateLukas Wirth-5/+6
2024-08-05Auto merge of #17795 - Veykril:library-dep-loading, r=Veykrilbors-173/+147
feat: Load sysroot library via cargo metadata See https://github.com/rust-lang/rust/pull/128534, fixes https://github.com/rust-lang/rust-analyzer/issues/7637 Requires a toolchain from 176e54520 2024-08-04 or later to work.
2024-08-05feat: Load sysroot library via cargo metadataLukas Wirth-173/+147
2024-08-02internal: Remove AbsPathBuf::TryFrom impl that checks too many things at onceLukas Wirth-11/+10
2024-07-30Set tracing level to debug when `cargo config get env` failsAli Bektas-1/+1
2024-07-26Internal: Cleanup proc-macro error handlingLukas Wirth-3/+6
2024-07-25fix: Support new cargo config get env formatLukas Wirth-2/+14
2024-07-22Read rust-analyzer.toml files on startupAli Bektas-0/+13
2024-07-19Auto merge of #17620 - Veykril:edition-aware-parser, r=Veykrilbors-4/+5
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-18feature: move `linked_projects` discovery to the rust-analyzer serverDavid Barsky-10/+27
2024-07-18Encode edition within FileId in the hir layerLukas Wirth-4/+5
2024-07-16More symbol usageLukas Wirth-12/+13
2024-07-16Use symbol in cfgLukas Wirth-14/+20
2024-07-08Remove version check before using `--keep-going`mo8it-25/+7
2024-06-30Remove inline `rust_2018_idioms, unused_lifetimes` lint warn, Cargo.toml ↵Lukas Wirth-2/+0
already enforces this
2024-06-11feature: add build system info; runnables to `rust-project.json`Wilfred Hughes-6/+175
2024-06-09Register virtual workspace Cargo.toml files in the VFSLukas Wirth-0/+15
2024-06-06chore: Prefer tracing span shorthand macrosWilfred Hughes-5/+5
2024-05-30style: simplify string interpolationHamir Mahal-3/+2
2024-05-23Allow sysroots to only consist of the source root dirLukas Wirth-293/+236
2024-05-14fix: Don't emit --keep-going for custom build script commandsLukas Wirth-9/+16
2024-05-02fix: Correctly handle `no_core`/`no_std` for preludesLukas Wirth-12/+55
2024-04-26Show workspace info in the status barLukas Wirth-4/+35
2024-04-22Auto merge of #17102 - ↵bors-0/+2
davidbarsky:david/add-some-tracing-to-project-loading, r=lnicola chore: add some `tracing` to project loading I wanted to see what's happening during project loading and if it could be parallelized. I'm thinking maybe, but it's not this PR :)
2024-04-22chore: add some `tracing` to project loadingDavid Barsky-0/+25209
2024-04-21Support flychecking for cargo scriptsLukas Wirth-13/+17
2024-04-21Extract common fields out of ProjectWorkspace variantsLukas Wirth-256/+160
2024-04-21Allow rust files to be used linkedProjectsLukas Wirth-0/+25460