Shopify / theme-tools

Everything developer experience for Shopify themes
https://shopify.dev/docs/themes
MIT License
80 stars 24 forks source link

Gate the "preload" functionality behind `themeCheck.preloadOnBoot` initialization option #589

Closed charlespwd closed 1 week ago

charlespwd commented 1 week ago

What are you adding in this PR?

We probably don't want to preload all the files just yet.

We can now start the CodeMirrorLanguageClient with the following to disable full theme preload on theme file open.

const client = new CodeMirrorLanguageClient(worker, {
  initializationOptions: {
    'themeCheck.preloadOnBoot': false,
  }
});

Before you deploy