Skip to content

Commit 2689176

Browse files
authored
Merge pull request #82 from SpeedyH30/main
2 parents 25b8846 + fceed16 commit 2689176

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

vscoffline/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def get_recommendations_old(self, destination):
405405
if result.status_code != 200:
406406
log.warning(
407407
f"get_recommendations failed accessing url {vsc.URL_RECOMMENDATIONS}, unhandled status code {result.status_code}")
408-
return False
408+
return {} # Return an empty dictionary instead of False
409409

410410
jresult = result.json()
411411
with open(os.path.join(destination, 'recommendations.json'), 'w') as outfile:

vscoffline/vsc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
from typing import Any, Dict, List, Union
88
import logging as log
99

10-
PLATFORMS = ["win32", "linux", "linux-deb", "linux-rpm", "darwin", "linux-snap", "server-linux", "server-linux-legacy", "cli-alpine"]
11-
ARCHITECTURES = ["", "x64"]
12-
BUILDTYPES = ["", "archive", "user"]
10+
PLATFORMS = ["win32", "linux", "linux-deb", "linux-rpm", "darwin", "darwin-arm64", "darwin-universal", "linux-snap", "server-linux", "cli-alpine", "server-darwin"]
11+
ARCHITECTURES = ["", "x64", "arm64", "armhf", "alpine"]
12+
BUILDTYPES = ["", "archive", "user", "web"]
1313
QUALITIES = ["stable", "insider"]
1414

1515
URL_BINUPDATES = r"https://update.code.visualstudio.com/api/update/"

0 commit comments

Comments
 (0)