Experiment with switching markdown extension to use native privates

Let's try this out with one extension to start
This commit is contained in:
Matt Bierner
2026-03-10 23:13:16 -07:00
parent 6597286e32
commit 7df46143a1
43 changed files with 845 additions and 690 deletions

View File

@@ -33,13 +33,13 @@ export function getData<T = {}>(key: string): T {
}
export class SettingsManager {
private _settings: PreviewSettings = getData('data-settings');
#settings: PreviewSettings = getData('data-settings');
public get settings(): PreviewSettings {
return this._settings;
return this.#settings;
}
public updateSettings(newSettings: PreviewSettings) {
this._settings = newSettings;
this.#settings = newSettings;
}
}