예제 #1
0
            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();
            }
예제 #2
0
 public void Dispose()
 {
     _snapshotTracker.StopTracking(_containedLanguage.SubjectBuffer);
     this.ContainedLanguage.Dispose();
 }
예제 #3
0
 public void Dispose()
 {
     _snapshotTracker.StopTracking(SubjectBuffer);
     s_containedDocuments.TryRemove(Id, out _);
 }