Skip to content

Commit c57b59f

Browse files
authored
Merge pull request #74 from badsyntax/fix-explorer-expand
Re-render explorer only after refreshing tasks
2 parents 07da021 + 47b1d21 commit c57b59f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/gradleView.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,12 @@ export class GradleTasksTreeDataProvider
216216
refresh(): Thenable<vscode.Task[]> {
217217
enableTaskDetection();
218218
invalidateTasksCache();
219-
this.taskItemsPromise = vscode.tasks.fetchTasks({ type: 'gradle' });
220-
this.render();
219+
this.taskItemsPromise = vscode.tasks
220+
.fetchTasks({ type: 'gradle' })
221+
.then(tasks => {
222+
this.render();
223+
return tasks;
224+
});
221225
return this.taskItemsPromise;
222226
}
223227

0 commit comments

Comments
 (0)