Repository navigation
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 :) |
|
Matt Bierner (@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
providedKindsproperty onCodeActionProvider. This is a list ofCodeActionKindsthat the provider may return. The list will be used for deciding when to show therefactorandsource actioncontext menus. It is not used for filtering the returned code actionsPossibly helps address #45383