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
This issue is not a bug report. (please use a different template for reporting a bug)
This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
Currently the api method editor.SetValue() set the cursor to column 1 in line 1 after inserting text.
But sometimes it is required to insert text, then set the cursor at the end of the inserted text and then scroll to this position if it is out of view. (For example when loading a predefined text that should support directly pasting data after it.)
I suggest to add a second optional (and default to false) parameter to editor.SetValue() that allows to set the cursor at the end of the "inserted" text.
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
The text was updated successfully, but these errors were encountered:
Context
Description
Currently the api method
editor.SetValue()
set the cursor to column 1 in line 1 after inserting text.But sometimes it is required to insert text, then set the cursor at the end of the inserted text and then scroll to this position if it is out of view. (For example when loading a predefined text that should support directly pasting data after it.)
I suggest to add a second optional (and default to false) parameter to
editor.SetValue()
that allows to set the cursor at the end of the "inserted" text.Monaco Editor Playground Link
No response
Monaco Editor Playground Code
The text was updated successfully, but these errors were encountered: