ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { localize } from '../../../../nls.js';
import { Downloading } from '../../../../platform/update/common/update.js';
/**
* Returns the progress percentage based on the current and maximum progress values.
*/
export function computeProgressPercent(current: number | undefined, max: number | undefined): number | undefined {
if (current === undefined || max === undefined || max <= 0) {
return undefined;
MathMathMathcurrent max
state Downloading
downloadedBytes totalBytes startTime state
downloadedBytes totalBytes startTime
elapsedMs Date startTime
downloadedBytes totalBytes elapsedMs
remainingBytes totalBytes downloadedBytes
remainingBytes
bytesPerMs downloadedBytes elapsedMs
bytesPerMs
remainingMs remainingBytes bytesPerMs
MathremainingMs
state Downloading
downloadedBytes startTime state
downloadedBytes startTime
elapsedMs Date startTime
elapsedMs downloadedBytes
downloadedBytes elapsedMs
currentVersion targetVersion
current currentVersion
target targetVersion
current target
currentminor targetminor currentmajor targetmajor
version
versionLabel version
seconds
hours seconds
hours
formattedHours hours
formattedHours
formattedHours
formattedHours
minutes Mathseconds
minutes
minutes
seconds
bytes
bytes
bytes
kb bytes
kb
kb
mb kb
mb
mb
gb mb
gb
date
date
parsed Datedate
parsed parsed
timestamp
timestamp
year
month
day
value
rounded Mathvalue
rounded rounded rounded
major
minor
patch
version IVersion
version
match version
match
major match
minor match
patch match
error
error
error
error
previousVersion newVersion
previous previousVersion
current newVersion
previous current previousmajor currentmajor previousminor currentminor