MCPcopy Create free account
hub / github.com/SpartanJ/eepp / textDocumentOptions

Function textDocumentOptions

src/tools/ecode/plugins/lsp/lspclientserver.cpp:2533–2539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2531}
2532
2533static json textDocumentOptions( const URI& doc, json opts, TextRange range = TextRange() ) {
2534 auto params = textDocumentParams( doc );
2535 if ( range.isValid() )
2536 params[MEMBER_RANGE] = toJson( range );
2537 params[MEMBER_OPTIONS] = opts;
2538 return params;
2539}
2540
2541LSPClientServer::LSPRequestHandle LSPClientServer::documentFormatting( const URI& document,
2542 const json& options,

Callers 2

documentFormattingMethod · 0.85

Calls 3

textDocumentParamsFunction · 0.85
toJsonFunction · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected