dotnet / ResXResourceManager

Manage localization of all ResX-Based resources in one central place.
MIT License
1.34k stars 219 forks source link

DocumentWindow instead of ToolWindow #471

Open Chris-Tophski opened 2 years ago

Chris-Tophski commented 2 years ago

Is your feature request related to a problem? Please describe. During debugging Visual Studio switches its view forth and back and then often the ResX Manager window comes to front and covers other code windows. You'll experience this with a multi monitor setup and if you have all monitors occupied by other code windows and additionally the ResX Manager open. I docked it to one of the windows, but then its behavior was similarly annoying. Googling didn't tell me anything about a possibly already implemented functionality.

Describe the solution you'd like Describe alternatives you've considered Currently I'm exploring AvalonDock for a while and I noticed that this behavior there and in Visual Studio (while very similar overall) seems to slightly differ between DocumentWindows and ToolWindows (or how ever they are called respectively) in that DocumentWindows work as expected and don't annoy. So I think it would be nice to switch from ToolWindow to DocumentWindow to mitigate the problem or at least to have an option or command to change this mode.

tom-englert commented 2 years ago

So then what would be the document to open?

tom-englert commented 2 years ago

Why not just close it in debug layout?

Chris-Tophski commented 2 years ago

Not sure what the document would be, as the extension basically edits several documents (resource files) at once and I'm not aware of how to handle this in a VS extension. My last attempts to develop an extension was years ago and I don't really remember how far I've come there.

My description above may not be concise enough, sorry. The ResX window is blocking the view after debugging or when I refocus VS coming from another application like the browser or something. In some cases I'd rather have the ResX window shown during debugging (like checking for missing keys) but not always. Your comment on closing in debug layout, however, has given me a hint on this point, thank you. Still, a DocumentWindow wouldn't change its visibility when I start or stop debugging, wouldn't it?

tom-englert commented 2 years ago

I've never seen a different behavior. Maybe better address this to Visual Studio?

Chris-Tophski commented 2 years ago

Maybe. Thanks anyway.