If the script contains lines with trailing spaces, and the cursor is somewhere below that line, any features that are based on cursor position are broken: Auto-Indentation will not move the cursor to the correct position and Intellisense will not trigger correctly.
The reason for this seems to be a problem with the rangy library. If a line contains more than one trailing space, rangy seems to treat them as a single character.
If the script contains lines with trailing spaces, and the cursor is somewhere below that line, any features that are based on cursor position are broken: Auto-Indentation will not move the cursor to the correct position and Intellisense will not trigger correctly.
The reason for this seems to be a problem with the rangy library. If a line contains more than one trailing space, rangy seems to treat them as a single character.