MCPcopy
hub / github.com/conwnet/github1s / getInstance

Method getInstance

extensions/github1s/src/commands/blame.ts:190–195  ·  view source on GitHub ↗
(editor: vscode.TextEditor)

Source from the content-addressed store, hash-verified

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;

Callers 15

loadMoreRefPickerItemsFunction · 0.45
getBlameRangesMethod · 0.45
getConcreteFileUriFunction · 0.45
commandSwitchToCommitFunction · 0.45
getCommitChangedFilesFunction · 0.45

Calls 1

setMethod · 0.80

Tested by

no test coverage detected