Reveal is not working in editor

I am trying to navigate to to line number in editor

I tried all these method to navigate to line number in editor

Scroll to a specific line: editor.revealLine(15);
Scroll to a specific line so it ends in the center of the editor - editor.revealLineInCenter(15);
Move current active line - editor.setPosition({column: 1, lineNumber: 3});

are there are any other methods to navigate

please respond

@LOGAN thank you for the discussion, I think you might be encountering the following bug [editor] Cannot reveal a range programmatically · Issue #11284 · eclipse-theia/theia · GitHub. You can try the workaround it proposes and see if it works for you.

My issue got resolved.

Thank you @vince-fugnitto for responding :pray: :grinning:.

1 Like