提交 85885ca9 编写于 作者: J Johannes Rieken

bring back n of m label

上级 d1af0e65
......@@ -169,6 +169,14 @@ class MarkerModel {
return { errors, others };
}
public get total() {
return this._markers.length;
}
public indexOf(marker: IMarker): number {
return 1 + this._markers.indexOf(marker);
}
public reveal(): void {
if (this._nextIdx === -1) {
......@@ -381,6 +389,9 @@ class MarkerNavigationWidget extends PeekViewWidget {
break;
}
// update meta title
this.setMetaTitle(nls.localize('', " – {0}/{1}", this._model.indexOf(marker), this._model.total));
// update label and show
dom.clearNode(this._element);
this._element.appendChild(renderHtml(marker.message));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册