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
Value of the python.languageServer setting: Microsoft
Expected behaviour
Syntax highlighting of arguments should look like that below when the line begins with any argument, including *.
Actual behaviour
When a list of arguments is on more than one line and a * is the first argument on the line, the syntax highlighting gets very odd. Everything on that line is a pale green color.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Everything is fine here:
def my_func(*, foo, bar, baz=True)
Here the middle line turns pale green:
def my_func(
*, foo, bar, baz=True,
)
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
I initially reported this in the wrong place. See microsoft/vscode#91456 (comment) for the initial report.
Environment data
"python.jediEnabled"set to; more info How to update the language server to the latest stable version #3977): Jedipython.languageServersetting: MicrosoftExpected behaviour
Syntax highlighting of arguments should look like that below when the line begins with any argument, including
*.Actual behaviour
When a list of arguments is on more than one line and a
*is the first argument on the line, the syntax highlighting gets very odd. Everything on that line is a pale green color.Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Everything is fine here:
Here the middle line turns pale green:
Logs
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Output from
Consoleunder theDeveloper Toolspanel (toggle Developer Tools on underHelp; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging)