Changelog #88

Commit: df0936b
Release: 2021-08-02

Sponsors

Become a sponsor: On OpenCollective or GitHub Sponsors.

New Features

  • #9693 (first contribution) add Hover Range capability to get the type of an expression:

    126914293 0ce49a92 545d 4005 a59e 9294fa2330d6
  • #9715, #9719 make completions respect #[doc(hidden)].

  • #9731 add "Replace char with string" assist.

  • #9732 gate custom client-side commands behind capabilities.

  • #9740 make "Add explicit type" work for closure parameters.

  • #9593 make "Remove unused param" work for methods and associated functions.

Fixes

  • #9749 (first contribution) exclude rust-analyzer.server.path from VS Code’s sync feature.

  • #9744 annotate type hints for pattern name ranges instead of the pattern itself:

    127741276 e1dd173b 2964 4df0 abae 860283b2e1be
    127741277 e7fc2836 4f31 4c45 a3a9 69cbff3d52d9
  • #9558 do not erase Cargo diagnostics from the closed documents.

  • #9699 parse extra ::s in generic arguments.

  • #9701 correctly update diagnostics when files are opened and closed.

  • #9709 add capability for the "Open Cargo.toml" LSP extension.

  • #9710 don’t qualify self as crate in "Add missing impl members".

  • #9700 remove the legacy macro scoping hack.

  • #9722 refine the targets of the "Extract function" assist.

  • #9728 attach comma token to MATCH_ARM instead of MATCH_ARM_LIST.

  • #9742 fix hover range for derive inputs.

  • #9739 favor dereffed types in "Generate function" assist.

  • #9747 wrap inner tail expressions in the "Missing Ok or Some" diagnostic.

Internal Improvements

  • #9718 (first contribution) bump notify version.

  • #9716 stop reexporting hir_def's ItemInNs from HIR.

  • #9724 use more strictly-typed syntax nodes for analysis in "Extract function".

  • #9727 simplify the "Extract function" assist.

  • #9743 improve completion profiling.

  • #9746 add API to check what are the max limits in practice.

  • #9703 fix several typos and grammar mistakes.