cli: get builds in order

This commit is contained in:
Connor Peet
2022-09-20 09:15:01 -07:00
parent 5e2ce13287
commit 9bcc88eafe
29 changed files with 603 additions and 164 deletions

View File

@@ -2,7 +2,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
use crate::constants::{CONTROL_PORT, LAUNCHER_VERSION, PROTOCOL_VERSION};
use crate::constants::{CONTROL_PORT, VSCODE_CLI_VERSION, PROTOCOL_VERSION};
use crate::log;
use crate::state::LauncherPaths;
use crate::update::Update;
@@ -362,7 +362,7 @@ async fn send_version(tx: &mpsc::Sender<SocketSignal>) {
tx.send(SocketSignal::from_message(&ToClientRequest {
id: None,
params: ClientRequestMethod::version(VersionParams {
version: LAUNCHER_VERSION.unwrap_or("dev"),
version: VSCODE_CLI_VERSION.unwrap_or("dev"),
protocol_version: PROTOCOL_VERSION,
}),
}))
@@ -620,7 +620,7 @@ async fn handle_update(
let updater = Update::new();
let latest_release = updater.get_latest_release().await?;
let up_to_date = match LAUNCHER_VERSION {
let up_to_date = match VSCODE_CLI_VERSION {
Some(v) => v == latest_release.version,
None => true,
};