Skip to content
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

python intelliSence by Pylance not rendered AS IS #601

Closed
sirlis opened this issue Nov 12, 2020 · 3 comments
Closed

python intelliSence by Pylance not rendered AS IS #601

sirlis opened this issue Nov 12, 2020 · 3 comments
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@sirlis
Copy link

sirlis commented Nov 12, 2020

Environment

VSCode Version: 1.51.1
OS Version: windows 10
Python Version: 3.7.9 64-bit

Steps to Reproduce:

  • install pylance
  • define a class, or import a 3rd party package (e.g. pytorch) and then use a class
  • hover your mouse on the class name
  • the provided comment doc strings is not rendered AS IS

I'm using VSCode to write python, and using Pylance to provide intelliSence. I think that comment doc strings should be rendered AS IS. No markup interpretation. If the author makes an effort to format the string it look good.

Detailed description

user defined class:

1

pytorch class:

2

I tried the - (minus) method and it worked more reasonable than plain text. But I also faced with _ problems in variable names as is shown below. Since I can add --- in my user defined classes, I cannot edit comments in 3rd party packages like PyTorch, whose comments are shown in the images above and are rendered as plain text by Pylance.

3

@jakebailey
Copy link
Member

Not converting to markdown wouldn't be a good idea (as it prevents us from using markdown at all in the tooltips). VS Code's plaintext support is broken until 1.52, but maybe then we could add a toggle to say "use plaintext only".

@judej judej added the needs decision Do we want this enhancement? label Nov 12, 2020
@github-actions github-actions bot removed the triage label Nov 12, 2020
@savannahostrowski savannahostrowski added fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed needs decision Do we want this enhancement? labels Feb 2, 2021
@savannahostrowski
Copy link
Contributor

MicrosoftTeams-image (7)

This will be fixed in the next version of Pylance!

cc: @bschnurr

@jakebailey
Copy link
Member

This issue has been fixed in version 2021.2.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202120-3-february-2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

4 participants