public static void Unregister() { if (_paketErrorProvider != null) { _paketErrorProvider.Dispose(); } }
private void Dispose(bool disposing) { lock (this) { if (!m_disposed) { if (disposing) { if (_errorProvider != null) { try { _errorProvider.Tasks.Clear(); } catch (InvalidOperationException) { // this may occur if the SVsServiceProvider somehow has been uninstalled before our Dispose method is called } _errorProvider.Dispose(); _errorProvider = null; } BufferIdleEventUtil.RemoveBufferIdleEventListener(_buffer, ResolveBuffer); if (_document != null && _document.TextBuffer != null) { ResolverTaggers.Remove(_document.TextBuffer); } } m_disposed = true; } } }
/// <summary> /// Disposes members explicitly /// </summary> public void Dispose() { if (m_errorListProvider != null) { m_errorListProvider.Dispose(); } }
public void Dispose() { // Nothing is initialized if _vsTrackProjectRetargeting is null. Check if it is not null if (_vsTrackProjectRetargeting != null) { NuGetUIThreadHelper.JoinableTaskFactory.RunAsync(async() => { await NuGetUIThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); _errorListProvider.Dispose(); if (_cookieProjectRetargeting != 0) { _vsTrackProjectRetargeting.UnadviseTrackProjectRetargetingEvents(_cookieProjectRetargeting); } if (_cookieBatchRetargeting != 0) { _vsTrackProjectRetargeting.UnadviseTrackBatchRetargetingEvents(_cookieBatchRetargeting); } if (_cookieProjectRetargeting != 0 || _cookieBatchRetargeting != 0) { _dte.Events.BuildEvents.OnBuildBegin -= BuildEvents_OnBuildBegin; _dte.Events.SolutionEvents.AfterClosing -= SolutionEvents_AfterClosing; } }); } }
private void Dispose(bool disposing) { lock (this) { if (!_disposed) { if (disposing) { if (lastRequestId != null) { Microsoft.Boogie.ExecutionEngine.CancelRequest(lastRequestId); } if (_document != null && _document.TextBuffer != null) { ProgressTaggers.Remove(_document.TextBuffer); } _buffer.Changed -= buffer_Changed; timer.Tick -= UponIdle; _errorProvider.Dispose(); _errorProvider = null; ClearCachedVerificationResults(); if (resolver != null) { resolver.Dispose(); resolver = null; } } _disposed = true; } } }
public void Dispose() { if (FProvider != null) { FProvider.Dispose(); } }
///<summary>Releases the unmanaged resources used by the ErrorReportingCompilerInvoker and optionally releases the managed resources.</summary> ///<param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> protected override void Dispose(bool disposing) { if (disposing) { _provider.Dispose(); } base.Dispose(disposing); }
public void Dispose() { if (_errorListProvider != null) { _errorListProvider.Tasks.Clear(); _errorListProvider.Dispose(); } }
public void Dispose() { if (_errorProvider != null) { _errorProvider.Tasks.Clear(); _errorProvider.Dispose(); } BufferIdleEventUtil.RemoveBufferIdleEventListener(_buffer, ReparseFile); }
protected virtual void Dispose(bool disposing) { if (disposing) { if (_provider != null) { _provider.Dispose(); } } }
public void Dispose() { NuGetUIThreadHelper.JoinableTaskFactory.Run(async() => { await NuGetUIThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); ErrorListProvider.Dispose(); ErrorListTableDataSource.Value.Dispose(); }); }
private void OnViewClosed(object sender, EventArgs e) { IWpfTextView view = (IWpfTextView)sender; view.Closed -= OnViewClosed; if (_errorList != null) { _errorList.Tasks.Clear(); _errorList.Dispose(); } }
public void Dispose() { if (!_isDisposed) { _providers.Remove(FileName); _provider.Tasks.Clear(); _provider.Dispose(); } _isDisposed = true; }
/// <summary> /// Releases the resources used by the <see cref="T:Microsoft.VisualStudio.Shell.Package"/> object. /// </summary> /// <param name="disposing">true if the object is being disposed, false if it is being finalized.</param> protected override void Dispose(bool disposing) { if (disposing) { if (vsbaseWarningProvider != null) { vsbaseWarningProvider.Dispose(); } } base.Dispose(disposing); }
void IDisposable.Dispose() { lock (_lockObject) { if (_errorListProvider != null) { _errorListProvider.Tasks.Clear(); _errorListProvider.Dispose(); } _disposed = true; } }
protected virtual void Dispose(bool disposing) { if (disposed) { return; } disposed = true; //... if (provider != null) { provider.Dispose(); } }
protected override void Dispose(bool disposing) { if (_solutionCookie != 0) { _solution.UnadviseSolutionEvents(_solutionCookie); _solutionCookie = 0; } if (disposing) { _errorListProvider.Dispose(); } base.Dispose(disposing); }
public void Dispose() { if (!_isDisposed) { if (_providers.ContainsKey(_fileName)) { _providers.Remove(_fileName); } _provider.Tasks.Clear(); _provider.Dispose(); } _isDisposed = true; }
protected override void Dispose(bool disposing) { if (disposing) { Task <IDisposable> errorsSubscriptionTask = errorsSubscription; if (errorsSubscriptionTask != null) { errorsSubscriptionTask.ContinueWith(task => task.Result.Dispose(), TaskContinuationOptions.OnlyOnRanToCompletion); } if (vsbaseWarningProvider != null) { vsbaseWarningProvider.Dispose(); } } }
private static ErrorListProvider InitializeErrorListProvider() { var errorListProvider = new ErrorListProvider(EditorExtensionsPackage.Instance); try { errorListProvider.ProviderName = "Unused CSS Browser Link Extension"; errorListProvider.ProviderGuid = new Guid("5BA8BB0D-D518-45ae-966C-864C536454F2"); } catch { errorListProvider.Dispose(); } return(errorListProvider); }
protected virtual void Dispose(bool isDisposed) { if (!_isDisposed) { _isDisposed = true; if (_viewHost != null) { _viewHost.Close(); } Document.FileActionOccurred -= Document_FileActionOccurred; _provider.Tasks.Clear(); _provider.Dispose(); } }
public void Dispose() { if (!_isDisposed) { _isDisposed = true; if (!string.IsNullOrEmpty(Verb) && AlternateCmdId > 0) { RemoveNamedCommand(ServiceProvider.GlobalProvider, Verb); } if (_errorListProvider != null) { _errorListProvider.Dispose(); } } }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { if (null != _errorListProvider) { _errorListProvider.Dispose(); } } _outputWindowPane = null; _errorListProvider = null; _statusbar = null; _disposed = true; }
public void Dispose() { // Nothing is initialized if _vsTrackProjectRetargeting is null. Check if it is not null if (_vsTrackProjectRetargeting != null) { _errorListProvider.Dispose(); if (_cookieProjectRetargeting != 0) { _vsTrackProjectRetargeting.UnadviseTrackProjectRetargetingEvents(_cookieProjectRetargeting); } if (_cookieBatchRetargeting != 0) { _vsTrackProjectRetargeting.UnadviseTrackBatchRetargetingEvents(_cookieBatchRetargeting); } if (_cookieProjectRetargeting != 0 || _cookieBatchRetargeting != 0) { _dte.Events.BuildEvents.OnBuildBegin -= BuildEvents_OnBuildBegin; _dte.Events.SolutionEvents.AfterClosing -= SolutionEvents_AfterClosing; } } }
public void Dispose() { ClearErrors(); _errorListProvider.Dispose(); }
public void Dispose() { _errorListProvider.Dispose(); }
public void Dispose() { _monitor.Dispose(); _messageList.Dispose(); }
public void Dispose() { _errorListProvider.Dispose(); _buildEvents.OnBuildBegin -= BuildEvents_OnBuildBegin; _solutionEvents.AfterClosing -= SolutionEvents_AfterClosing; }
public void Dispose() { _errorProvider.Dispose(); _serviceProvider.Dispose(); }