pylance-release
pylance-release copied to clipboard
create stub file not working
- install
pip install zope.event
- enable in setting.json
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingTypeStubs": "information"
},
- create python file and add
import zope.event
- place cursor on
event
- open
create type stub
code action and run
Expected: type stub created Actual: Nothing happens.
looks like something around pyright command controller not being called anymore.
PylanceAsyncServer.executeCodeAction
returns (amongst other things) pyright.createtypestub
. But BaseCommandController.getCommand
only supports python.createtypestub
. Looks like there's history of us supporting both command names, but it's not clear to me why. This support was broken by https://github.com/microsoft/pyrx/pull/3633.
Reassigning to @rchiodo who should have more context.
This issue has been fixed in prerelease version 2024.5.100, which we've just released. You can find the changelog here: CHANGELOG.md