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
I noticed the same behavior and I am pretty confident that this is due to tab indentation (\t).
As you can see, on line 97 everything works properly (line auto indented by vscode) while on line 98, the 'decorate'-parameter is split by the annotation. Line 98 uses tab indentation (copy/pasted, notice the '->')
Tab indentation causes problematic behavior, as \t is only on character but is rendered as something else (e.g. 4 spaces). This extension uses the number of characters to position the inline parameter annotation, things are actually correct but the rendering causes the glitch.
As there is no standard definition of how much indentation a \t represents, I suggest accessing the editor.tabSize property and hand this info to the language drivers. For each \t preceding a parameter annotation, add n extra characters to ParameterPosition.start.character and ParameterPosition.end.character (for n = whatever the number of 'editor.tabSize' is).
Windows 10
VSCode is up to date
Extension is up to date
This happens at random, the only way to fix is restarting VSCode or to remove the parameter value and write it again
The text was updated successfully, but these errors were encountered: