({ kind, title }: { kind?: vs.CodeActionKind, title?: string }, range: vs.Range)
| 724 | } |
| 725 | |
| 726 | export async function executeCodeAction({ kind, title }: { kind?: vs.CodeActionKind, title?: string }, range: vs.Range) { |
| 727 | const matchingActions = await getCodeActions({ kind, title, requireExactlyOne: true }, range); |
| 728 | assert.equal(matchingActions.length, 1); |
| 729 | await waitForEditorChange(() => vs.commands.executeCommand(matchingActions[0].command!.command, ...matchingActions[0].command!.arguments!)); // eslint-disable-line @typescript-eslint/no-unsafe-argument |
| 730 | } |
| 731 | |
| 732 | export function positionOf(searchText: string, doc?: vs.TextDocument): vs.Position { |
| 733 | // Normalise search text to match the document, since our literal template |
no test coverage detected