Flutter Outline Doesn't Always Display Outline #2228
Copy link
Copy link
Closed
Labels
awaiting infoRequires more information from the customer to progressRequires more information from the customer to progressin editorRelates to code editing or language featuresRelates to code editing or language featuresin flutterRelates to running Flutter appsRelates to running Flutter appsis bug
Milestone
Description
I found this bug when I went to the definition of the Flutter Navigator class. I'm running version 3.7.1 of the Dart and Flutter VSCode extensions.
Steps to reproduce the bug:
- Click on NavigatorState in my code (the Flutter class probably doesn't matter but this is how I found the bug).
- The file navigator.dart opens in VSCode. Clicking on the Flutter icon in the sidebar correctly shows an outline for the Flutter / Dart code.
- Click on a tab of a different file in the editor. In my case, it was one of my project files. An outline of the Flutter / Dart code is properly displayed.
- Click back on the navigator.dart tab in the editor. The Flutter outline pane is blank.
If I close and reopen the navigator.dart file the Flutter outline is displayed but whenever I click to view another file then click back the navigator.dart Flutter outline is blank.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
awaiting infoRequires more information from the customer to progressRequires more information from the customer to progressin editorRelates to code editing or language featuresRelates to code editing or language featuresin flutterRelates to running Flutter appsRelates to running Flutter appsis bug
Activity
DanTup commentedon Jan 27, 2020
I think this might be related to an issue I saw and fixed in a7ebb71. Could you see if it's fixed by v3.8.0 Beta 1?
https://github.com/Dart-Code/Dart-Code/releases/tag/v2.8.0-beta.1
Thanks!
quiverware commentedon Jan 27, 2020
DanTup commentedon Feb 24, 2020
Sorry for the delay in responding. Are you able to reproduce this in a project you can share to see if I can repro?
quiverware commentedon Feb 24, 2020
Fix updating of Flutter Outline for files outside works[aces
DanTup commentedon Feb 26, 2020
Thanks! I was able to repro with the steps above. Seems like the way we forced updates for the Outline didn't work for SDK files so it wouldn't work after the first time. We now just read the last outline we had for a file in this case which should resolve the problem.
Thanks!
Fix updating of Flutter Outline for files outside works[aces
quiverware commentedon Feb 26, 2020