We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b0085 commit 71cd6f5Copy full SHA for 71cd6f5
1 file changed
src/GtmExtension/GtmListener.cs
@@ -162,11 +162,16 @@ public void VsTextViewCreated(IVsTextView textView)
162
Initialize();
163
164
IWpfTextView wpfTextView = editor.GetWpfTextView(textView);
165
+ wpfTextView.GotAggregateFocus += WpfTextView_GotAggregateFocus;
166
wpfTextView.LayoutChanged += WpfTextView_LayoutChanged;
167
wpfTextView.Caret.PositionChanged += Caret_PositionChanged;
168
169
Update(GetFilePath(wpfTextView));
170
}
171
+ private void WpfTextView_GotAggregateFocus(object sender, EventArgs e)
172
+ {
173
+ Update(GetFilePath((ITextView)sender));
174
+ }
175
private void WpfTextView_LayoutChanged(object sender, TextViewLayoutChangedEventArgs e)
176
{
177
Update(GetFilePath((ITextView)sender));
0 commit comments