The process of refreshing the theme-liquid-docs must follow something like these phases:
Check if the current schema is outdated and if this check has been already run today
Part of this effort is creating a module to identify if the files are outdated
Initial proposal: rely on the latest commit SHA (if we follow this approach, we need to include a SHA at the release phase)
Download the schema in a temporary directory (asynchronously at the language server startup)
Part of this effort is identifying the best approach for downloading it
Initial proposal: we shouldn't depend on Git, we may rely Git to download theme-liquid-docs and just "fail" gracefully/silently with users that don't have Git (those users will always rely on the bundled version introduced by https://github.com/Shopify/theme-check/issues/650)
The process of refreshing the
theme-liquid-docs
must follow something like these phases:Check if the current schema is outdated and if this check has been already run today
Download the schema in a temporary directory (asynchronously at the language server startup)
theme-liquid-docs
and just "fail" gracefully/silently with users that don't have Git (those users will always rely on the bundled version introduced by https://github.com/Shopify/theme-check/issues/650)Update the
theme-liquid-docs
files in the /data/shopify_liquid/documentation/ directoryReload the
SourceIndex