(file: string, line: number, column: number)
| 165 | } |
| 166 | |
| 167 | export async function navigateToFile(file: string, line: number, column: number): Promise<void>{ |
| 168 | |
| 169 | const targetDocument = await workspace.openTextDocument(Uri.file(file)); |
| 170 | const editor = await window.showTextDocument(targetDocument); |
| 171 | const targetPosition = parsePosition([line, column], targetDocument); |
| 172 | editor.selection = new Selection(targetPosition, targetPosition); |
| 173 | editor.revealRange(new Range(targetPosition, targetPosition)); |
| 174 | } |
| 175 | |
| 176 | export async function setSelections(ranges: number[][], id: string): Promise<void> { |
| 177 | // Setting selections can only be done on TextEditors not TextDocuments, but |
no test coverage detected