forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Intellisense tooltip applies text formatting on source code #2225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Issue identified by VS Code Team member as probable bug
Comments
Looks like the problem is, the text is tested as markdown text. |
@Spanfile Please could you provide some complete sample code. |
@DonJayamanne A minimal sample: class Test:
def __init__(self):
self._a_b: int = None Python workspace settings: {
"python.pythonPath": "${workspaceFolder}\\venv\\Scripts\\python.exe",
"python.linting.pylintEnabled": false,
"python.linting.mypyEnabled": true,
"python.jediEnabled": false
} |
Yeah, tooltip is markdown so |
Fixed upstream (microsoft/python-language-server#17) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment data
Actual behavior
The tooltip applies text formatting to the displayed code, e.g. wrapping text in underscores italicizes it.

Expected behavior
The tooltip shows the code as it is written in the source.
Steps to reproduce:
self
, with underscores in its nameLogs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: