pi-fabric 0.65.1 → 0.65.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -351,6 +351,7 @@ function languageFromPath(filePath) {
351
351
  }
352
352
  function configureHighlighting(themePreferenceValue, syntaxEnabled = true) {
353
353
  const preference = themePreferenceValue.trim() || "auto";
354
+ const wasEnabled = enabled;
354
355
  enabled = syntaxEnabled;
355
356
  if (!enabled) {
356
357
  themePreference = preference;
@@ -371,7 +372,7 @@ function configureHighlighting(themePreferenceValue, syntaxEnabled = true) {
371
372
  return;
372
373
  }
373
374
  const themeChanged = syncEffectiveTheme(preference, observedVariant);
374
- if (!themeChanged && (highlighter || initializingTheme)) {
375
+ if (!themeChanged && !wasEnabled && !highlighter && !initializingTheme) {
375
376
  void initHighlighting(currentTheme, syntaxEnabled);
376
377
  }
377
378
  }
@@ -5069,4 +5070,4 @@ export {
5069
5070
  isActiveStatus,
5070
5071
  orderAgentsByCreation
5071
5072
  };
5072
- //# sourceMappingURL=chunk-RGHBZ6D4.js.map
5073
+ //# sourceMappingURL=chunk-IUBTHPXQ.js.map