Example #1
0
        public void ProcessClose()
        {
            _closed?.Invoke(this, EventArgs.Empty);

            _snapshotTracker.StopTracking(EditorTextBuffer);

            EditorTextContainer.TextChanged -= TextContainer_Changed;
            EditorTextContainer              = null;
            EditorTextBuffer = null;

            _fileTracker.StartListening();
        }
        public void ProcessClose()
        {
            _closed?.Invoke(this, EventArgs.Empty);

            _snapshotTracker.StopTracking(EditorTextBuffer);

            EditorTextContainer.TextChanged -= TextContainer_Changed;
            EditorTextContainer              = null;
            EditorTextBuffer = null;

            _ = _projectSnapshotManagerDispatcher.RunOnDispatcherThreadAsync(
                () => _fileTracker.StartListening(), CancellationToken.None);
        }