Skip to content

Commit

Permalink
Remove duplicate processes from set log levels UI
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Jan 4, 2024
1 parent 17ddbfb commit 39bad4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vscode-extensions/vscode-spring-boot/lib/set-log-levels-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ async function setLogLevelHandler() {
const slash = p.action.lastIndexOf('/');
if (slash>=0) {
const choiceLabel = p.label;
choiceMap.set(choiceLabel, p);
choices.push(choiceLabel);
if (!choiceMap.has(choiceLabel)) {
choiceMap.set(choiceLabel, p);
choices.push(choiceLabel);
}
}
});
if (choices) {
Expand Down

0 comments on commit 39bad4f

Please sign in to comment.