提交 0b501ebb 编写于 作者: I isidor

extensions status: improve title and text content

fixes #1325, #1327
上级 4240c34c
......@@ -50,8 +50,10 @@ export class ExtensionsStatusbarItem implements statusbar.IStatusbarItem {
this.container = container;
if (this.messageCount > 0) {
this.domNode = dom.append(container, $('a.extensions-statusbar'));
this.domNode.title = nls.localize('extensions', "Extensions"),
this.domNode.textContent = `${ this.messageCount }`;
const issueLabel = this.messageCount > 1 ? nls.localize('issues', "issues") : nls.localize('issue', "issue");
const extensionLabel = nls.localize('extension', "extension")
this.domNode.title = `${ this.messageCount } ${ extensionLabel } ${ issueLabel }`;
this.domNode.textContent = `${ this.messageCount } ${ issueLabel }`;
this.toDispose.push(dom.addDisposableListener(this.domNode, 'click', () => {
Object.keys(this.status).forEach(key => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册