Updated SOIL2.

Allow to register space for the upper zone of the UICodeEditor.
ecode: Minor fixes.
This commit is contained in:
Martín Lucas Golini
2022-12-22 01:44:36 -03:00
parent 63ff23cc10
commit 32b6aab371
8 changed files with 84 additions and 10 deletions

View File

@@ -174,7 +174,7 @@ void LSPClientPlugin::load( PluginManager* pluginManager ) {
path = pluginManager->getPluginsPath() + "lspclient.json";
if ( FileSystem::fileExists( path ) ||
FileSystem::fileWrite(
path, "{\n \"config\":{},\n \"keybindings\":{},\n \"formatters\":[]\n}\n" ) ) {
path, "{\n \"config\":{},\n \"keybindings\":{},\n \"servers\":[]\n}\n" ) ) {
mConfigPath = path;
paths.emplace_back( path );
}
@@ -548,4 +548,12 @@ const LSPClientServerManager& LSPClientPlugin::getClientManager() const {
return mClientManager;
}
bool LSPClientPlugin::hasFileConfig() {
return !mConfigPath.empty();
}
std::string LSPClientPlugin::getFileConfigPath() {
return mConfigPath;
}
} // namespace ecode

View File

@@ -66,6 +66,10 @@ class LSPClientPlugin : public UICodeEditorPlugin {
const LSPClientServerManager& getClientManager() const;
bool hasFileConfig();
std::string getFileConfigPath();
protected:
PluginManager* mManager{ nullptr };
std::shared_ptr<ThreadPool> mThreadPool;