mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-25 17:27:26 +01:00
Refactor cloud agent (#2097)
* refactor cloud session class * pass correct context * throw errors and fix parameter typo * remove stale test * remove debug markdown * reset confirmations commadn * some loose ends * tweaks while rate limited * update test * more accurate * nevermind * add back cli handleConfirmationData * nullptr * restore test * polish * this is the pr uri * polish
This commit is contained in:
@@ -232,9 +232,13 @@ export async function makeSearchGraphQLRequest(
|
||||
first
|
||||
};
|
||||
|
||||
// TODO: Handle rate limiting
|
||||
// result.errors[0]
|
||||
// {type: 'RATE_LIMIT', code: 'graphql_rate_limit', message: 'API rate limit already exceeded for user ID xxxxxxx.'}
|
||||
|
||||
const result = await makeGitHubGraphQLRequest(fetcherService, logService, telemetry, host, query, token, variables);
|
||||
|
||||
return result ? result.data.search.nodes : [];
|
||||
return result.data?.search?.nodes ?? [];
|
||||
}
|
||||
|
||||
export async function getPullRequestFromGlobalId(
|
||||
|
||||
Reference in New Issue
Block a user