mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Fix next signature help position. Fix signature help and suggestions styles for light color schemes, and some minor improvements for other schemes. Allow to set extra trigger characters for signature help in LSP configurations (fix zig zls not updating signature position after a "," input). Plus some other minor fixes.
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#ifndef ECODE_LSPDEFINITION_HPP
|
|
#define ECODE_LSPDEFINITION_HPP
|
|
#include <eepp/core/string.hpp>
|
|
#include <eepp/system/sys.hpp>
|
|
#include <nlohmann/json.hpp>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
using namespace EE;
|
|
using namespace EE::System;
|
|
|
|
namespace ecode {
|
|
|
|
struct LSPDefinition {
|
|
std::string language;
|
|
std::string name;
|
|
std::vector<std::string> filePatterns;
|
|
std::unordered_map<std::string, std::string> cmdVars;
|
|
std::string command;
|
|
std::string commandParameters;
|
|
std::vector<std::string> rootIndicationFileNames;
|
|
std::string url;
|
|
std::string host;
|
|
std::unordered_map<std::string, std::string> env;
|
|
/* filePattern, languageId */
|
|
std::unordered_map<std::string, std::string> languageIdsForFilePatterns;
|
|
int port{ 0 };
|
|
nlohmann::json initializationOptions;
|
|
|
|
std::string usesLSP;
|
|
bool shareProcessWithOtherDefinition{ false };
|
|
bool disabled{ false };
|
|
std::vector<std::string> extraTriggerChars;
|
|
|
|
bool commandAvailable() const {
|
|
auto cmdp( String::split( command, ' ' ) );
|
|
return !cmdp.empty() && !Sys::which( cmdp[0] ).empty();
|
|
}
|
|
};
|
|
|
|
} // namespace ecode
|
|
|
|
#endif // ECODE_LSPDEFINITION_HPP
|