in src/controller/statusBarController.ts [22:47]
async updateStatusBar() {
const activeEditor = vscode.window.activeTextEditor;
if (!activeEditor) {
return false;
}
const doc = activeEditor.document;
if (!(await this.directoryController.inRoot(doc.uri))) {
this.reviewItem.hide();
return false;
}
const { guid } = await this.directoryController.splitUri(doc.uri);
if (!guid) {
this.reviewItem.hide();
return false;
}
const reviewUrl = await this.addonCacheController.getAddonFromCache([
guid,
"reviewUrl",
]);
this.reviewItem.updateAndShow(guid, reviewUrl);
return true;
}