From f96b1b58030ab3140bcea9e4512696c7693d6845 Mon Sep 17 00:00:00 2001 From: "EchoLayer Bot (Stag)" Date: Wed, 13 Mar 2024 18:26:35 +0000 Subject: [PATCH] Removed unhelpful comment and added a descriptive comment explaining the functionality of the code block. --- codex-vscode/src/services/oauth.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codex-vscode/src/services/oauth.service.ts b/codex-vscode/src/services/oauth.service.ts index a1e1e68a..18b7f83a 100644 --- a/codex-vscode/src/services/oauth.service.ts +++ b/codex-vscode/src/services/oauth.service.ts @@ -67,14 +67,16 @@ export class OAuthService implements IOAuthService { }; private parseQuery(uri: vscode.Uri) { + // This method parses the query string of the URI and returns an object + // where each query parameter becomes a key-value pair. return uri.query.split("&").reduce((prev: any, current) => { - // important to split const queryString = current.split("="); prev[queryString[0]] = queryString[1]; return prev; }, {}); } + private clearCodeExchangePromise = (): void => { OAuthService.codeExchangePromise = undefined; };