vscode: add name to the second unused argument of withProgress() callback

This commit is contained in:
Veetaha 2020-02-08 21:24:29 +02:00
parent 4e85254444
commit 9791b6a8de

View file

@ -34,7 +34,7 @@ export async function downloadLatestLanguageServer(
cancellable: false, // FIXME: add support for canceling download? cancellable: false, // FIXME: add support for canceling download?
title: `Downloading language server ${releaseName}` title: `Downloading language server ${releaseName}`
}, },
async (progress, _) => { async (progress, _cancellationToken) => {
let lastPrecentage = 0; let lastPrecentage = 0;
await downloadFile(downloadUrl, installationPath, (readBytes, totalBytes) => { await downloadFile(downloadUrl, installationPath, (readBytes, totalBytes) => {
const newPercentage = (readBytes / totalBytes) * 100; const newPercentage = (readBytes / totalBytes) * 100;