-
Notifications
You must be signed in to change notification settings - Fork 80
Ensure document symbols are provided for folders in multi root workspaces #1668
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
Ensure document symbols are provided for folders in multi root workspaces #1668
Conversation
7c08d62
to
c025d41
Compare
d498a45
to
5a2a80b
Compare
57a2ec2
to
a315ca3
Compare
`addFolder` in the LSP client was checking to see if the folder being added was a root folder. If the user is working in a multi root workspace document symbols would not be provided if they were for any folder except the first one added. This also prevented the test explorer from properly initializing. Check to see if the folder being added is in the list of VS Code workspace folders and associate the folder with the onDocumentSymbols request from the LSP. Issue: swiftlang#1669
a315ca3
to
f95c1e9
Compare
Is there a reason the code-workspace test run missed this, i.e. need for new/modified tests? |
There were no tests covering modification (textDocument/tests LSP req), only finding tests on workspace open (workspace/tests). I've added some new tests in this patch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing CHNAGELOG entry
If the user is working in a multi root workspace document symbols would not be provided if they were for any folder except the first one added. This also prevented the test explorer from properly initializing.
Check to see if the folder being added is in the list of VS Code workspace folders and associate the folder with the onDocumentSymbols request from the LSP.
Issue: #1669