Keep track of all config listeners

This commit is contained in:
Elio Struyf
2022-08-04 21:32:30 +02:00
parent a4da46ca21
commit 9325ce3638
+3 -2
View File
@@ -68,10 +68,11 @@ export class Settings {
workspace.onDidChangeConfiguration(() => {
callback();
});
// Keep track of the listeners
Settings.listeners.push(callback);
if (projectConfig && !existsSync(projectConfig)) {
// Keep track of the listeners
Settings.listeners.push(callback);
// No config file, no need to watch
Settings.createFileCreationWatcher();
return;