Skip to content

Enable supportRestructuredText leads to visible non-breaking space in docstrings #7084

Open
@huaium

Description

@huaium

Environment data

  • Pylance version: 2025.3.2
  • OS and version: macOS 15.3.2
  • Python version (& distribution if applicable, e.g. Anaconda): miniconda 24.7.1

Code Snippet

"python.analysis.supportRestructuredText": true

Repro Steps

Taking ThreadPoolExecutor() as an example:

  1. Enable python.analysis.supportRestructuredText (default)
  2. Move your mouse over the ThreadPoolExecutor() to show the quick documentation for its init method

Expected behavior

Showing docstrings preview:

...
max_workers: The maximum number of threads that can be used to execute the given calls.
...

Actual behavior

...
max_workers :     The maximum number of threads that can be used to     execute the given calls.
...

Logs

No error logs output in the console after switching to trace log level

More

Since python.analysis.supportRestructuredText is still under experiment, it should be disabled by default.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions