Genio-The-Haiku-IDE / Genio

The Haiku IDE
Other
59 stars 9 forks source link

Add a way to update Outline pane #407

Closed humdingerb closed 3 weeks ago

humdingerb commented 4 weeks ago

In case you delete e.g. a function, its symbol is still visible in the Outline pane. It needs a way to get updated, best without user interaction like an update button. If it's not possible to know when an update is necessary, maybe doing it at least when saving a file could be good enough?

jackburton79 commented 4 weeks ago

The Outline should update automatically: after any change to the file LSP sends symbols update and the outline updates accordingly. If that doesn't work it's a bug. Have you got a specific test case ?

humdingerb commented 4 weeks ago

I just tried again, and now it works!

Yesterday, I have removed a complete function implementation from a .cpp file, because I moved it to another file. I selected the whole thing, pressed DEL. The function gone in the editor view, the symbol (CheckView::ShowPopUpCalendar) was still in the Output pane.

Anyway, no idea what was different then, but it does work now. Sorry for the noise...

jackburton79 commented 4 weeks ago

I guess you are current ?

humdingerb commented 4 weeks ago

I am today for my successful test. Yesterday I was a few commits back. I just reverted to cf2119f60a94f8aedcc8a0bc3dd58e71596c9b25 to try once more, but it's still working...

jackburton79 commented 3 weeks ago

Let's close this, then.