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 have copy pasted this issue from its original post on the abandoned repository that this was forked from.
If you trigger rewrap while the cursor is inside a multiline triple-quote (in this case a python documentation comment) where the first line's length is over the character limit it all goes wrong.
It seems to rewrap that single line and inject the closing triple-quotes.
This particular example is with a 100 character wrap configuration.
Occurs with both single and double quotes (as it the ' and " characters).
defget_resendable_uuids(now, pushable_participant_pks):
""" Get the uuids of relevant archives. This includes a per-study timeout value for how frequently to resend, and a filter by last updated time. """
The above gets rewrapped to:
defget_resendable_uuids(now, pushable_participant_pks):
""" Get the uuids of relevant archives. This includes a per-study timeout value for how """frequentlytoresend, andafilterbylastupdatedtime. """
which is a syntax error.
Tested version infos, via vscode:
Version 17.8.0
Last Updated 2024-12-16, 18:04:08
Version 1.16.3
Last Updated 2024-12-16, 18:08:29
VSCode Version: 1.96.0
The text was updated successfully, but these errors were encountered:
biblicabeebli
changed the title
re-wrapping first line of triple quoted code blocks (python) generate a syntax error
re-wrapping first line of triple quoted comment blocks (python) generate a syntax error
Jan 23, 2025
I have copy pasted this issue from its original post on the abandoned repository that this was forked from.
If you trigger rewrap while the cursor is inside a multiline triple-quote (in this case a python documentation comment) where the first line's length is over the character limit it all goes wrong.
'
and"
characters).The above gets rewrapped to:
which is a syntax error.
Tested version infos, via vscode:
Version 17.8.0
Last Updated 2024-12-16, 18:04:08
Version 1.16.3
Last Updated 2024-12-16, 18:08:29
VSCode Version: 1.96.0
The text was updated successfully, but these errors were encountered: