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

No autocomplete for tokens within interpolated strings (within Ionide/VSCode) #962

Open
kojo12228 opened this issue Jul 11, 2022 · 1 comment

Comments

@kojo12228
Copy link
Contributor

When trying an interpolated string, I don't get auto complete while typing out a variable or type name. Even once a valid token is entered, I don't get autocomplete of properties/functions/types etc.

See the GIF below for an example. It's easily reproducible with any interpolated string:

string_interpolation_example

If the issue is new joiner friendly, I'm happy to look into trying to fix it myself (even if it isn't hopefully a weekend soon I'll take a look).

@baronfel
Copy link
Contributor

Super interesting! I can get a completion list when I manually invoke completions inside a { context (via CTRL + Space):

image

But it looks like { isn't a trigger character to open the completion list, and we also might have something going on with detecting an interpolated string context for completions.

The easiest way to look at this would be to add a new test to the existing completion tests (test\FsAutoComplete.Tests.Lsp\CompletionTests.fs) for this scenario, then debug it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants