mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-07 01:13:08 +02:00
Initialize listeners
This commit is contained in:
@@ -23,6 +23,8 @@ export class Settings {
|
||||
public static init() {
|
||||
Settings.readConfig();
|
||||
|
||||
Settings.listeners = [];
|
||||
|
||||
if (!Settings.isInitialized) {
|
||||
Settings.isInitialized = true;
|
||||
|
||||
@@ -68,7 +70,7 @@ export class Settings {
|
||||
workspace.onDidChangeConfiguration(() => {
|
||||
callback();
|
||||
});
|
||||
|
||||
|
||||
// Keep track of the listeners
|
||||
Settings.listeners.push(callback);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user