We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found a weird issue, it happens with ~master
struct A { B b; void test() { auto here = b.inside_b; here.|<----- cursor here } } struct B { int inside_b; }
dcd-server doesn't show anything
If i move B and put it above A, then i get completion
I came accross something similar in my Template PR, so i added a test and this change fixes it:
e7a83be#diff-86f3b1d98d85f9defb3b2ad13eed3ba76c75dbbee18dc6d8ae5214a3b9b07a0dR98-R113
Test: e7a83be#diff-c272767d1a40f2efc3f5daa8238fb6c8063e8220a862e86aa55432ab7cd0392dR26-R28
But no luck for this one here, since B is on a different scope
The text was updated successfully, but these errors were encountered:
As a fix, we could do like for the thirdPass, and take into account the whole lookup.breadcrumbs (the whole chain) instead of a just the 1st one
thirdPass
lookup.breadcrumbs
Also it needs to be added from resolveTypeFromInitializer from secondPass
resolveTypeFromInitializer
secondPass
Sorry, something went wrong.
Found a fix!
Simply call secondPass a second time after thirdPass, so it takes care of everything!
I'll create a test with this code and send a PR
added test for #717
33fd0db
No branches or pull requests
I found a weird issue, it happens with ~master
dcd-server doesn't show anything
If i move B and put it above A, then i get completion
I came accross something similar in my Template PR, so i added a test and this change fixes it:
e7a83be#diff-86f3b1d98d85f9defb3b2ad13eed3ba76c75dbbee18dc6d8ae5214a3b9b07a0dR98-R113
Test: e7a83be#diff-c272767d1a40f2efc3f5daa8238fb6c8063e8220a862e86aa55432ab7cd0392dR26-R28
But no luck for this one here, since B is on a different scope
The text was updated successfully, but these errors were encountered: