-
Notifications
You must be signed in to change notification settings - Fork 69
Show progress in the notification area when download codegen cli #894
Conversation
src/DigitalTwin/CodeGeneratorCore.ts
Outdated
const tempPath = path.join(os.tmpdir(), FileNames.iotworkbenchTempFolder); | ||
const filePath = path.join(tempPath, `${md5value}.zip`); | ||
fs.writeFileSync(filePath, zipData); | ||
// clearInterval(loading); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to remove unused code here #Pending
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
progress.report({increment: 10, message: `still going...`}); | ||
}, 1000); | ||
|
||
setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why need to report 40%?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show the progress of the download progress of the CodeGen CLI, Similar to https://github.com/microsoft/vscode-extension-samples/tree/master/progress-sample
In reply to: 361902619 [](ancestors = 361902619)
src/DigitalTwin/CodeGeneratorCore.ts
Outdated
if (hashvalue !== md5value) { | ||
`the downloaded ${DigitalTwinConstants.codeGenCli} v${ | ||
newVersion} package has been corrupted.`); | ||
if (installOrUpgrade === 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does number 1 means here? Please use CodeGenCliOperation enum value to better illustrate the meaning.
…ft/vscode-iot-workbench into install-codegen-progress
No description provided.