ionide / FsAutoComplete

F# language server using Language Server Protocol
Other
416 stars 154 forks source link

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

Open kojo12228 opened 2 years ago

kojo12228 commented 2 years ago

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 commented 2 years ago

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.