mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
tooling: add automatic QMLLS support for new imports and singletons
This commit is contained in:
parent
4d8055f1cd
commit
986749cdb9
7 changed files with 283 additions and 3 deletions
20
src/core/toolsupport.hpp
Normal file
20
src/core/toolsupport.hpp
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue