-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Organize Import Code Action on save is not working #14955
Comments
Updated title because "Organize Imports" is not a command. |
There are a couple of things missing here:
I suspect that 2 and 4 are due to context not being set or evaluated properly. |
I suspect that the above problems don't just affect "organize imports", but all code action kinds. |
We're simple not passing the kinds of provided code actions from the plugins to the editor. Making the connection makes the keybinding for "organize imports" work inside typescript files. |
On the implementation side, two more things are missing:
|
Part of eclipse-theia#14955 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
Part of #14955 Contributed on behalf of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
Bug Description:
In my workspace I configured the organize import action to run on save of file. This does not trigger.
I also don't see the action in the list of commands when I open the command palette.
Steps to Reproduce:
Here you see already a warning that "explicit" is not a boolean (the example in the settings is setting the value to "explicit" and vscode wants that, too).
3. Open any ts file which has imports. Change import order to not be alphabetically. Save file.
4. See that imports don't change
5. try to manually call Organize imports using command palette, see no command available
Additional Information
The text was updated successfully, but these errors were encountered: