-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Change "Organize Imports" command label to "Optimize Imports" #232869
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
Conversation
|
@microsoft-github-policy-service agree |
|
Won't this break things for users who are accustomed to typing "organize" in Command Palette? Did consider the second suggestion in #232351 (comment) from @TylerLeonhardt? Philosophical question. Does the command improve performance of the code, which is what the word "optimize" implies to me? Or does it just aid comprehension by the programmer? |
|
I believe this change is only made to aid the user with comprehension and to have consistency with other IDEs as mentioned in the issue I did take a look at Tyler's comments To include more meta-data information,I would have to make a substantial amount of changes, so before moving forward with this I wanted to have an opinion from the maintainers for the same, if they give me the green light, I'll go ahead and make the change. Thank you! |
mjbvz
left a comment
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.
I don't think we should change the names. Instead see the recommendation about adding metadata in the original issue: #232351 (comment)
|
sure, I will make these changes Thank you! |
cbcb7c9 to
6249d39
Compare
The changes improve:
Testing
NotesAll of the changes made were purely meta-data changes and shouldn't impact the functionality of the function in any way possible except assisting in better |
mjbvz
left a comment
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.
Thanks for following up. Let's see if we can just add to the metadata description
|
Sure, just to follow up , should i use Thank you! |
|
Yes you should use |
…n and removed unneccesary args meta-data
|
I have implemented the changes in the codebase, please do let me know if any other changes are required Thank you! |
mjbvz
left a comment
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.
Thanks!
This PR fixes Issue #232351
Changes
Modified Files
src/vs/editor/contrib/codeAction/browser/codeActionCommands.tsextensions/typescript-language-features/src/languageFeatures/organizeImports.tsTesting
I have used my own typescript project to test out this feature
Note
The command ID
organizeImportsCommandIdremains unchanged to maintain compatibility and also I have not changed much of the meta-data associated with the same as I didn't find the need to, if you do want me to change it please do let me know