31

IntelliJ Rust Changelog #122

 4 years ago
source link: https://intellij-rust.github.io/2020/05/19/changelog-122.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Most of the new features in the release have been added by third-party contributors. Many thanks to @Kobzol for the extraordinary amount of contributions!

You can participate too! Join our open source development on Github .

New Features

  • Inlay hints improvements:
    • New inlay hints for chained method calls (by @Kobzol )

      qYbMRvB.png!web

    • Show type hints for type placeholders _ (by @avrong )

      ZzYf6z7.png!web

    • Support blacklisting for inlay parameter hints. You can find these settings in Settings | Editor | Inlay Hints | Rust | Parameter hints | Blacklist... (by @Kobzol )

    If you don’t like one of our new inlay hints, you can disable it in Settings | Editor | Inlay Hints | Rust .

  • Refactorings improvements:
    • Provide Introduce Constant refactoring. You can invoke it via Refactor | Extract | Constant or Ctrl+Alt+C (by @Kobzol )

      EbIbe2N.png!web

    • Improve Extract Enum Variant refactoring. Now derive and repr attributes are copied from the parent enum to the generated struct (by @Kobzol )

      QFv6V3R.png!web

    • Also, Extract Enum Variant is now available from Refactor | Extract and Refactor | Refactor This menus (by @Kobzol )
  • Highlight errors in format string literal in macros like println , write , format , etc. (by @Kobzol )

    VfmIvav.png!web

  • Automatically insert missing <> when completing generic types (by @Kobzol )

    euMBRnn.png!web

  • Support include! macro calls generated by another macro call. Note, full support (name resolution and completion for code from including file in included one and correct module hierarchy recognition, i.e. absence of false positive “File is not included in module tree” editor notification), is available only when the new macro expansion engine is enabled (You can enable it in Settings | Languages & Frameworks | Rust | Expand Declarative macros ).
  • Show value of NonZero* numbers in the debugger (by @Kobzol )

Performance Improvements

  • Slightly optimized macro name resolution and expansion
  • Fixes UI freezes during project save if the new macro expansion engine is enabled
  • Improved macro expansion task cancellation. Typing in Cargo.toml should be smoother. This affects you only if the new macro expansion engine is enabled.

Fixes

  • Take into account extern keyword by Implement members quick fix (by @t-kameyama )
  • Fix false-positive E0603 module is private if the module is declared multiple times (e.g. in lib.rs and main.rs )

  • Go To Super action ( Ctrl+U ) now allows choosing a module declaration (if multiple)

  • Fix #[cfg()] attributes support. Ignore impl ’s from disabled submodules
  • Improve "complete current statement ( Ctrl+Shift+Enter ) action:
    ;
    
  • Implement Members and Generate Construct actions now take into account all trait bounds of trait object types
  • Omit unchanged default type parameters of parameters by Extract Function refactoring (by @Kobzol )
  • Fix Find Usages action:
    include!()
    pub(crate)
    
  • Fix the issue with non-rust directory renaming. Previously, the plugin sometimes broke “Rename” refactoring applied to a directory in non-rust projects.
  • Fix the issue with Surround with unsafe block quick fix (by @Kobzol )
  • Properly do Invalidate caches & Restart action
  • Do not throw the exception while building a project via Build action
  • Fetch cargo metadata even with compilation error. Previously, if org.rust.cargo.evaluate.build.scripts experimental feature was enabled and there was compilation error, fetching cargo workspace data failed

Internal Improvements

Full set of changes can be found here


Recommend

  • 36
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #123

    This is the last release that supports the 2019.3 platform. To receive plugin updates further, please upgrade your IDE to 2020.1. New Features Debugger support outside of CLion: Do no...

  • 22
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #124

    New Features Support 2020.2 EAPs Enable new macro expansion engine in nightly builds ...

  • 43
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #125

    New Features Provide initial support for debugging with MSVC toolchain in CLion 2020.2. You can track current progress and restrictions

  • 26
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #127

    New Features Support Rust documentation rendering in an editor. Just click to the corresponding icon on gutter to look at rendered version of a particular comment. Also, you can enable it by default v...

  • 13
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #137

    IntelliJ Rust Changelog #137 14 Dec 2020 New Features Support Find Usages action (Edit | Find Usages or Alt+F7) for Cargo

  • 16
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #136

    IntelliJ Rust Changelog #136 30 Nov 2020 New Features Introduce the new experimental engine for name resolution (disabled by default). The new algorithm (aka name resolution 2.0) uses the fixed-...

  • 16
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #138

    IntelliJ Rust Changelog #138 28 Dec 2020 New Features Enable Build tool window by default. The Build tool window provides structured output for build

  • 8
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #139

    New Features Cargo features and cfg support improvements: Take into account attributes under

  • 17
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #140

    Please welcome our new documentation 🥳 It covers almost everything about the plugin, from basic how-to-s to detailed feature descriptions ✍️. And we’...

  • 4
    • rust-analyzer.github.io 3 years ago
    • Cache

    Changelog #122

    Changelog #122 Mar 28, 2022 New Features #11780 add experimental type mismatch diagnostic (can...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK