MCPcopy Create free account
hub / github.com/LOLINTERNETZ/vscodeoffline / latest_versions

Method latest_versions

vscoffline/sync.py:338–357  ·  view source on GitHub ↗
(insider=False)

Source from the content-addressed store, hash-verified

336
337 @staticmethod
338 def latest_versions(insider=False):
339 versions = {}
340 for platform in vsc.PLATFORMS:
341 for architecture in vsc.ARCHITECTURES:
342 for buildtype in vsc.BUILDTYPES:
343 for quality in vsc.QUALITIES:
344 if quality == 'insider' and not insider:
345 continue
346 if platform == 'win32' and architecture == 'ia32':
347 continue
348 if platform == 'darwin' and (architecture != '' or buildtype != ''):
349 continue
350 if 'linux' in platform and (architecture == '' or buildtype != ''):
351 continue
352 ver = VSCUpdateDefinition(
353 platform, architecture, buildtype, quality)
354 ver.check_for_update()
355 log.info(ver)
356 versions[f'{ver.identity}-{ver.quality}'] = ver
357 return versions
358
359 @staticmethod
360 def signal_updated(artifactdir):

Callers 1

sync.pyFile · 0.80

Calls 2

check_for_updateMethod · 0.95
VSCUpdateDefinitionClass · 0.85

Tested by

no test coverage detected