-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bug
Milestone
Description
Describe the bug
Renaming a named constructor or a factory results in duplicating the dot in any doc comment that is referencing that symbol. It breaks the link between the symbol and the reference for any subsequent renaming.
To Reproduce
Steps to reproduce the behavior:
- Create a new class SomeClass
- Add a named constructor SomeClass.namedConstructor
- Add a doc comment to the named constructor that includes a Dart doc reference [SomeClass.namedConstructor]
- Right-click the name of the named constructor in the code
- Select 'Rename Symbol' (F2)
- Change the name to 'anotherName'
- Notice how an extra dot is added to the reference in the doc comment [SomeClass..anotherName]
- The link between the symbol and the reference is the doc comment is now lost.
- The steps to reproduce the issue for a factory are the same.
- Disabling all extensions, except the Dart extension, does not resolve the problem.
Versions (please complete the following information):
- VS Code version: 1.49.1
- Dart extension version: 3.14.1
- Dart/Flutter SDK version: Flutter 1.21.0-9.2.pre • channel beta, Dart SDK version: 2.10.0-7.3.beta
Metadata
Metadata
Assignees
Labels
in lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bug