(range: Range, activePos: Position)
| 52 | }; |
| 53 | |
| 54 | export const getBeforeCursorPos = (range: Range, activePos: Position) => { |
| 55 | // whichever side of the range isn't active is the before position |
| 56 | if ( |
| 57 | range.start.line === activePos.line && |
| 58 | range.start.character === activePos.character |
| 59 | ) { |
| 60 | return range.end as Position; |
| 61 | } else { |
| 62 | return range.start as Position; |
| 63 | } |
| 64 | }; |
| 65 | |
| 66 | const getWorkspaceDirUri = async (event: vscode.TextDocumentChangeEvent) => { |
| 67 | const workspaceFolder = vscode.workspace.getWorkspaceFolder( |
no outgoing calls
no test coverage detected