| 818 | } |
| 819 | |
| 820 | QJsonObject documentHighlight(const QString &filePath, const Position &pos) |
| 821 | { |
| 822 | QJsonObject textDocument { |
| 823 | { K_URI, QUrl::fromLocalFile(filePath).toString() } |
| 824 | }; |
| 825 | |
| 826 | QJsonObject position { |
| 827 | { K_CHARACTER, pos.character }, |
| 828 | { K_LINE, pos.line } |
| 829 | }; |
| 830 | |
| 831 | QJsonObject params { |
| 832 | { K_TEXTDOCUMENT, textDocument }, |
| 833 | { K_POSITION, position } |
| 834 | }; |
| 835 | |
| 836 | return params; |
| 837 | } |
| 838 | |
| 839 | //more see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens |
| 840 | QJsonObject documentSemanticTokensFull(const QString &filePath) |
no test coverage detected