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

+1-1
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)