dotnet / dotnet/fsharp

AddOpen code fix doesn't offer full qualification anymore

Open
#15,911 0 comments 0 reactions 0 assignees View on GitHub
Area-LangService-CodeFixes Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

This should actually offer two things:
1. Add open directive (`open System`)
2. Fully qualify the namespace (`System.Console.WriteLine`)

![image](https://github.com/dotnet/fsharp/assets/5451366/512451da-6e6e-4640-813a-14f780c84eec)

Now, this happens because the code fix only shows the first suggestion of all that it generated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.