(editor: vscode.TextEditor)
| 188 | } |
| 189 | |
| 190 | public static getInstance(editor: vscode.TextEditor) { |
| 191 | if (!EditorGitBlame.instanceMap.has(editor)) { |
| 192 | EditorGitBlame.instanceMap.set(editor, new EditorGitBlame(editor)); |
| 193 | } |
| 194 | return EditorGitBlame.instanceMap.get(editor)!; |
| 195 | } |
| 196 | |
| 197 | async getBlameRanges(): Promise<BlameRange[]> { |
| 198 | const filePath = this.editor.document?.uri.path; |
no test coverage detected