qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.1k stars 161 forks source link

Option to switch off the activating / focusing of the PlantUML Preview tab upon refreshing #582

Open toddmo opened 7 months ago

toddmo commented 7 months ago

Use Case: I want to edit the uml code while the preview tab is open AND KEEP EDITING, uninterrupted.

Expected Behavior: The preview updates while I edit and I can see what I'm changing if I wish to, whilst being able to continue to edit the plant uml document. Keeping my hands on the keyboard, continuing to type, with the puml document staying the active tab.

Actual Behavior: The PlantUML Preview tab forcably switches me to itself and I must refocus the code to keep working on the document. I lose my place and my train of thought. usually a few keystrokes are lost before I realize what has happened. It's astonishing in that this isn't the expected behavior of editors and previews.

Ask: Please add an option in this extension settings to turn off the tab activation behavior.

Notes: Note that I'm not asking to turn off auto-refresh. I'm asking just to be able optionally through settings to turn off the forcable tab switching which is focusing the active tab to the Preview tab. And I'm not asking to turn it off for everyone. Just asking to add an option. The default option value can be to keep it acting the way it currently acts.

Remark: I'm not personally aware of any other extension that exhibits the behavior of whisking you away from the active code editor while your editing code. Not saying there aren't any; just that I've never seen it elsewhere but here in this case. For example, the markdown preview doesn't do this. Neither does the svg preview, etc.