Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Sometimes files are opened in duplicate tabs

$
0
0

Hi,

I have some strange behavior in my custom languageservice (VS2012/2013 with MPF).

Sometimes (rarely, and impossible to deterministically reproduce until now) when the user double clicks a filewhich is already opened in the solution explorer, it opens in a separate tab instead of just activating the already existing one. As a consequence, there are two tabs representing the same file: Both show the same changes, and if you save/change one, the other gets saved/updated as well.

Has anyone observed something similar? Or has anyone an idea what to do about it or where the problem could be? I tried to implement a workaround in the Dte.Events.WindowEvents.WindowCreated event by manually closing the duplicate and activating the original, but those methods (Window.Close() and Window.Activate()) cannot be called within an event handler.

Regards & Thanks in advance,
Markus


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>