question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intellisense tooltip applies text formatting on source code

See original GitHub issue

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

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

None

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

None

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Spanfilecommented, Aug 1, 2018

@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
}
0reactions
luabudcommented, Sep 11, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellisense tooltip applies text formatting on source code #2225
The tooltip applies text formatting to the displayed code, e.g. wrapping text in underscores italicizes it. image. Expected behavior. The ...
Read more >
IntelliSense in Visual Studio Code
IntelliSense. IntelliSense is a general term for various code editing features including: code completion, parameter info, quick info, and member lists.
Read more >
C# IntelliSense - Visual Studio (Windows) - Microsoft Learn
In the code editor, IntelliSense can help you hook up methods (event handlers) to event fields. When you type the += operator after...
Read more >
SQL IntelliSense and Autocomplete in SSMS | Redgate
IntelliSense and Code Completion in SQL Server Management Studio ... toggle on the SQL Text Editor ribbon to switch IntelliSense on or off....
Read more >
Bootstrap tooltips not working - Stack Overflow
To sum up: activate your tooltips using jQuery selectors <script type="text/javascript"> $(function () { $("[rel='tooltip']").tooltip(); }); </script>.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found