Skip to content

Commit 7f5e99a

Browse files
committed
Fix type assertion for collapsibleState in LogFile constructor
1 parent 2c2a9eb commit 7f5e99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logViewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class LogFile extends vscode.TreeItem {
179179
public readonly command?: vscode.Command,
180180
public children?: LogFile[]
181181
) {
182-
super(label, collapsibleState);
182+
super(label, collapsibleState as vscode.TreeItemCollapsibleState);
183183
this.description = this.label.match(/\(\d+\)/)?.[0] || '';
184184
this.label = this.label.replace(/\(\d+\)/, '').trim();
185185
}

0 commit comments

Comments
 (0)