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
Extension version (available under the Extensions sidebar): v2020.9.114305
OS and version: Windows 10 Home, v10.0.18363 Build 18363
Python version (& distribution if applicable, e.g. Anaconda): 3.8.6 64-bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: N/A
Relevant/affected Python-related VS Code extensions and their versions: N/A
Value of the python.languageServer setting: Microsoft and/or Pylance
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
Show the document popup with a value of as:
tex_t (String): The text you want to print.
Actual behaviour
Any underscores in the Docstrings are preceded by a backslash
tex_t (String): The text you want to print.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Copy and paste this:
def printl(text):
"""
Clears the console and prints whatever text is inputed, under a heading.
Parameters
----------
tex_t (String) : The text you want to print.
Returns
-------
Nothing
"""
return
Type in "printl(" and look the code preview
Note
After changing the python.languageServer setting, I found out this is only produced if set to Microsoft or Pylance. Setting it to Jedi eliminates the problem.
The text was updated successfully, but these errors were encountered:
However, I believe you may be missing the indent in the Parameters section in your code snippet. Is that correct?
If you did have it indented, then this would be a dupe of #48, as we're treating indented blocks as code blocks (per RST and markdown), but this specific docstring format is I believe the numpy one which has a different syntax.
Environment data
python.languageServer
setting: Microsoft and/or Pylance[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
Show the document popup with a value of as:
tex_t (String): The text you want to print.
Actual behaviour
Any underscores in the Docstrings are preceded by a backslash
tex_t (String): The text you want to print.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Note
After changing the python.languageServer setting, I found out this is only produced if set to Microsoft or Pylance. Setting it to Jedi eliminates the problem.
The text was updated successfully, but these errors were encountered: