public void Dispose()
        {
            activeSolutionTracker.ActiveSolutionChanged -= ActiveSolutionTracker_ActiveSolutionChanged;
            analysisConfigMonitor.ConfigChanged         -= AnalysisConfigMonitor_ConfigChanged;

            eslintBridgeClient?.Dispose();
            eslintBridgeProcess?.Dispose();
            serverInitLocker?.Dispose();
        }
Exemple #2
0
        protected virtual async Task Dispose(bool disposing)
        {
            if (disposing && !isDisposed)
            {
                try
                {
                    await Close();
                }
                catch
                {
                    // nothing to do if the call failed
                }

                eslintBridgeProcess.Dispose();
                httpWrapper.Dispose();
                isDisposed = true;
            }
        }