Skip to content

Commit cc42ab1

Browse files
Fix cast before we unsubscribe (#78776)
This was otherwise throwing an exception every shutdown.
2 parents 0b121e1 + cec6fcc commit cc42ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VisualStudio/Core/Def/ProjectSystem/OpenTextBufferProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public void Dispose()
340340
return;
341341
}
342342

343-
var runningDocumentTableForEvents = (IVsRunningDocumentTable)_runningDocumentTable;
343+
var runningDocumentTableForEvents = (IVsRunningDocumentTable)_runningDocumentTable.Value;
344344
runningDocumentTableForEvents.UnadviseRunningDocTableEvents(_runningDocumentTableEventsCookie);
345345
_runningDocumentTableEventsCookie = 0;
346346

0 commit comments

Comments
 (0)