Minor clean up

This commit is contained in:
Pine Wu
2016-10-20 00:21:19 -07:00
parent 313df776af
commit b141507050
5 changed files with 8 additions and 16 deletions

View File

@@ -36,9 +36,7 @@ export class ExtHostTreeExplorers extends ExtHostTreeExplorersShape {
this._treeExplorerNodeProviders[providerId] = provider;
return new Disposable(() => {
if (delete this._treeExplorerNodeProviders[providerId]) {
this._proxy.$unregisterTreeExplorerNodeProvider(providerId);
}
delete this._treeExplorerNodeProviders[providerId];
});
}