Debian Codegraph @

LanguageServer/LSPDetector.cpp

raw
1 #include "LSPDetector.hpp"
2
3 LSPDetector::LSPDetector(const wxString& name)
4 : m_name(name)
5 {
6 }
7
8 LSPDetector::~LSPDetector() {}
9
10 void LSPDetector::GetLanguageServerEntry(LanguageServerEntry& entry)
11 {
12 entry.SetLanguages(GetLangugaes());
13 entry.SetCommand(GetCommand());
14 entry.SetEnabled(IsEnabled());
15 entry.SetDisaplayDiagnostics(true);
16 entry.SetConnectionString(GetConnectionString());
17 entry.SetPriority(GetPriority());
18 entry.SetName(GetName());
19 }
20
21 bool LSPDetector::Locate()
22 {
23 DoClear();
24 return DoLocate();
25 }
26
27 void LSPDetector::DoClear()
28 {
29 m_command.Clear();
30 m_langugaes.Clear();
31 m_connectionString.Clear();
32 m_priority = 50;
33 }