aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/main.ts
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-03-25 18:56:48 +0000
committerveetaha <[email protected]>2020-03-26 21:42:40 +0000
commit68ff71e3ab91f01039bb30121d05d0289bb1bd1f (patch)
tree518a1649a8125c77bcbd7d230593db0d5c42db08 /editors/code/src/main.ts
parent3d38d4dc9445de783d5efbc72fbdceaa094f23c3 (diff)
vscode: fix local devel
The value of releaseTag is not undefined, but null in actual package.json
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index de27d9535..814ae9dc2 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -110,11 +110,13 @@ async function bootstrap(config: Config, state: PersistentState): Promise<string
110} 110}
111 111
112async function bootstrapExtension(config: Config, state: PersistentState): Promise<void> { 112async function bootstrapExtension(config: Config, state: PersistentState): Promise<void> {
113 if (config.package.releaseTag === undefined) return; 113 if (config.package.releaseTag === null) return;
114 if (config.channel === "stable") { 114 if (config.channel === "stable") {
115 if (config.package.releaseTag === NIGHTLY_TAG) { 115 if (config.package.releaseTag === NIGHTLY_TAG) {
116 vscode.window.showWarningMessage(`You are running a nightly version of rust-analyzer extension. 116 void vscode.window.showWarningMessage(
117To switch to stable, uninstall the extension and re-install it from the marketplace`); 117 `You are running a nightly version of rust-analyzer extension. ` +
118 `To switch to stable, uninstall the extension and re-install it from the marketplace`
119 );
118 } 120 }
119 return; 121 return;
120 }; 122 };
@@ -185,7 +187,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
185 } 187 }
186 return explicitPath; 188 return explicitPath;
187 }; 189 };
188 if (config.package.releaseTag === undefined) return "rust-analyzer"; 190 if (config.package.releaseTag === null) return "rust-analyzer";
189 191
190 let binaryName: string | undefined = undefined; 192 let binaryName: string | undefined = undefined;
191 if (process.arch === "x64" || process.arch === "ia32") { 193 if (process.arch === "x64" || process.arch === "ia32") {