protected override void Dispose(bool disposing) { if (disposing) { lock (_idleNodeModulesLock) { if (_idleNodeModulesTimer != null) { _idleNodeModulesTimer.Dispose(); } _idleNodeModulesTimer = null; } NodejsPackage.Instance.GeneralOptionsPage.ShowBrowserAndNodeLabelsChanged -= ShowBrowserAndNodeLabelsChanged; OnDispose?.Invoke(this, EventArgs.Empty); RemoveChild(ModulesNode); ModulesNode?.Dispose(); ModulesNode = null; #if DEV14 _typingsAcquirer = null; #endif } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { lock (_idleNodeModulesLock) { if (_idleNodeModulesTimer != null) { _idleNodeModulesTimer.Dispose(); } _idleNodeModulesTimer = null; } OnDispose?.Invoke(this, EventArgs.Empty); RemoveChild(ModulesNode); ModulesNode?.Dispose(); ModulesNode = null; #if DEV14 _typingsAcquirer = null; #endif } base.Dispose(disposing); }