Howdy!
I am trying to use “progressReport” to update the command displayed in the progress bar when using “executeAsModel”. It looks like it doesn’t properly update on each invocation, i.e. the progress moves but the displayed text stays the same. For context I tried “await” in front of progressReport as well, since I wasn’t sure if it’s an async function, but that doesn’t seem to fix it either. Before calling this a bug I wanted to make sure this wasn’t a pilot error Here’s an example of my usage:
async function doMultipleThings(executionContext){
// Do something:
executionContext.reportProgress({
"value": 0.1,
"commandName": "Do something"
});
await doSomethingHeavy();
// Do something else:
executionContext.reportProgress({
"value": 0.4,
"commandName": "Do some more stuff"
});
await doSomeMoreStuff();
}