diff options
author | Aleksey Kladov <[email protected]> | 2020-03-19 08:38:08 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-19 08:38:08 +0000 |
commit | b792e4abbde2c8a5d664aaac22f8418f1ee09b79 (patch) | |
tree | 6fd47ffb498891ca24b2972dabfdd58a3f737644 /editors/code/src/main.ts | |
parent | aca3c3086ee99f5770a60970e20af640c895d42a (diff) | |
parent | 3d1cb5e20f7a05314f6fd4261076b0a85546cfe4 (diff) |
Merge pull request #3635 from matklad/tags
Simplify extension tag sniffing
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r-- | editors/code/src/main.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index d907f3e6f..5297614a9 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -111,7 +111,7 @@ async function bootstrap(config: Config, state: PersistentState): Promise<string | |||
111 | 111 | ||
112 | async function bootstrapExtension(config: Config, state: PersistentState): Promise<void> { | 112 | async function bootstrapExtension(config: Config, state: PersistentState): Promise<void> { |
113 | if (config.channel === "stable") { | 113 | if (config.channel === "stable") { |
114 | if (config.extensionReleaseTag === NIGHTLY_TAG) { | 114 | if (config.releaseTag === NIGHTLY_TAG) { |
115 | vscode.window.showWarningMessage(`You are running a nightly version of rust-analyzer extension. | 115 | vscode.window.showWarningMessage(`You are running a nightly version of rust-analyzer extension. |
116 | To switch to stable, uninstall the extension and re-install it from the marketplace`); | 116 | To switch to stable, uninstall the extension and re-install it from the marketplace`); |
117 | } | 117 | } |
@@ -219,7 +219,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string | |||
219 | if (userResponse !== "Download now") return dest; | 219 | if (userResponse !== "Download now") return dest; |
220 | } | 220 | } |
221 | 221 | ||
222 | const release = await fetchRelease(config.extensionReleaseTag); | 222 | const release = await fetchRelease(config.releaseTag); |
223 | const artifact = release.assets.find(artifact => artifact.name === binaryName); | 223 | const artifact = release.assets.find(artifact => artifact.name === binaryName); |
224 | assert(!!artifact, `Bad release: ${JSON.stringify(release)}`); | 224 | assert(!!artifact, `Bad release: ${JSON.stringify(release)}`); |
225 | 225 | ||