mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Updated SOIL2.
Allow to register space for the upper zone of the UICodeEditor. ecode: Minor fixes.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user