Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

CosminGGeorgescu
Copy link
Contributor

Pull Request Overview

This pull request removes the rust-client.channel field, part of the Rust VSCode extension, which is deprecated as of 15.11.2022, and replaces it with the equivalent setting for the new rust-analyzer extension. However, there could be a case made for developers that install the extension by source code (somehow ? I'm not familiar with this way), as the Github repo is still public, just archived.

The second field "rust-analyzer.check.allTargets": false, was added to fix the found duplicate lang item ``panic_impl`` error and associated squiggles sometimes raised by rust-analyzer, as it runs cargo check with the --all-targets flag by default and raises an error for each pub unsafe extern "C" fn panic_fmt(pi: &PanicInfo) that is not preceded by #[cfg(not(test))].

Testing Strategy

This pull request was tested by checking with the official rust-analyzer documentation and restarting the rust-analyzer server to see that the added changes had the desired effects.

TODO or Help Wanted

If there are any suggestion as what more to be enforced upon the VSCode developer, let me know and I'll add them here.

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

ppannuto
ppannuto previously approved these changes Aug 19, 2023
Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe anyone on the core team (except maybe @hudson-ayers) use VSCode, so this has always been something we defer to community folks to maintain. Changes look reasonable to me — thanks!

@hudson-ayers
Copy link
Contributor

I don't believe anyone on the core team (except maybe @hudson-ayers) use VSCode, so this has always been something we defer to community folks to maintain. Changes look reasonable to me — thanks!

Nope, I use neovim! So no stake in this, but the changes look fine to me.

@alexandruradovici
Copy link
Contributor

I am using VS Code, I'll take a look at the changes, but so far they look good to me.

@bradjc bradjc added the last-call Final review period for a pull request. label Aug 23, 2023
@bradjc bradjc added this pull request to the merge queue Aug 25, 2023
Merged via the queue into tock:master with commit 6ed3647 Aug 25, 2023
@CosminGGeorgescu CosminGGeorgescu deleted the VSCode_settings branch August 27, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
last-call Final review period for a pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants