Skip to content

Commit

Permalink
fix: remove loading item from projects view (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli authored Sep 3, 2021
1 parent b908c11 commit 7ad5f60
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import { WorkspaceConfigurationStore } from '@nx-console/vscode/configuration';
* Provides data for the "Projects" tree view
*/
export class NxProjectTreeProvider extends AbstractTreeProvider<NxProjectTreeItem> {
loading = true;

constructor(
context: ExtensionContext,
private readonly cliTaskProvider: CliTaskProvider
Expand Down Expand Up @@ -86,13 +84,6 @@ export class NxProjectTreeProvider extends AbstractTreeProvider<NxProjectTreeIte
}

getChildren(parent?: NxProjectTreeItem): ProviderResult<NxProjectTreeItem[]> {
if (this.loading) {
setTimeout(() => {
this.loading = false;
this.refresh();
});
return [this.createNxProjectTreeItem({ project: 'Loading' }, 'Loading')];
}
if (!parent) {
const projects = this.cliTaskProvider.getProjectEntries();
return projects.map(
Expand Down

0 comments on commit 7ad5f60

Please sign in to comment.