Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode: askBeforeDownload option #3514

Merged
merged 7 commits into from
Mar 9, 2020

Conversation

Veetaha
Copy link
Contributor

@Veetaha Veetaha commented Mar 7, 2020

This is a small step towards #3402, also implements my proposal stated in #3403

Also renamed BinarySource to ArtifactSource in anticipation of nightlies installation that requires downloading not a binary itself but .vsix package, thus generalized to artifact term.

@matklad @lnicola

Veetaha added 4 commits March 7, 2020 23:59
Also renamed BinarySource to ArtifactSource in anticipation of
nightlies installation that requires downloading
not a binary itself but .vsix package, thus generalized
to `artifact` term
The new name seems much simpler and it doesn't limit
this config value only to downloading the server binary.
Thus we wouldn't need to create another config
properties to handle other downloads whatsoever.
Anyway, I believe (heuristically) that most of the users
would want to set "askBeforeDownload": false once
and never bother clicking on the notification again
(because otherwise there is no big point in installing rust-analyzer if it cannot install the server)
@Veetaha Veetaha changed the title vscode: always download server option vscode: askBeforeDownload option Mar 8, 2020
@Veetaha Veetaha force-pushed the feature/vscode-impl-nightlies branch from 621d045 to 28c6412 Compare March 8, 2020 17:05
@Veetaha Veetaha force-pushed the feature/vscode-impl-nightlies branch from 28c6412 to 2847636 Compare March 8, 2020 17:11
@@ -219,6 +219,11 @@
}
}
},
"rust-analyzer.askBeforeDownload": {
Copy link
Member

Choose a reason for hiding this comment

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

Let's group this into rust-analyzer.updates, as we might want to add .chanel soon as well? We should refactor old options to use the same grouping at some point, but it makes sense to design new options with more up-front planing that we use to have.

@Veetaha Veetaha requested a review from matklad March 9, 2020 08:59
@matklad
Copy link
Member

matklad commented Mar 9, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 9, 2020

@bors bors bot merged commit fcaab59 into rust-lang:master Mar 9, 2020
bors added a commit that referenced this pull request Jun 20, 2024
CI: run benches with hyperfine rather than bash

The hyperfine installation is cached so this should not cost a lot of CI time.

This is step 1/2 to getting rid of the BASH variable hack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants