in src/utils.ts [133:157]
export function showProgress(
title: string,
manager: PontManager,
task: (report?: (info: string) => any) => Thenable<any>,
) {
return vscode.window.withProgress(
{
title,
location: vscode.ProgressLocation.Window,
},
async (p) => {
try {
manager.logger.log = (info) => {
p.report({
message: info,
});
};
await task((info) => p.report({ message: info }));
} catch (e) {
vscode.window.showErrorMessage(e.toString());
}
},
);
}