tooling: add per-shell tooling lock to prevent races

This commit is contained in:
outfoxxed 2025-07-16 17:46:53 -07:00
parent 986749cdb9
commit 78e3874ac6
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
2 changed files with 41 additions and 0 deletions

View file

@ -12,9 +12,11 @@ public:
private:
static QString getQmllsConfig();
static bool lockTooling();
static bool updateQmllsConfig(const QDir& configRoot, bool create);
static void updateToolingFs(QmlScanner& scanner, const QDir& scanDir, const QDir& linkDir);
static inline bool toolingEnabled = false;
static inline QFile* toolingLock = nullptr;
};
} // namespace qs::core