Changelog #22
Commit: 7a9ba16
Release: 2020-04-27
New Features
-
#4065,#4128complete unqualified enum variants
-
#4105code completion for attributes. -
#3954we now pre-select completion variant if it matches the expected type. -
#4006syntax highlighting for format strings
-
#4098add setup instructions for YouCompleteMe. -
#4082implementrust-analyzer --help. -
#4090fix naming of two config options:-
featureFlags.lsp.diagnostics→diagnostics.enable(enables native rust-analyzer diagnostics) -
procMacro.enabled→procMacro.enable(enables support for procedural macros)
-
-
#4092allow running#[ignore]tests. -
#4107customonEntercommand is disabled by default. To re-enable it, use the following config:1 2 3 4 5
{ "key": "Enter", "command": "rust-analyzer.onEnter", "when": "editorTextFocus && !suggestWidgetVisible && editorLangId == rust" },
-
#4111support forextern "C" {}blocks. -
#3998Add Function assist can now add functions in other files. -
#4133eagerly prime caches to reduce startup latency in certain vim setups. -
#4137prefer core/alloc paths on #![no_std]. -
#4136support#[cfg]on expressions. -
#4154addcargo testto the list of Run commands.
Fixes
-
#4096fix defaulttasks.jsongeneration. -
#4057fix panic in split_imports assist. -
#4076fix handing ofderiveattributes for macros. -
#4078do not add default and closure types in 'add explicit type' assist. -
#4106fix panic in type inference. -
#4113honor hierarchical document symbols client capability. -
#4126don’t omit methods withselffrom path completion. -
#4127more helpful diagnostic message ifPATHdoesn’t containcargo(this PR also broke everything) -
#4129unbreak everything. -
#4134fix panic on empty doc comment. -
#4139fix infinite macro loop on an empty repetition. -
#4146completion doesn’t add()when completiing high-order function argument.
Internal Improvements
-
#4060update chalk, the new version uses more caching and should be faster. -
#4094show stderr from proc macro server. -
#4038when generating code for AST, move boring impl out of the way. -
#4099,#4108hide implementation details of "pointer" to a syntax tree node. -
#4131switch totext-sizecrate for representing text offsets and ranges. -
#4135renameStructField→Fieldeverywhere.