Open robinrodricks opened 10 years ago
Ok could reproduce it.
I need to code this in a plugin as well. Also created a post regarding this. (http://www.flashdevelop.org/community/viewtopic.php?f=4&t=11860&p=52065#p52065)
Can you please tell me how to detect if a line is visible? And also how to find the nearest parent block .. and then how to expand only a certain block, not all blocks... If its hard and you will do it later its ok, I'll wait.
Scintilla should have some kind of "EnsureVisible(line)" method.
BRILLIANT! EnsureVisible works exactly as needed. Its a one line fix. Here is my code:
sci.GotoLine(line);
sci.EnsureVisible(line); // it expands the PARENT block automatically, not just the single line
Oops I closed the issue, forgetting that this is a FD bug too. I reopened it and you can close it when needed. Sorry! Try EnsureVisible, it should solve this bug in FD.
I updated the issue comment to list the places this needs to be updated in. When you get time. Thanks.
Suppose I'm debugging and I double click a function in the call stack, navigation fails if the function is inside a collapsed block. So usually I have to Expand All and double click again
To fix this can you do the following...
...in all the following places?
This would greatly improve navigation in files where you have regions, as you will not have to open regions by hand anymore.