mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
fix wrong file decoration check
This commit is contained in:
@@ -2720,7 +2720,7 @@ export enum ExtensionKind {
|
||||
export class FileDecoration {
|
||||
|
||||
static validate(d: FileDecoration): void {
|
||||
if (d.badge && (d.badge.length === 1 || d.badge.length === 2)) {
|
||||
if (d.badge && d.badge.length !== 1 && d.badge.length !== 2) {
|
||||
throw new Error(`The 'badge'-property must be undefined or a short character`);
|
||||
}
|
||||
if (!d.color && !d.badge && !d.tooltip) {
|
||||
|
||||
Reference in New Issue
Block a user