-
Notifications
You must be signed in to change notification settings - Fork 12
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
Better domains - autocompletion, diagnostics, hover #167
base: master
Are you sure you want to change the base?
Conversation
on models, get_symbols returns all symbols that build the model, but there was no easy way to get all symbols that build the model with inherited models. get_full_model_symbols do it now. It doesn't contain inheritS howevers.
Add return values for with_company, with_context, with_prefetch, with_user, with_env, exists
02e2c6c
to
1cb2e18
Compare
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.
Nice really cool!
Just one question on a comment, otherwise looks great!
let from_module = file.borrow().find_module().clone(); | ||
Symbol::all_members(&parent, session, &mut all_symbols, true, from_module, &mut None, false); | ||
for (_symbol_name, symbols) in all_symbols { | ||
//we could use symbol_name to remove duplicated names, but it would hide functions vs variables |
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.
But we cannot have functions and variables with the same name, can we?
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.
We could. Some would be shadowed, but as we are searching here in classes, inheritance, co-models,... we could find different symbols type with the same name
The PR contains all changes and fixs about search domains.