aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/installation/extension.ts
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-03-14 00:00:34 +0000
committerVeetaha <[email protected]>2020-03-14 00:01:46 +0000
commit7f02d4657b796a438e441e107d4fb1906ec1ed7b (patch)
tree6d955957f2bc85aaae4ed6e8e5ffb63014ec079f /editors/code/src/installation/extension.ts
parent607d017229ce398bd7fef43aa5f4ab35914e6f31 (diff)
vscode-postrefactor: minor config refactorings
Diffstat (limited to 'editors/code/src/installation/extension.ts')
-rw-r--r--editors/code/src/installation/extension.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/installation/extension.ts b/editors/code/src/installation/extension.ts
index 87a587403..2022d090d 100644
--- a/editors/code/src/installation/extension.ts
+++ b/editors/code/src/installation/extension.ts
@@ -4,7 +4,7 @@ import { promises as fs } from 'fs';
4 4
5import { vscodeReinstallExtension, vscodeReloadWindow, log, vscodeInstallExtensionFromVsix, assert, notReentrant } from "../util"; 5import { vscodeReinstallExtension, vscodeReloadWindow, log, vscodeInstallExtensionFromVsix, assert, notReentrant } from "../util";
6import { Config, UpdatesChannel } from "../config"; 6import { Config, UpdatesChannel } from "../config";
7import { ArtifactReleaseInfo } from "./interfaces"; 7import { ArtifactReleaseInfo, ArtifactSource } from "./interfaces";
8import { downloadArtifactWithProgressUi } from "./downloads"; 8import { downloadArtifactWithProgressUi } from "./downloads";
9import { fetchArtifactReleaseInfo } from "./fetch_artifact_release_info"; 9import { fetchArtifactReleaseInfo } from "./fetch_artifact_release_info";
10 10
@@ -16,7 +16,7 @@ const HEURISTIC_NIGHTLY_RELEASE_PERIOD_IN_HOURS = 25;
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 18 // User has built lsp server from sources, she should manage updates manually
19 if (config.serverPath !== null) return; 19 if (config.serverSource?.type === ArtifactSource.Type.ExplicitPath) return;
20 20
21 const currentUpdChannel = config.installedExtensionUpdateChannel; 21 const currentUpdChannel = config.installedExtensionUpdateChannel;
22 const desiredUpdChannel = config.updatesChannel; 22 const desiredUpdChannel = config.updatesChannel;