redhat-developer / vscode-redhat-telemetry

21 stars 25 forks source link

Prevent initialisation errors on Linux #35

Closed niknetniko closed 10 months ago

niknetniko commented 1 year ago

The function 'getPlatform' is used before its definition. At that point, the global variable 'linuxes' is not yet initialised, resulting in errors like:

image

By moving all exports to the bottom, this problem should be fixed.

This is the cause of https://github.com/redhat-developer/vscode-yaml/issues/929.

fbricon commented 10 months ago

Thanks @niknetniko! sorry for the late merge, I missed this one during my PTO