Skip to content

Commit

Permalink
Fixed issue with Wokwi templates not generated on first run. Reported…
Browse files Browse the repository at this point in the history
… by Uri Shaked in wokwi/wokwi-features#274.
  • Loading branch information
slav-at-attachix committed Dec 19, 2023
1 parent 1ba2c2d commit b7aa43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/ide/vscode/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def update_wokwi():
template = load_template('wokwi/extensions.json', appPath)
if extensions is None:
extensions = template.copy()
save_json(extensions, filename)
return
if not extensions.get("recommendations"):
extensions["recommendations"] = []
extensions["recommendations"] = extensions["recommendations"] + list(set(template["recommendations"]) - set(extensions["recommendations"]))
save_json(extensions, filename)

Expand Down

0 comments on commit b7aa43e

Please sign in to comment.