aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/installation/extension.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/installation/extension.ts')
-rw-r--r--editors/code/src/installation/extension.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/installation/extension.ts b/editors/code/src/installation/extension.ts
index 7eab68852..a0925acaa 100644
--- a/editors/code/src/installation/extension.ts
+++ b/editors/code/src/installation/extension.ts
@@ -15,6 +15,9 @@ const HEURISTIC_NIGHTLY_RELEASE_PERIOD_IN_HOURS = 25;
15 * extension version is what's needed according to `desiredUpdateChannel`. 15 * extension version is what's needed according to `desiredUpdateChannel`.
16 */ 16 */
17export async function ensureProperExtensionVersion(config: Config): Promise<never | void> { 17export async function ensureProperExtensionVersion(config: Config): Promise<never | void> {
18 // User has built lsp server from sources, she should manage updates manually
19 if (config.serverPath !== null) return;
20
18 const currentUpdChannel = config.installedExtensionUpdateChannel; 21 const currentUpdChannel = config.installedExtensionUpdateChannel;
19 const desiredUpdChannel = config.updatesChannel; 22 const desiredUpdChannel = config.updatesChannel;
20 23
@@ -23,9 +26,6 @@ export async function ensureProperExtensionVersion(config: Config): Promise<neve
23 config.installedNightlyExtensionReleaseDate.set(null); 26 config.installedNightlyExtensionReleaseDate.set(null);
24 } 27 }
25 28
26 // User has built lsp server from sources, she should manage updates manually
27 if (currentUpdChannel === null) return;
28
29 if (desiredUpdChannel === UpdatesChannel.Stable) { 29 if (desiredUpdChannel === UpdatesChannel.Stable) {
30 // VSCode should handle updates for stable channel 30 // VSCode should handle updates for stable channel
31 if (currentUpdChannel === UpdatesChannel.Stable) return; 31 if (currentUpdChannel === UpdatesChannel.Stable) return;