Skip to content

Commit e6cd998

Browse files
authored
fix: Do not sign out if switch to the same endpoint (LeetCode-OpenSource#337)
1 parent c64d981 commit e6cd998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function switchEndpoint(): Promise<void> {
2626
},
2727
);
2828
const choice: IQuickItemEx<string> | undefined = await vscode.window.showQuickPick(picks);
29-
if (!choice) {
29+
if (!choice || choice.value === getLeetCodeEndpoint()) {
3030
return;
3131
}
3232
const leetCodeConfig: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration("leetcode");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy