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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from PowerShell:main #67

Merged
merged 4 commits into from
Oct 21, 2023
Merged

[pull] main from PowerShell:main #67

merged 4 commits into from
Oct 21, 2023

Conversation

pull[bot]
Copy link

@pull pull bot commented Oct 21, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 馃挅 Please sponsor : )

For some reason VS Code, in some repositories and configurations, will
send us `DidOpenTextDocument` notifications for special documents with
the `git` scheme (not `file` or `untitled`). It's probably some internal
representation that VS Code is using to supply VCS information. Because
we were specifically ignoring the URI in this handler these files were
getting erroneously added to our workspace service's list of open files,
which then caused duplicate references.
This is probably what OmniSharp was doing for us.
This finishes the optimizations by relying on the fact that we're
passing a reference to the list which means we can modify it in-place.
We sort the whole list of symbols on the first pass only, and then as
sort children into parents' buckets we *move* them by adding them to
`parent.Children` and removing them from the current list, and then
recurse and modify those lists until we're done.

I don't normally like relying on side-effects such as modifying in the
called function, but it makes the most sense in this case for
optimizations and is duly noted.
@pull pull bot added the 猡碉笍 pull label Oct 21, 2023
@pull pull bot merged commit 993a54c into rbleattler:main Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant