Necessary imports should be added when inlineHints are applied #61438
Labels
Area-IDE
Bug
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Double clicking inline hints which replace
var
with a type name do not add using directives when necessary.Steps to Reproduce:
var
enabled you should see the following:5. Double click the inline type hint to apply the text to the document.
Expected Behavior:
var
is replaced withImmutableDictionary<string, string>
and ausing System.Collections.Immutable;
using directive is added.Actual Behavior:
var
is replaced withImmutableDictionary<string, string>?
which is error squiggled.Additional Thoughts:
The VS Code implementation of this behavior supports associating multiple TextEdits with each inlay hint. Currently Roslyn supports a single TextEdit.
The text was updated successfully, but these errors were encountered: