This PR introduces the domain for the theme-liquid-docs files.
We're introducing them as a ScopeIndex, so we may rely on it in other use cases than the documentation. Still, this PR also introduces the documentation module to support the language server.
Each kind of scope, in the ScopeIndex, is lazy loaded. Here's some early bench marks:
Considering we're targeting 100ms (as a strict limit) and that the whole index doesn't reach 2MB in memory, I believe we may proceed with this implementation for now. Also, I believe we might warmup the ScopeIndex at the startup of the language server.
--
⚠️ Please, ignore the ScopeIndex#download_files method -- it's a temporary implementation to support the development of this feature.
This PR introduces the domain for the
theme-liquid-docs
files.We're introducing them as a
ScopeIndex
, so we may rely on it in other use cases than the documentation. Still, this PR also introduces the documentation module to support the language server.Each kind of scope, in the
ScopeIndex
, is lazy loaded. Here's some early bench marks:Considering we're targeting
100ms
(as a strict limit) and that the whole index doesn't reach2MB
in memory, I believe we may proceed with this implementation for now. Also, I believe we might warmup theScopeIndex
at the startup of the language server.--
⚠️ Please, ignore the
ScopeIndex#download_files
method -- it's a temporary implementation to support the development of this feature.