Пример #1
0
        public void Dispose()
        {
            if (_langPrefs.IsValueCreated)
            {
                _langPrefs.Value.Dispose();
            }

            _idleManager.Dispose();

            EnvironmentSwitcherManager.Dispose();
            WorkspaceInfoBarManager.Dispose();
        }
Пример #2
0
        public void Dispose()
        {
            if (_langPrefs.IsValueCreated)
            {
                _langPrefs.Value.Dispose();
            }

            _idleManager.Dispose();

            foreach (var window in _codeWindowManagers.Values.ToArray())
            {
                window.RemoveAdornments();
            }
            _codeWindowManagers.Clear();

            foreach (var kv in GetActiveSharedAnalyzers())
            {
                kv.Value.Dispose();
            }

            EnvironmentSwitcherManager.Dispose();
            WorkspaceInfoBarManager.Dispose();
        }