mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Always do the timeout
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user