8000 fix: Do not sign out if switch to the same endpoint (#337) · penggu/vscode-leetcode@e6cd998 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0