mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-17 20:44:32 -04:00
refactor: Reduce dependency on TextDocument in ContextManager (#128)
This commit is contained in:
committed by
GitHub
parent
c724bace06
commit
3d770f91c7
@ -23,6 +23,7 @@
|
||||
#include <QString>
|
||||
|
||||
#include "ContentFile.hpp"
|
||||
#include "IDocumentReader.hpp"
|
||||
#include "ProgrammingLanguage.hpp"
|
||||
#include "settings/GeneralSettings.hpp"
|
||||
|
||||
@ -37,9 +38,9 @@ public:
|
||||
QString readFile(const QString &filePath) const;
|
||||
QList<ContentFile> getContentFiles(const QStringList &filePaths) const;
|
||||
|
||||
static ProgrammingLanguage getDocumentLanguage(const QJsonObject &request);
|
||||
static ProgrammingLanguage getDocumentLanguage(const DocumentInfo &documentInfo);
|
||||
static bool isSpecifyCompletion(
|
||||
const QJsonObject &request, const Settings::GeneralSettings &generalSettings);
|
||||
const DocumentInfo &documentInfo, const Settings::GeneralSettings &generalSettings);
|
||||
|
||||
private:
|
||||
explicit ContextManager(QObject *parent = nullptr);
|
||||
|
Reference in New Issue
Block a user