eepp: Fixes for UICodeEditor setScroll (again)

ecode: Minor fix in text document range formatting.
This commit is contained in:
Martín Lucas Golini
2023-07-07 19:15:52 -03:00
parent 2a069ad747
commit dbfedc5b58
3 changed files with 19 additions and 11 deletions

View File

@@ -2048,7 +2048,7 @@ LSPClientServer::documentFormatting( const URI& document, const json& options,
LSPClientServer::LSPRequestHandle
LSPClientServer::documentRangeFormatting( const URI& document, const TextRange& range,
const json& options, const JsonReplyHandler& h ) {
auto params = textDocumentOptions( document, options, range );
auto params = textDocumentOptions( document, options, range.normalized() );
return send( newRequest( "textDocument/rangeFormatting", params ), h );
}