lostintangent / codeswing

VS Code extension for building web applications ("swings") using a interactive and editor-integrated coding environment
https://aka.ms/codeswing
MIT License
977 stars 45 forks source link

Zooming VS Code scales the preview window too #43

Closed radiantly closed 3 years ago

radiantly commented 3 years ago

Zooming the VS Code window using Ctrl+= or Ctrl+- to increase the general interface scale also scales up the preview window. (Ext v0.0.16 on v1.55.2 on Linux).

In retrospect, this might seem obvious, but I think the biggest issue is that the VS Code Interface doesn't mention that it's been zoomed in/out. I've been caught off guard with the actual website turning out to be a scaled version of what I expect.

Ideas on possible fixes:

I've said this before, thank you for this amazing extension!

lostintangent commented 3 years ago

Hey! I'm actually not sure if it's possible to have a different zoom factor from the rest of VS Code. I'll investigate this and will discuss what our best options are. Thanks for the feedback!

lostintangent commented 3 years ago

Unfortunately, this isn't going to be possible, and I'd be a little worried about displaying a warning message in the console, since many users are using the console for debug/app outcome, and this could be noisy. For now, I'm going to close this as "won't fix", since I'm not aware of a great solution here unfortunately. However, we can listen for more feedback and if necessary, make an ask on VS Code to provide support for this. Thanks!