pylance-release
pylance-release copied to clipboard
Cannot find 'decimal.Context' when typing 'decimal.ctxt'
Environment
Steps to Reproduce 1.Create a Python Application project 2.Type Sample Code
import decimal
decimal.ctxt
Expected behavior
decimal.ctxt will bring decimal.Context up.
Actual behavior
Cannot find 'Context' when typing 'ctxt'.
NOTE:
Can find 'Context' when typing 'c'
This repros in VS, but not in VS Code. It seems like the fuzzy matching is different in VS?
I do see Context
if I type decimal.cotxt
instead.
I also see it if I type decimal.co
then delete the o
and then type txt
. So I still end up with decimal.ctxt
but temporarily had an o
in the string during filtering.
If this issue sounds familiar, see https://github.com/microsoft/pylance-release/issues/3037. :)
@debonte do you think this item could be closed? It sounds like a VS specific behavior in their filtering of the completion list (and not something pylance is doing).
Probably best to ask @heejaechang since he knows more about how IntelliSense works.
Moving to triage for visibility.
textDocument/completion logs decimalCompletions.txt
so, our response is correct. should we give it to VS LSP client team? since it looks like it is VS LSP client that filter Context out.
Yes.
Note: I think is only reproducible based on timing. if I type really fast then it works. if I take my time it does not.
internal bug 1944015