diff --git a/src/commands/plugin.ts b/src/commands/plugin.ts index 3e3b5bf0..481bd6dd 100644 --- a/src/commands/plugin.ts +++ b/src/commands/plugin.ts @@ -26,7 +26,7 @@ export async function switchEndpoint(): Promise { }, ); const choice: IQuickItemEx | undefined = await vscode.window.showQuickPick(picks); - if (!choice) { + if (!choice || choice.value === getLeetCodeEndpoint()) { return; } const leetCodeConfig: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration("leetcode");