Changelog #28
Commit: d696776
Release: 2020-06-08
New Features
-
#4711don’t pass--all-featuresby default, use Cargo’s default features instead. -
#4720highlight unsafe operations inside unsafe blocks. In VS Code, you can useeditor.semanticTokenColorCustomizationsto customize the actual coloring1 2 3 4 5 6 7 8
"editor.semanticTokenColorCustomizations": { "[Theme Name]": { "rules": { "operator.unsafe": "#f00", "function.unsafe": "#f00" }, } }
-
#4382allow specifying key-value cfg options in JsonProject. -
#4726allow to override build-in project discovery with explicit list of `Cargo.toml`s to import:1
{ "rust-analyzer.linkedProjects": ["/home/projects/rust-analyzer/Cargo.toml"] }
-
#4730documentrust-project.jsonfile format, which can be used with non-Cargo based build systems. Docs: #non-cargo-based-projects. -
#4660enable hover and autocomplete docs on macro generated items. -
#4748implement hover actions, as an alternative UI for code lenses.
-
#4689implement return position impl trait.
Fixes
-
#4750fix Introduce Named Lifetime assist to work in more cases.
-
#4580invoke correct cargo forrunaction in VS Code. -
#4658fix lexing of format strings. -
#4721use correct modifier for unused code. -
#4502mark fixes from diagnostics as quick fixes. -
#4737parse default unsafe & default const. -
#4765fix type parameter defaults.
Internal Improvements
-
#4761use Chalk from crates.io. -
#4748build specialized index to improve auto-import performance. -
#4717compute assists text edits lazily. -
#4703document review process and contribution guidelines. -
#4772document certain high-level internal architecture invariants. -
#4688document initializationOptions used by rust-analyzer. -
#4710make LSP extension for running tests & binaries less rust-specific. -
#4723derive local roots from workspace configuration. -
#4724rename WorldState → GlobalState. -
#4758actually testinclude!(concant!(env!()))pattern. -
#4760preliminary refactorings in preparation for new VFS.