mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
CodeActionScope (#41782)
* Add CodeActionScope * Replace matches with contains, try using in ts extension * Move filtering to getCodeActions * Basic test * Docs * Fix tests * Hooking up requested scope * Add basic test for requestedScope * Added auto apply logic * Gate refactor provider to only compute refactorings when requested * Making suggested renames * Clean up code action trigger impl to use single Trrigger info object * Rename codeActionScope file and internal CodeActionScope class * Add quick fix base type * Make keybinding API more similar to insertSnippet Take args as an object instead of as an array of values * Clean up docs * scope -> kind * Fixing examples to match Refactor kind
This commit is contained in:
@@ -419,6 +419,9 @@ export class ExtHostApiCommands {
|
||||
codeAction.title,
|
||||
typeConverters.WorkspaceEdit.to(codeAction.edit)
|
||||
);
|
||||
if (codeAction.kind) {
|
||||
ret.scope = new types.CodeActionKind(codeAction.kind);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user