([targets]: [TypedSelection[]])
| 16 | } |
| 17 | |
| 18 | async run([targets]: [TypedSelection[]]): Promise<ActionReturnValue> { |
| 19 | ensureSingleTarget(targets); |
| 20 | |
| 21 | await this.graph.actions.setSelection.run([targets]); |
| 22 | |
| 23 | await commands.executeCommand("editor.action.codeAction", { |
| 24 | kind: "refactor.extract.constant", |
| 25 | preferred: true, |
| 26 | }); |
| 27 | |
| 28 | return {}; |
| 29 | } |
| 30 | } |
nothing calls this directly
no test coverage detected