Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Intellisense tooltip applies text formatting on source code #17

Closed
MikhailArkhipov opened this issue Aug 31, 2018 · 1 comment
Closed
Assignees
Labels
bug Something isn't working priority:P2
Milestone

Comments

@MikhailArkhipov
Copy link

microsoft/vscode-python#2225

Environment data

  • VS Code version: 1.25.1
  • Extension version (available under the Extensions sidebar): 2018.7.0
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: NA

Actual behavior

The tooltip applies text formatting to the displayed code, e.g. wrapping text in underscores italicizes it.
image

Expected behavior

The tooltip shows the code as it is written in the source.

Steps to reproduce:

  1. Use the mypy linter
  2. Define a variable in a class, using self, with underscores in its name
  3. Assign a type to the variable with a type hint
  4. Hover over it to see the Intellisense tooltip
@jakebailey
Copy link
Member

Fixed in #596 and others.

image

Generated tooltips from signatures will be enclosed in literal blocks, and docstrings should be properly escaped.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working priority:P2
Projects
None yet
Development

No branches or pull requests

3 participants