Skip to content

Suggestions no longer support creating a docstring #8072

Description

@rchiodo

I have the opposite issue: I enabled python.analysis.supportDocstringTemplate (as suggested in https://devblogs.microsoft.com/python/python-in-visual-studio-code-december-2024-release/) but I do NOT get any "Generate DocString" entry in the (suggestions) popup menu when i press Ctrl+Space. However, if i mouse-click the bulb, then the (quick fix) popup menu DOES contain a "Generate Docstring" entry.

SO it's definitely not working as advertised int he blog entry introducing the feature, because the menu entry seems to be part of the "quick fix" menu instead of the "suggestions" menu.

Any workaround?

Using latest stock VS Code v1.124.2 on macOS, with Pylance 2026.2.1 extension installed.

Originally posted by @gdevone in #7767

Metadata

Metadata

Assignees

Labels

repro workspaceIssue has a retained repro workspace

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions