Always do the timeout

This commit is contained in:
Alex Ross
2024-02-26 11:33:15 +01:00
parent 4e776c05a4
commit f4a78e390b

View File

@ -135,7 +135,7 @@ export class JsonOutlineProvider implements vscode.TreeDataProvider<number> {
};
treeItem.iconPath = this.getIcon(valueNode);
treeItem.contextValue = valueNode.type;
if (typeof valueNode.value === 'string' && valueNode.value.startsWith('test')) {
if (typeof valueNode.value === 'string') {
await new Promise(resolve => setTimeout(resolve, 2000));
}
return treeItem;