im trying to build a visual studio 2022 extension that closes tabs based on certain condition
when im using VsWindowFrame.CloseFrame() on most file types it works as intended (the tab just closes)
but when im calling the above function on .xaml files the content of the file is disappear but the tab is still open
P.S
After i close the .xaml file from my code, when i press “Close” or on the “X” button tab still not closing , but “Close All Tabs” or “Close Document Tabs” do work