kat-tax / vslite

More than Monaco, less than VSCode
https://vslite.dev
MIT License
61 stars 7 forks source link

when click on a tab in the dockview the focused tab for typing doesn't change #39

Open rhildred opened 1 year ago

rhildred commented 1 year ago

when I click on a file in the treeview, that file becomes the active tab in the editor. When I click on a tab in the dockview the active file in the treeview becomes active. You end up with typing in the wrong file.

It looks like I need to find/create a place to call panel.api.setActive(); like happens in panel.ts when we open a file from the treeview.

rhildred commented 10 months ago

Little bit more info on this one. I found a place to set the active tab. It seemed to help, but when you change a file, lets say index.html, and go to the preview to see your change and then go update the README.md for instance, the active tab stays the index.html. Typing goes in that tab, even though the README is visible.