You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the Outline View select foobar, press Del key and confirm. In this case, the Outline View is updated. However now try to click inside the open editor for class Test54: the whole editor contents will disappear, showing just line numbers:
The text was updated successfully, but these errors were encountered:
Please note that I can reproduce this often, but not always. In general what I see is that after the above action on the foobar field, the editor seems to be "redrawn" badly, like if the underlying model is not in synch with actual contents. For instance, the vertical ruler on the left might show 10 lines while the file has just 9 lines and you can't put the cursor on line 10 (it's not even an empty line), or vice versa, showing contents for 10 lines and having the vertical ruler count lines up to 9.
This comes down to setting the proper source offsets on the JDT AST nodes. The end offset is intruding into the line delimiter "\r\n". When this gets cut in half, the editor has problems with a bare "\r".
Consider the example in #943.
From the Outline View select
foobar
, press Del key and confirm. In this case, the Outline View is updated. However now try to click inside the open editor for classTest54
: the whole editor contents will disappear, showing just line numbers:The text was updated successfully, but these errors were encountered: