|
| 1 | += Changelog #17 |
| 2 | +:sectanchors: |
| 3 | +:page-layout: post |
| 4 | + |
| 5 | +Commit: commit:aaa6961aa6d19b405dd2e837a09ac96ed6ace995[] + |
| 6 | +Release: release:2020-03-23[] |
| 7 | + |
| 8 | +== New Features |
| 9 | + |
| 10 | +* pr:3582[] fetch appropriate value of `OUT_DIR` from `cargo check`. |
| 11 | + This enables rust-analyzer to work correctly with crates which use compile-time code generation. This might significantly slow-down startup time (as we need to run `cargo check` build), so this functionality is disabled by default. |
| 12 | + To enable, set: |
| 13 | ++ |
| 14 | +[source,json] |
| 15 | +---- |
| 16 | +"rust-analyzer.cargoFeatures.loadOutDirsFromCheck": true |
| 17 | +---- |
| 18 | +* pr:3580[] macro expander is not more tolerant for syntax errors, which makes code completion inside macros more robust. |
| 19 | +* pr:3623[] **Fill Match Arms** assist now works even if some arms are already present. |
| 20 | +* pr:3607[] and instructions for installing rust-analyzer from AUR. |
| 21 | +* pr:3640[], pr:3651[] assist to merge imports with a common prefix. |
| 22 | ++ |
| 23 | +image::https://user-images.githubusercontent.com/1711539/77323042-ea8b6980-6d14-11ea-8cb6-23dccafaa024.gif[] |
| 24 | +* pr:3662[] correctly part arbitrary enum discriminants. |
| 25 | +* pr:3663[] installation from source uses `rust-analyzer` from `$PATH` by default. |
| 26 | +* pr:3677[] include `macro_rules!` macros in workspace symbols. |
| 27 | + |
| 28 | +== Fixes |
| 29 | + |
| 30 | +* pr:3541[] correctly complete constants and paths in patterns. |
| 31 | +* pr:3668[] don't suggest **Invert If** assist for `if let` syntax. |
| 32 | +* pr:3671[] fix infinite loop in macro expansion during completion. |
| 33 | +* pr:3674[] use correct name for the library if it is renamed in Cargo.toml. |
| 34 | +* pr:3673[] guard against runaway macro expansion in expressions. |
| 35 | +* pr:3681[] only suggest machine-applicable suggestions from `cargo check`. |
| 36 | +* pr:3678[] fix rename behavior in macros. |
| 37 | + |
| 38 | +== Internal Improvements |
| 39 | + |
| 40 | +* pr:3584[] use `dyn Trait` when working with salsa database, which improves compile times in release mode. |
| 41 | +* pr:3606[], pr:3608[], pr:3610[] improve audit on CI. |
| 42 | +* pr:3614[] in the TypeScript extension, be more explicit about persistent state. |
| 43 | +* pr:3626[] check trailing whitespace on CI. |
| 44 | +* pr:3629[] simplify and streamline plugin auto-update. |
| 45 | +* pr:3635[] simplify extension versioning scheme. |
| 46 | +* pr:3656[] simplify arena API. |
| 47 | +* pr:3672[] assists documentation generator skips hidden files. |
| 48 | +* pr:3632[] log errors from `cargo check`. |
0 commit comments