Closed
Description
Problem
Many languages allow embedding language fragments inside of strings. In JavaScript for example:
`Max int: ${Number.MAX_SAFE_INTEGER}`
While typing within the ${...}
however, we do not show quick suggestions. The root cause is that the template expression is within a string, and the editor.quickSuggestion.strings
setting explicitly disable quick suggestions within strings.
Proposal
We now have a convention of marking languages embedded within strings with the meta.embeded
scope. This could be used to reset the quick suggestions scopes.
Here's the scope of the above code:
In this stack, we'd first see string.template
which would disable quick suggestions. Then, further up the stack, we see meta.embedded
which would reset the quick suggestion mode.