-
Notifications
You must be signed in to change notification settings - Fork 22
[IMP] Filter out magic fields from go to definition #436
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
base: alpha
Are you sure you want to change the base?
Conversation
|
|
||
| pub const MAGIC_FIELDS: [&str; 6] = [ | ||
| "id", | ||
| "display_name", |
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.
How possible would it be for display_name to go to any _compute_display_name methods associated with the model?
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.
@andg-odoo, Well, I think it is possible, it is a bit of a custom behavior though, but it has some sense to it. I shall discuss with @fda-odoo and see what we think about implementing that.
Thanks for the suggestion
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.
That's indeed a good idea, I added it to our todolist :)
6d41539 to
e1a695c
Compare
server/src/core/evaluation.rs
Outdated
| (S!("range"), ContextValue::RANGE(ast.range())) | ||
| ])); | ||
| let analyze_result = Evaluation::analyze_ast(session, &ExprOrIdent::Expr(ast), parent, max_infer, &mut context, for_annotation, required_dependencies); | ||
| let analyze_result = Evaluation::analyze_ast(session, &ExprOrIdent::Expr(ast.clone()), parent, max_infer, &mut context, for_annotation, required_dependencies); |
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.
Why do you need cloning ast everywhere? That's an expensive change
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.
Too much moving of reference was a bit scary. I am trying to refactor it now safely
de0acbc to
e262189
Compare
Task: 5111939