| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-10-27 | Support `cfg(true)` and `cfg(false)` | Chayim Refael Friedman | -0/+41 | |
| As per RFC 3695. | ||||
| 2024-10-24 | internal: Improve proc-macro error msg for failed build scripts | Lukas Wirth | -10/+13 | |
| 2024-10-23 | fix: Add missing cfg flags for `core` crate | Wilfred Hughes | -3/+4 | |
| Some types in `core` are conditionally compiled based on `target_has_atomic` or `target_has_atomic_load_store` without an argument, for example `AtomicU64`. This is less noticeable in Cargo projects, where rust-analyzer adds the output `RUSTC_BOOTSTRAP=1 cargo rustc --print cfg` so it gets the full set of cfg flags. This fixes go-to-definition on `std::sync::atomic::AtomicU64` in non-cargo projects. | ||||
| 2024-10-18 | fix: Fix CI running analysis-stats incorrectly against the standard libraries | Lukas Wirth | -3/+0 | |
| 2024-10-12 | Fix panic when json project has relative buildfile paths | David Richey | -1/+1 | |
| 2024-09-30 | Gate `#[test]` expansion under `cfg(test)`. | Chayim Refael Friedman | -14/+26 | |
| This will mean users opting to not activate `cfg(test)` will lose IDE experience on them, which is quite unfortunate, but this is unavoidable if we want to avoid false positives on e.g. diagnostics. The real fix is to provide IDE experience even for cfg'ed out code, but this is out of scope for this PR. | ||||
| 2024-09-30 | Provide an config option to not set `cfg(test)` | Chayim Refael Friedman | -6/+22 | |
| 2024-09-26 | Include buildfiles in vfs | David Richey | -0/+11 | |
| 2024-09-25 | Pass all-targets for build scripts in more cli commands | Lukas Wirth | -1/+2 | |
| Without this, build scripts don't run for tests and as such any proc-macros in dev-deps fail to resolve | ||||
| 2024-09-11 | Remove crate graph deduplication logic | Lukas Wirth | -19298/+1 | |
| 2024-09-05 | fix: Updating settings should not clobber discovered projects | Wilfred Hughes | -0/+11 | |
| `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-01 | minor: Downgrade cyclic deps error to warning | Lukas Wirth | -1/+1 | |
| 2024-08-28 | Fix cwd used for proc macro expansion | Laurențiu Nicola | -2/+2 | |
| 2024-08-27 | Auto merge of #17973 - Veykril:proc-macro-curr-dir, r=Veykril | bors | -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-27 | Expand proc-macros in workspace root, not package root | Lukas Wirth | -4/+21 | |
| 2024-08-25 | Auto merge of #17956 - Veykril:metadata-err, r=Veykril | bors | -40/+46 | |
| fix: Fix metadata retrying eating original errors | ||||
| 2024-08-25 | fix: Fix metadata retrying eating original errors | Lukas Wirth | -40/+46 | |
| 2024-08-23 | Auto merge of #17857 - ChayimFriedman2:rust-project-cfg-group, r=Veykril | bors | -4/+607 | |
| feat: Allow declaring cfg groups in rust-project.json, to help sharing common cfgs Closes #17815. | ||||
| 2024-08-19 | Improve documentation for `InvocationStrategy` | Lukas Wirth | -12/+14 | |
| 2024-08-19 | chore(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-17 | feat: Make rust-analyzer work partially when missing an internet connection | Lukas Wirth | -17/+63 | |
| 2024-08-12 | Allow declaring cfg groups in rust-project.json, to help sharing common cfgs | Chayim Refael Friedman | -4/+607 | |
| 2024-08-09 | minor: log error when sysroot can't be discovered | winstxnhdw | -4/+4 | |
| 2024-08-08 | Split up flycheck module | Lukas Wirth | -124/+123 | |
| 2024-08-07 | Fix cargo config get env parsing | Lukas Wirth | -4/+7 | |
| 2024-08-07 | Remove unnecessary CfgFlag definition in project-model | Lukas Wirth | -319/+285 | |
| 2024-08-07 | Allow rust-project.json to be hidden | Ali Bektas | -0/+6 | |
| 2024-08-06 | Replace `[package.repository] = "…"` of published crates with ↵ | Vincent Esche | -1/+1 | |
| `[package.repository.workspace] = true` | ||||
| 2024-08-06 | Add repository URL for published crates' missing `[package.repository]` fields | Vincent Esche | -0/+1 | |
| 2024-08-06 | Replace `"TBD"` with more helpful desciptions in published crates' ↵ | Vincent Esche | -1/+1 | |
| `[package.description]` fields | ||||
| 2024-08-05 | Simplify FileDelegate | Lukas Wirth | -5/+6 | |
| 2024-08-05 | Auto merge of #17795 - Veykril:library-dep-loading, r=Veykril | bors | -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-05 | feat: Load sysroot library via cargo metadata | Lukas Wirth | -173/+147 | |
| 2024-08-02 | internal: Remove AbsPathBuf::TryFrom impl that checks too many things at once | Lukas Wirth | -11/+10 | |
| 2024-07-30 | Set tracing level to debug when `cargo config get env` fails | Ali Bektas | -1/+1 | |
| 2024-07-26 | Internal: Cleanup proc-macro error handling | Lukas Wirth | -3/+6 | |
| 2024-07-25 | fix: Support new cargo config get env format | Lukas Wirth | -2/+14 | |
| 2024-07-22 | Read rust-analyzer.toml files on startup | Ali Bektas | -0/+13 | |
| 2024-07-19 | Auto merge of #17620 - Veykril:edition-aware-parser, r=Veykril | bors | -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-18 | feature: move `linked_projects` discovery to the rust-analyzer server | David Barsky | -10/+27 | |
| 2024-07-18 | Encode edition within FileId in the hir layer | Lukas Wirth | -4/+5 | |
| 2024-07-16 | More symbol usage | Lukas Wirth | -12/+13 | |
| 2024-07-16 | Use symbol in cfg | Lukas Wirth | -14/+20 | |
| 2024-07-08 | Remove version check before using `--keep-going` | mo8it | -25/+7 | |
| 2024-06-30 | Remove inline `rust_2018_idioms, unused_lifetimes` lint warn, Cargo.toml ↵ | Lukas Wirth | -2/+0 | |
| already enforces this | ||||
| 2024-06-11 | feature: add build system info; runnables to `rust-project.json` | Wilfred Hughes | -6/+175 | |
| 2024-06-09 | Register virtual workspace Cargo.toml files in the VFS | Lukas Wirth | -0/+15 | |
| 2024-06-06 | chore: Prefer tracing span shorthand macros | Wilfred Hughes | -5/+5 | |
| 2024-05-30 | style: simplify string interpolation | Hamir Mahal | -3/+2 | |
| 2024-05-23 | Allow sysroots to only consist of the source root dir | Lukas Wirth | -293/+236 | |
