New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code Outline sometimes doesn't show for newly-opened files #1047
Comments
@DanTup Yes, that's exactly what I want. How did you enable that feature with Dart or Flutter extension? I have installed the Flutter 2.15.0 extension, but it doesn't have an outline section... |
It's a VS Code feature - on the Explorer sidebar, right-click and tick It's currently a preview feature, so it may move - see microsoft/vscode#49923. |
I got it thanks :) It does work on my local files, but for example when I press F12 on StatefulWidget to go to its implementation, in this case framework.dart file, the outline doesn't show anything! |
@clarktank Hmmm, that should work - and seems to here: Could you try capturing a log? Close |
@scheglov Not sure if this is a race (or whether it should work). We opened a file (
I think it would be better if the |
I don't understand why this might happen.
|
Hmmm, that is strange then. The file must be reachable as it was returned in @clarktank Could you try enabling the Analaysis Server Instrumentation Log, restarting VS Code, reproducing, then providing the log? Note: That log may include a lot more of your code than the previous log so do review if there might be anything sensitive in there (or you can email it if you don't want to post here - logs @ dartcode .org). |
This time I didn't wait as much as last time, after pressing F12. Please, let men know, if you want me wait more... |
@clarktank That's fine, it includes the important part showing the request/response for the data:
@scheglov There's less in that log than I remembered; I thought it showed the files being analyzed. Anything more we can do debug? |
I have upgraded to v2.6 and this problem is solved. |
Great! I guess it was fixed by 623dcc9. We switched over to Outline information for the Document symbol list so that we could more easily map it to a tree and we'll wait up to 60 seconds after you open the file for the data to come through. |
On Android Studio, on the left side, there is a section called "Structure" where it shows a Top Level of all your classes and methods. Could you bring it to VS code?
The text was updated successfully, but these errors were encountered: