FsAutoComplete icon indicating copy to clipboard operation
FsAutoComplete copied to clipboard

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

Open kojo12228 opened this issue 2 years ago • 1 comments

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

kojo12228 avatar Jul 11 '22 19:07 kojo12228

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.

baronfel avatar Jul 11 '22 22:07 baronfel