tooling: add automatic QMLLS support for new imports and singletons

This commit is contained in:
outfoxxed 2025-07-16 14:35:46 -07:00
parent 4d8055f1cd
commit 986749cdb9
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
7 changed files with 283 additions and 3 deletions

20
src/core/toolsupport.hpp Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include <qdir.h>
#include "scan.hpp"
namespace qs::core {
class QmlToolingSupport {
public:
static bool updateTooling(const QDir& configRoot, QmlScanner& scanner);
private:
static QString getQmllsConfig();
static bool updateQmllsConfig(const QDir& configRoot, bool create);
static void updateToolingFs(QmlScanner& scanner, const QDir& scanDir, const QDir& linkDir);
static inline bool toolingEnabled = false;
};
} // namespace qs::core