daveleroy / SublimeDebugger

Graphical Debugger for Sublime Text for debuggers that support the debug adapter protocol
MIT License
371 stars 44 forks source link

Continuously reloading settings file #167

Closed ihdavids closed 2 years ago

ihdavids commented 2 years ago

When I load up sublime I noticed that sublime seems to be reloading the settings file over and over again:

reload_debugger_settings

ihdavids commented 2 years ago

It seems to be continuously rewriting: { "ui_rem_width_scale": 0.731, }

At various sizes?

daveleroy commented 2 years ago

What values is it bouncing between?

ui_rem_width_scale adjusts the size of ui element calculations and the debugger attempt to find a value that makes the UI fit within the space given.

It does this by adjusting the ui_rem_width_scale up and down based on how much space is left over in the layout. The calculation appears to be bouncing back and forth between too large and too small. This calculation is done in def _adjust_rem_width_scale(self) if you want to adjust it.

daveleroy commented 2 years ago

This bouncing is causing the ui to constantly resize as you noted here https://github.com/daveleroy/sublime_debugger/issues/166

daveleroy commented 2 years ago

Closing since #166 is the actual issue