From f81f4124b456c226c27f41cd8d2944b41292b05c Mon Sep 17 00:00:00 2001 From: David Poeschl Date: Sun, 5 Nov 2023 17:57:18 -0800 Subject: [PATCH] Bugfix: Run the selected problem's code when teams Test in VSCode (#6) It was previously always picking the first problem from the list (with a non-zero id). --- extension/bwcontest/src/problemPanel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/bwcontest/src/problemPanel.ts b/extension/bwcontest/src/problemPanel.ts index ede9f28..56d532e 100644 --- a/extension/bwcontest/src/problemPanel.ts +++ b/extension/bwcontest/src/problemPanel.ts @@ -143,7 +143,7 @@ export class BWPanel { vscode.window.showErrorMessage('Already Running'); return; } - const problem = this.problemData.find((p) => (p.id = problemId)); + const problem = this.problemData.find((p) => (p.id === problemId)); if (problem === undefined) { return; }