-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Using FQN instead of adding import during ENC session #35194
Conversation
The code doesn't look suspicious, but out of curiosity how much work is it to just allow imports to be added during an E&C session? I can imagine the difficulty comes from potentially rebinding other identifiers in the file, but it seems like we should be able to handle that or know if it's going to be a problem... |
@jasonmalinowski It is indeed not impossible to implement and I would like to see us supporting it since it's the number one rude edit that customers run into.
Correct. We'd need to find out what methods are affected and recompile them, or report rude edits if we can't recompile a method that's affected. |
Is there a tracking item for this work we can point to this code (or stick a comment here) in hopes that if we fix it we remove this workaround? |
75e47d8
to
612ae1e
Compare
FYI @jinujoseph @vatsalyaagrawal This needs QB approval |
@jinujoseph It seems we have some issue with the integration test machines. I decided to merge this because:
|
@tmat This feels like a better approach than listening to the debugger events, as completion provider is mostly stateless. What do you think?
FYI @dpoeschl This is not intended to be merged before snap today, just need to target some branch. Will decide and retarget if necessary to the proper branch later.