3 implementations of IOpenTextBufferEventListener
Microsoft.VisualStudio.LanguageServices (3)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
32internal sealed partial class MiscellaneousFilesWorkspace : Workspace, IOpenTextBufferEventListener
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
34public sealed partial class OpenFileTracker : IOpenTextBufferEventListener
Workspace\SourceGeneratedFileManager.cs (1)
41internal sealed class SourceGeneratedFileManager : IOpenTextBufferEventListener
24 references to IOpenTextBufferEventListener
Microsoft.VisualStudio.LanguageServices (24)
ProjectSystem\MiscellaneousFilesWorkspace.cs (6)
83void IOpenTextBufferEventListener.OnOpenDocument(string moniker, ITextBuffer textBuffer, IVsHierarchy _) => TrackOpenedDocument(moniker, textBuffer); 85void IOpenTextBufferEventListener.OnCloseDocument(string moniker) => TryUntrackClosingDocument(moniker); 87void IOpenTextBufferEventListener.OnRenameDocument(string newMoniker, string oldMoniker, ITextBuffer buffer) 104void IOpenTextBufferEventListener.OnRefreshDocumentContext(string moniker, IVsHierarchy hierarchy) { } 109void IOpenTextBufferEventListener.OnDocumentOpenedIntoWindowFrame(string moniker, IVsWindowFrame windowFrame) { } 114void IOpenTextBufferEventListener.OnSaveDocument(string moniker) { }
ProjectSystem\OpenTextBufferProvider.cs (6)
43private ImmutableArray<IOpenTextBufferEventListener> _listeners = ImmutableArray<IOpenTextBufferEventListener>.Empty; 76private void RaiseEventForEachListener(Action<IOpenTextBufferEventListener> action) 80foreach (var listener in _listeners) 110public void AddListener(IOpenTextBufferEventListener listener) => ImmutableInterlocked.Update(ref _listeners, static (array, listener) => array.Add(listener), listener); 111public void RemoveListener(IOpenTextBufferEventListener listener) => ImmutableInterlocked.Update(ref _listeners, static (array, listener) => array.Remove(listener), listener);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (5)
70void IOpenTextBufferEventListener.OnOpenDocument(string moniker, ITextBuffer textBuffer, IVsHierarchy? hierarchy) 73void IOpenTextBufferEventListener.OnDocumentOpenedIntoWindowFrame(string moniker, IVsWindowFrame windowFrame) { } 75void IOpenTextBufferEventListener.OnCloseDocument(string moniker) 78void IOpenTextBufferEventListener.OnRefreshDocumentContext(string moniker, IVsHierarchy hierarchy) 81void IOpenTextBufferEventListener.OnRenameDocument(string newMoniker, string oldMoniker, ITextBuffer buffer)
ProjectSystem\VisualStudioWorkspaceImpl_SourceGenerators.cs (1)
66void IOpenTextBufferEventListener.OnSaveDocument(string moniker)
Workspace\SourceGeneratedFileManager.cs (6)
188void IOpenTextBufferEventListener.OnOpenDocument(string moniker, ITextBuffer textBuffer, IVsHierarchy? hierarchy) 210void IOpenTextBufferEventListener.OnDocumentOpenedIntoWindowFrame(string moniker, IVsWindowFrame windowFrame) 216void IOpenTextBufferEventListener.OnCloseDocument(string moniker) 227void IOpenTextBufferEventListener.OnRefreshDocumentContext(string moniker, IVsHierarchy hierarchy) { } 228void IOpenTextBufferEventListener.OnRenameDocument(string newMoniker, string oldMoniker, ITextBuffer textBuffer) { } 229void IOpenTextBufferEventListener.OnSaveDocument(string moniker) { }