in vscode/qodana/src/core/git.ts [18:34]
export function getRemoteOrigin(): string | undefined {
const git = getGitRepository();
if (!git) {
return;
}
const remotes = git.state.remotes;
if (!remotes || remotes.length === 0) {
vscode.window.showErrorMessage(GIT_REMOTE_NOT_FOUND);
return;
}
const origin = remotes[0].fetchUrl;
if (!origin) {
vscode.window.showErrorMessage(GIT_ORIGIN_NOT_FOUND);
return;
}
return origin;
}