Skip to content

Commit

Permalink
删除多余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
free-yenyuan committed Jun 15, 2021
1 parent b5264ae commit cfaac32
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/fileExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,9 @@ export class BoomTreeDataProvider implements vscode.TreeDataProvider<Entry>, vsc
return a[1] === vscode.FileType.SymbolicLink ? -1 : 1;
});
const entries = this.parseResult(children)
this.treeVisible = true
return entries

}
this.treeVisible = false
return [];
}

Expand Down Expand Up @@ -454,7 +452,6 @@ export class FileExplorer {
context.subscriptions.push(vscode.window.createTreeView('fileExplorer', { treeDataProvider }));
vscode.commands.registerCommand('fileExplorer.openFile', (resource) => this.openResource(resource));
vscode.commands.registerCommand('fileExplorer.refreshFile', () => treeDataProvider.refresh())
vscode.commands.registerCommand('fileExplorer.revealResource',()=> this.reveal());
}

private openResource(resource: vscode.Uri): void {
Expand Down

0 comments on commit cfaac32

Please sign in to comment.