You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code completion incorrectly returns results in comments at end of file #3170
Thanks! I can repro this - it seems to only happen when the comment is the last thing in the file. I suspect this check isn't working right in that case.
It also seems to set the replacement range to the whole comment, so if you invoke completion without the . it ends up replacing the whole thing:
changed the title [-]DartCode (or the analyzer?) unnecessarily completes after periods in comments[/-][+]Code completion incorrectly returns results in comments at end of file[/+]on Mar 2, 2021
Activity
DanTup commentedon Feb 28, 2021
Thanks! I can repro this - it seems to only happen when the comment is the last thing in the file. I suspect this check isn't working right in that case.
It also seems to set the replacement range to the whole comment, so if you invoke completion without the
.it ends up replacing the whole thing:I'll take a look, thanks!
[-]DartCode (or the analyzer?) unnecessarily completes after periods in comments[/-][+]Code completion incorrectly returns results in comments at end of file[/+][analyzer] Detect completion inside comments at the end of file
DanTup commentedon Mar 2, 2021
Fixed by dart-lang/sdk@f03ec46. The fix is in the SDK, so will show up in a future SDK update (rather than a Dart-Code update). Thanks!