MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / rangeFormatting

Method rangeFormatting

src/common/lsp/client/client.cpp:457–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457void Client::rangeFormatting(const QString &filePath, const DocumentRangeFormattingParams &params)
458{
459 qInfo() << QString::fromStdString(toJsonValueStr(params));
460 d->callMethod(lsp::V_TEXTDOCUMENT_RANGEFORMATTING,
461 QJsonDocument::fromJson(
462 QByteArray::fromStdString(toJsonValueStr(params)))
463 .object(),
464 filePath);
465}
466
467void Client::onTypeFormatting(const DocumentOnTypeFormattingParams &params)
468{

Callers 1

formatSelectionsMethod · 0.80

Calls 3

callMethodMethod · 0.80
toJsonValueStrFunction · 0.50
objectMethod · 0.45

Tested by

no test coverage detected