-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
CodeActionProvider.providedKinds #47702
Conversation
We pass this information along the register-call because that makes it clear that those cannot change. Making it a property, apart from being different to other places, makes this harder to watch |
Adds a new optinal `providedKinds` property on `CodeActionProvider`. This is a list of `CodeActionKinds` that the provider may return. The list is used for deciding when to show the `refactor` and `source action` context menus. It is not used for filtering the returned code actions Possibly helps address microsoft#45383
…a code action provider
b1b0e66
to
b7d523a
Compare
There's no milestone on this but the changes are in vscode.d.ts - I presume this plans to ship in 1.23? Edit: Looks like #47621 is tagged April :) |
@mjbvz Is it possible to change the label that appears for "Organize Imports"? It doesn't seem to use the name form the Code action (in the palette). For ex in Dart we call it "Organize Directives" and I guess C# calls it |
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
The command itself is called organize imports for consistency across languages. However the code action entry in the |
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
Implements microsoft/vscode#47702 so that we get refactors on context menu. Fixes #835. Fixes #531 (ish).
Adds a new optinal
providedKinds
property onCodeActionProvider
. This is a list ofCodeActionKinds
that the provider may return. The list will be used for deciding when to show therefactor
andsource action
context menus. It is not used for filtering the returned code actionsPossibly helps address #45383