-
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
Automatically add missing using directives #45853
Comments
I'm very hesitant about that. It may take a fast operation and make it extremely slow. Today we already have a feature that lsitens for paste and proffers Asynchronously the lightbulb that will adding usings if the user wants to do that. That model both serves this need, and doesn't cause undue delays for users trying to do normal activities. Note: thsi perf concern is not a hypothetical. Pasting in VB is commonly extremely slow as we do code-cleanup autoamtically on that text. This may mean unbounded work as we construction compilations and the like. |
Conclusion from design meeting (7/13): |
Addresses #45853 Hook up paste command to also automatically add usings. Operation uses thread await dialog to pop up to a user if it is taking a while with a "cancel" button. The dialog will not always show, but follows the IUIThreadOperationContext scope rules Edit: This is disabled by default. The following followup issues were filed #49442 #49443 #49444
This feature is done at this point. #49442 tracks us adding an async version which we believe we could enable by default. |
Direct customer ask copying here:
The text was updated successfully, but these errors were encountered: