(text: string, id: string)
| 147 | } |
| 148 | |
| 149 | export async function replaceTextInCurrentSelection(text: string, id: string): Promise<void> { |
| 150 | const target = findTargetUri(id); |
| 151 | console.info(`[replaceTextInCurrentSelection] inserting: ${text} into ${target.path}`); |
| 152 | const edit = new WorkspaceEdit(); |
| 153 | edit.replace( |
| 154 | target, |
| 155 | getLastActiveTextEditor().selection, |
| 156 | text |
| 157 | ); |
| 158 | await workspace.applyEdit(edit); |
| 159 | } |
| 160 | |
| 161 | export function showDialog(message: string): void { |
| 162 |
no test coverage detected