Skip to content
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

Reducing the frequency of reloading #38

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

belcar-s
Copy link
Collaborator

@belcar-s belcar-s commented Jun 13, 2022

These changes greatly alleviate issue #35. The tree view is now only reloaded…

  • when its symbols' names are changed and
  • when symbols are added or removed.
Demonstration.mp4

I think that this, together with a solution for the onDidStopChanging problem, would enable us to provide a very pleasant experience with the sidebar.

@belcar-s belcar-s marked this pull request as draft June 16, 2022 16:16
@belcar-s
Copy link
Collaborator Author

I'm going to remove some of SymbolDataProvider's properties and store the needed information in File objects instead.

@belcar-s belcar-s marked this pull request as ready for review June 16, 2022 17:44
@belcar-s belcar-s marked this pull request as draft June 16, 2022 17:45
@belcar-s belcar-s force-pushed the excessive-reloading branch 3 times, most recently from ab73972 to 6427c75 Compare June 16, 2022 17:51
@belcar-s belcar-s marked this pull request as ready for review June 16, 2022 17:52
@belcar-s
Copy link
Collaborator Author

I would love some help (after the holiday, of course!) in getting the elements' identifiers to work. Even when I set them to a constant, files in the sidebar are expanded immediately after the TreeView is reloaded.

@sgwilym
Copy link
Owner

sgwilym commented Sep 13, 2022

@belcar-s Do you think this issue is something we can fix, or is this something specific to Nova?

@belcar-s
Copy link
Collaborator Author

The identifier issue, I'm not sure. I made a post on the DevForum about it, but it wasn't replied-to. It's very possible that it's my fault, and that I'm misusing the field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants