ecode: More minor improvements to the LSP plugin. Added rustfmt formatter, and added rust-analyzer LSP. Fixed plugins exit.

This commit is contained in:
Martín Lucas Golini
2022-11-06 03:13:27 -03:00
parent 4fb79c2771
commit eded28f70b
10 changed files with 63 additions and 53 deletions

View File

@@ -170,10 +170,6 @@ bool AutoCompletePlugin::onKeyDown( UICodeEditor* editor, const KeyEvent& event
return false;
}
bool AutoCompletePlugin::onKeyUp( UICodeEditor*, const KeyEvent& ) {
return false;
}
bool AutoCompletePlugin::onTextInput( UICodeEditor* editor, const TextInputEvent& ) {
std::string partialSymbol( getPartialSymbol( &editor->getDocument() ) );
if ( partialSymbol.size() >= 3 ) {
@@ -252,9 +248,6 @@ void AutoCompletePlugin::update( UICodeEditor* ) {
}
}
void AutoCompletePlugin::preDraw( UICodeEditor*, const Vector2f&, const Float&,
const TextPosition& ) {}
void AutoCompletePlugin::postDraw( UICodeEditor* editor, const Vector2f& startScroll,
const Float& lineHeight, const TextPosition& cursor ) {
std::vector<std::string> suggestions;