Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument completion for literal values #1497

Closed
vberlier opened this issue Jun 24, 2021 · 2 comments
Closed

Argument completion for literal values #1497

vberlier opened this issue Jun 24, 2021 · 2 comments
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@vberlier
Copy link

vberlier commented Jun 24, 2021

Pylance doesn't suggest literal values when you input the opening parenthesis of a function call:

image

With TypeScript this is what it looks like:

image

If you start inserting double quotes Pylance doesn't suggest the remaining characters:

image

With TypeScript this works:

image

If you omit the quotes and start writing the content of the string Pylance doesn't show the suggestions first:

image

TypeScript handles this a bit better:

image

Also there's a problem with this use-case, when you select one of the suggested completions the string is inserted after the cursor instead of replacing the initial prompt:

image

With TypeScript the suggestion is inserted properly and replaces the initial prompt:

image

@judej judej added the bug Something isn't working label Jun 24, 2021
@github-actions github-actions bot removed the triage label Jun 24, 2021
@jakebailey jakebailey added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Aug 11, 2021
@jakebailey
Copy link
Member

The next release (today) will include support for all of the things mentioned in this issue.

@heejaechang heejaechang removed the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Aug 11, 2021
@heejaechang
Copy link
Contributor

fixed in 2021.8.1 release.

@jakebailey jakebailey added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

4 participants