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