nelsam / vidar

vidar is a highly experimental Go editor, written in Go, using gxui
The Unlicense
50 stars 7 forks source link

navigator/project_tree: force a switch _before_ doing redraw/relayout #173

Closed nelsam closed 5 years ago

nelsam commented 5 years ago

When the project was changed via the UI, the open navigator pane would change after all of the redraw/relayout logic happened. This caused the project tree to be unresponsive and often display the incorrect project.

Type

Tests

I have tested locally against:

I have included automated tests:

The navigator package is probably the oldest, crustiest part of vidar right now, and it needs a major rewrite to be testable. I don't even want to try to test it right now.

ionrock commented 5 years ago

This fixes #174 for me.