You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
See #46647. Multiple extensions registering organize imports commands for various languages. I believe that organize imports is common enough that our api should help by providing basic support for it.
Proposal
Leverage the new SourceCodeActionKind to define a built-in CodeActionKind.SourceOrganizeImports type. Use this kind to define a standard keybinding and command for organize imports
Fixesmicrosoft#47845Fixesmicrosoft#46647
- Defines a new standard `SourceOrganizeImports` `CodeActionKind` to be used to implement organize imports in a consistent way.
- Add a new `Organize imports` command and keybinding that executes these actions.
- Move over the existing js/ts organize imports command to use the new code action kind
)
* Move TS/JS to use organize imports code action
Fixes#47845Fixes#46647
- Defines a new standard `SourceOrganizeImports` `CodeActionKind` to be used to implement organize imports in a consistent way.
- Add a new `Organize imports` command and keybinding that executes these actions.
- Move over the existing js/ts organize imports command to use the new code action kind
* Use supportedCodeActions context key
* Document code action kind values
* Fix regular expression
Make sure we only match whole scopes and not `unicorn.source.organizeImports`
Problem
See #46647. Multiple extensions registering organize imports commands for various languages. I believe that organize imports is common enough that our api should help by providing basic support for it.
Proposal
Leverage the new
Source
CodeActionKind
to define a built-inCodeActionKind.SourceOrganizeImports
type. Use this kind to define a standard keybinding and command for organize imports/cc @jrieken
The text was updated successfully, but these errors were encountered: