Inlay Hints appear in the wrong place when a method has a dart doc comment. #4160
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is bug
relies on sdk changes
Something that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Describe the bug
Inlay Hints for the return type of a method appear in the wrong place when a method has a dart doc comment. It appears to happen to getters and setters as well if they don't explicitly have their types written in the source code.
To Reproduce
Enable Inlay Hints and look at a method with doc comments where the there is no static type in the source code.
Expected behavior
The Inlay Hint showing the type should always appear after the doc comment and before the method name.
Screenshots
Please complete the following information:
The text was updated successfully, but these errors were encountered: