You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 36034ee
Browse filesBrowse the repository at this point in the historyBrowse files
enhance: share TextMate registry across editors to reduce memory usage (#2396)
Each text editor previously created its own `RegistryOptionsWrapper` with
an independent grammar cache, causing redundant TextMate grammar loading
when viewing files of the same type in different editors. Over long sessions
this accumulated hundreds of megabytes of duplicated grammar data in the
managed heap.
- Make `RegistryOptionsWrapper` a lazy singleton per theme (dark/light)
so all editors share one grammar cache.
- Move `LastScope` tracking from the shared wrapper to a per-editor
`ref string` parameter to avoid cross-editor state conflicts.
- Add `DisposeInstallation` helper for consistent cleanup.
0 commit comments