awaitthis._credentialStore.recreate(vscode.l10n.t('Your authentication session has lost authorization. You need to sign in again to regain authorization.'));
rsp=awaitgql.query<T>(query);
}else{
if(e.graphQLErrors&&e.graphQLErrors.length&&e.graphQLErrors[0].message==='Resource not accessible by integration'){
Logger.debug(`Fetch all pull requests - done`,this.id);
return{
items: pullRequests,
hasMorePages
};
}catch(e){
Logger.error(`Fetching all pull requests failed: ${e}`,this.id);
if(e.status===404){
// not found
vscode.window.showWarningMessage(
`Fetching all pull requests for remote '${remote?.remoteName}' failed, please check if the repository ${remote?.owner}/${remote?.repositoryName} is valid.`,
`Fetching pull request numbers for remote '${remote?.remoteName}' failed, please check if the repository ${remote?.owner}/${remote?.repositoryName} is valid.`,
Logger.error(`Fetching pull request for branch failed: ${e}`,this.id);
if(e.status===404){
// not found
vscode.window.showWarningMessage(
`Fetching pull request for branch for remote '${remote?.remoteName}' failed, please check if the repository ${remote?.owner}/${remote?.repositoryName} is valid.`,