public void StopMonitoringTextBuffer(BufferParser bufferParser) { bufferParser.StopMonitoring(); lock (_openFiles) { _openFiles.Remove(bufferParser); } }
internal void StopMonitoringTextBuffer(BufferParser bufferParser, ITextView textView) { bufferParser.StopMonitoring(); lock (_openFiles) { _openFiles.Remove(bufferParser); } _unresolvedSquiggles.StopListening(bufferParser._currentProjEntry as IPythonProjectEntry); _errorProvider.ClearErrorSource(bufferParser._currentProjEntry, ParserTaskMoniker); _errorProvider.ClearErrorSource(bufferParser._currentProjEntry, UnresolvedImportMoniker); if (ImplicitProject) { // remove the file from the error list _errorProvider.Clear(bufferParser._currentProjEntry, ParserTaskMoniker); _errorProvider.Clear(bufferParser._currentProjEntry, UnresolvedImportMoniker); } _commentTaskProvider.ClearErrorSource(bufferParser._currentProjEntry, ParserTaskMoniker); if (ImplicitProject) { // remove the file from the error list _commentTaskProvider.Clear(bufferParser._currentProjEntry, ParserTaskMoniker); } }