pylance-release
pylance-release copied to clipboard
Add support for create function, class or parameter code actions depending on context
Discussed in https://github.com/microsoft/pylance-release/discussions/3600
Originally posted by luabud November 9, 2022
It'd be nice Pylance could displayed refactoring code actions depending on the context. For example:
def foo():
return x # <--- 💡Create parameter x
a = MyClass # <--- 💡 Create class MyClass
b = bla() # <---- 💡 Create method bla()
```</div>
we just converted this into an issue to add it to our roadmap
Related on Stack Overflow: Create non-existent functions by a single click in VS Code Python.
Does this also cover missing methods? (see also VS Code assist for Python create new method if they not exists?)