dotnet / dotnet/fsharp

VS counts hints into line length

Open
#15,576 0 comments 0 reactions 0 assignees View on GitHub
AI-thinks-windows-only Area-LangService-Hints Bug Impact-Low Needs-More information
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

Mentioned in [this comment](https://devblogs.microsoft.com/dotnet/improved-fsharp-hints-in-visual-studio/#comment-18369).

Indeed, it does:
![image](https://github.com/dotnet/fsharp/assets/5451366/adc48d84-7d79-48df-8341-1ec3c5fbd8c1)

I don't know if it's meant to be like this. There are three metrics there: Line, Character and Column. The Column metric is **hidden unless** it differs from the Character one.

https://github.com/dotnet/fsharp/assets/5451366/dfeab9ec-d432-40cd-9ae9-9fdcf60d72be

It's [not really clear](https://stackoverflow.com/questions/60053459/can-there-be-a-difference-between-column-number-and-character-number-in-visual-s) what are the designed scenarios for that.

Note, C# does the same.
![image](https://github.com/dotnet/fsharp/assets/5451366/9ab98e5c-60f7-41b4-bbc8-f4a38cd3ee92)

So, I see a few explanations to what is going on:
1) It's by design
2) It's a bug in Roslyn
3) There is a setting for this which neither F# nor C# utilizes

Further investigation is needed.

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.