Changelog #30

Commit: 3370c81
Release: 2020-06-22

Sponsors

This week, we’d like to thank another long-time sponsor:

Discord, a place to talk with your communities and friends, built using Rust and other best-in-class tools.

New Features

  • #4839 implement goto type definition for inlay hints

    83335671 0122e380 a2b7 11ea 9922 fbdcfb11a7f3
  • #4851 add quickfix to add a struct field

    85289481 d253f380 b497 11ea 8089 2f21e3fdb75e
  • #4860 accept relative paths in rust-project.json. If a relative path is found as part of Crate.root_module or Root.path, interpret it as relative to the location of the rust-project.json file.

  • #4878 make Replace Qualified Name With Use replace all mentions of the path.

  • #4919 Structural Search Replace no longer requires to specify the type of the capture.

  • #4916 add configuration options to treat certain cargo check warnings with hint or information severity.

    1
    2
    3
    4
    5
    
    {
        "rust-analyzer.diagnostics.warningsAsHint": [
            "unused_variables"
        ]
    }
    
  • #4925 highlighting escape sequences in strings.

  • #4903 add documentation to the list of semantic tokens modifiers for code inside doc comments.

  • #4963 download artifacts into tmp dir. This should prevent partially downloaded files in cases when the user closes vsode before the download is complete.

  • #4969 handle bindings after @ in patterns.

Fixes

  • #4877 fix syntax highlighting of recursive macros.

  • #4876 don’t highlight unresolved references in doc comments.

  • #4915 only highlight rust code in doc comments.

  • #4959 syntax highlighting for documentation comments on macro definitions.

  • #4914, #4930 fix panic in match checking.

  • #4821 display doctest code lens before comment.

  • #4950, #4952, #4957 fix panics in type inference.

  • #4958 fix type inference for Fn traits.

Internal Improvements

  • #4891, #4948 add API for the new Virtual File System.

  • #4947 improve type checking to use up to 20% less memory.

  • #4934 directly leverage salsa queries for computing symbol index.

  • #4937 allow overriding rust-analyzer display version.

  • #4961, #4964 centralize in-flight LSP requests handling.

  • #4962 expand parsing API to allow more node types for SSR.