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 c13028e commit e4fdfadCopy full SHA for e4fdfad
src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs
@@ -231,6 +231,10 @@ public async Task<bool> IsOnScreenAsync()
231
/// <returns><see langword="null"/> if the window isn't a document window.</returns>
232
public async Task<DocumentView?> GetDocumentViewAsync()
233
{
234
+ // Force the loading of a document that may be pending initialization.
235
+ // See https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/delayed-document-loading
236
+ _frame.GetProperty((int)__VSFPROPID.VSFPROPID_DocView, out _);
237
+
238
IVsTextView? nativeView = VsShellUtilities.GetTextView(_frame);
239
240
if (nativeView != null)
0 commit comments