Skip to content

perf(theme): incremental theme registry rescan (#425) - #443

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/425-incremental-theme-scan
Jul 27, 2026
Merged

perf(theme): incremental theme registry rescan (#425)#443
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/425-incremental-theme-scan

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Definition scan caches by path + mtime; unchanged files are not re-read/hashed.
  • Builtin asset definitions cached after first scan.
  • loadThemeDefinitions(reloadExtensions:) — theme-only watcher modify events skip LocalExtensionRegistry.reload(); create/delete/move still reload.

Closes #425

Test plan

  • flutter test test/core/theme/theme_registry_cache_test.dart test/core/theme/theme_folder_watcher_test.dart test/core/theme/theme_controller_test.dart
  • Edit a theme JSON on disk; picker refreshes without full stall

Skip unchanged theme file reads on refresh; cache builtins; theme-only
watcher modify events avoid full extension registry reload.

Closes #425
@github-actions github-actions Bot added theme Theming, colors, VS Code themes filesystem Theme parser epic label: filesystem performance Theme parser epic label: performance labels Jul 27, 2026
@github-actions github-actions Bot added this to the Theme system milestone Jul 27, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 16d9298 into dev Jul 27, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/425-incremental-theme-scan branch July 27, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

filesystem Theme parser epic label: filesystem performance Theme parser epic label: performance theme Theming, colors, VS Code themes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant