2020.12.0
Notable changes:
- Extract method and extract variable code actions are available for preview in Pylance insiders (
"pylance.insidersChannel": "daily"
). - Completion suggestions are now matched more fuzzily. For example, typing
lx
will match a completion forlogical_xor
, even though it does not contain the substringlx
.
(pylance-release#608) - Auto-imports (both completions and quick fixes) will now make use of existing imports when possible. For example, an auto-import completion for
array
whenimport numpy as np
is present will now complete tonp.array
, rather than addingfrom numpy import array
. - Auto-imports will now correctly insert a new import rather than reusing an import statement from a submodule.
(pylance-release#646) - Method override completions will now generate a
super()
call.
(pylance-release#668) - Completions for overriden methods will now show the correct signature.
- VS Code's "word based suggestions" (
editor.wordBasedSuggestion
) are now disabled by default in Python files to mitigate poor completions when Pylance specifies no completions are available.
(pylance-release#604) - Pylance's copy of typeshed has been updated.
For the full changelog, see CHANGELOG.md.