mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Simplify extension tag sniffing
This commit is contained in:
parent
aca3c3086e
commit
3d1cb5e20f
6 changed files with 27 additions and 34 deletions
|
@ -111,7 +111,7 @@ async function bootstrap(config: Config, state: PersistentState): Promise<string
|
|||
|
||||
async function bootstrapExtension(config: Config, state: PersistentState): Promise<void> {
|
||||
if (config.channel === "stable") {
|
||||
if (config.extensionReleaseTag === NIGHTLY_TAG) {
|
||||
if (config.releaseTag === NIGHTLY_TAG) {
|
||||
vscode.window.showWarningMessage(`You are running a nightly version of rust-analyzer extension.
|
||||
To switch to stable, uninstall the extension and re-install it from the marketplace`);
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
|
|||
if (userResponse !== "Download now") return dest;
|
||||
}
|
||||
|
||||
const release = await fetchRelease(config.extensionReleaseTag);
|
||||
const release = await fetchRelease(config.releaseTag);
|
||||
const artifact = release.assets.find(artifact => artifact.name === binaryName);
|
||||
assert(!!artifact, `Bad release: ${JSON.stringify(release)}`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue