More work on the Spell-Checker (SpartanJ/ecode#515).

Spell-Checked a lot of code.
This commit is contained in:
Martín Lucas Golini
2025-08-21 01:43:42 -03:00
parent afdd219935
commit 4b4a5f3491
119 changed files with 606 additions and 497 deletions

View File

@@ -1328,11 +1328,14 @@ void LSPClientPlugin::codeAction( UICodeEditor* editor ) {
if ( resp.isResponse() )
diagnostics = std::move( resp.getResponse().data );
mClientManager.codeAction(
bool sent = mClientManager.codeAction(
editor->getDocumentRef(), diagnostics,
[this, editor]( const LSPClientServer::IdType&, const std::vector<LSPCodeAction>& res ) {
createCodeActionsView( editor, res );
} );
if ( !sent )
editor->getDocument().execute( "spellchecker-fix-typo", editor );
}
void LSPClientPlugin::renameSymbol( UICodeEditor* editor ) {