ecode: LSP - Added code action support. Fixed issues with rust-analyzer.

This commit is contained in:
Martín Lucas Golini
2023-02-20 20:02:52 -03:00
parent 1862e98dca
commit 3db37b15b2
15 changed files with 426 additions and 159 deletions

View File

@@ -3105,7 +3105,7 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
backward::SignalHandling sh;
#endif
args::ArgumentParser parser( "ecode" );
args::HelpFlag help( parser, "help", "Display this help menu", { 'h', "help" } );
args::HelpFlag help( parser, "help", "Display this help menu", { 'h', '?', "help" } );
args::Positional<std::string> file( parser, "file", "The file or folder path" );
args::ValueFlag<std::string> filePos( parser, "file", "The file or folder path",
{ 'f', "file", "folder" } );
@@ -3138,11 +3138,13 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
{ 'j', "jobs" }, 0 );
args::Flag health( parser, "health", "Checks for potential errors in editor setup.",
{ "health" }, "" );
args::ValueFlag<std::string> healthLang( parser, "health-lang",
"Checks for potential errors in editor setup.",
{ "health-lang" }, "" );
args::ValueFlag<std::string> healthLang(
parser, "health-lang",
"Checks for potential errors in editor setup for a specific language.", { "health-lang" },
"" );
args::MapFlag<std::string, FeaturesHealth::OutputFormat> healthFormat(
parser, "health-format", "Checks for potential errors in editor setup.",
parser, "health-format",
"Sets the health format report (accepted values: terminal, markdown, ascii, asciidoc)",
{ "health-format" }, FeaturesHealth::getMapFlag(),
FeaturesHealth::getDefaultOutputFormat() );