[linter] RangeError: Position is out of range for changeset

  • The doc contents in the editor are all in my Diagnostic range. When I change the doc contents, RangeError: Position is out of range for changeset error is displayed. For this scenario, are there any good ideas to solve this problem

image

You’re going to have to provide a bit more information on what you are doing. If I set up a linter that marks the entire document with a diagnostic, I can modify the document without seeing this error.

  • Thanks for u. Yes, I am using linter to mark the diagnosis throughout the document. However, when I modify the contents of the document, such as deleting or typing characters. RangeError: Position is out of range for changeset error RangeError: Position is out of range for Changeset error.