mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Don't allow negative numbers in view badges (#162359)
This commit is contained in:
parent
f1d4fced59
commit
112a03b39b
|
@ -124,7 +124,7 @@ export class ExtHostTreeViews implements ExtHostTreeViewsShape {
|
|||
set badge(badge: vscode.ViewBadge | undefined) {
|
||||
if (ExtHostViewBadge.isViewBadge(badge)) {
|
||||
treeView.badge = {
|
||||
value: Math.floor(badge.value),
|
||||
value: Math.floor(Math.abs(badge.value)),
|
||||
tooltip: badge.tooltip
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue