pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

Cannot find 'decimal.Context' when typing 'decimal.ctxt'

Open linette-zyy opened this issue 2 years ago • 9 comments

Environment image

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. image

Actual behavior Cannot find 'Context' when typing 'ctxt'. image NOTE: Can find 'Context' when typing 'c' image

linette-zyy avatar Oct 18 '22 02:10 linette-zyy

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.

image

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 avatar Oct 18 '22 16:10 debonte

@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).

rchiodo avatar Nov 11 '22 00:11 rchiodo

Probably best to ask @heejaechang since he knows more about how IntelliSense works.

debonte avatar Nov 11 '22 01:11 debonte

Moving to triage for visibility.

rchiodo avatar Jan 11 '23 21:01 rchiodo

textDocument/completion logs decimalCompletions.txt

bschnurr avatar Feb 03 '23 22:02 bschnurr

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.

heejaechang avatar Feb 03 '23 22:02 heejaechang

Yes.

bschnurr avatar Feb 03 '23 22:02 bschnurr

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.

bschnurr avatar Sep 01 '23 22:09 bschnurr

internal bug 1944015

bschnurr avatar Jan 23 '24 18:01 bschnurr