internal void ProcessClose(bool updateActiveContext) { // Todo: it might already be closed... // For now, continue asserting as it can be clicked through. Debug.Assert(_openTextBuffer != null); Closing?.Invoke(this, updateActiveContext); var buffer = _openTextBuffer; _openTextBuffer = null; _snapshotTracker.StopTracking(buffer); _fileChangeTracker.StartFileChangeListeningAsync(); }
public void Dispose() { _snapshotTracker.StopTracking(_containedLanguage.SubjectBuffer); this.ContainedLanguage.Dispose(); }
public void Dispose() { _snapshotTracker.StopTracking(SubjectBuffer); s_containedDocuments.TryRemove(Id, out _); }