summaryrefslogtreecommitdiff
path: root/src/plugins/languageclient/languageclienthoverhandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* LSP: Support remote LSP file pathsDavid Schulz2022-12-151-5/+6
| | | | | Change-Id: If3cf1b8d675ef091427dbcd703c7d14b384a1b3a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Utils: Remove Utils::optionalEike Ziller2022-09-011-5/+5
| | | | | | | | | | Since we are now requiring macOS 10.14 we can remove our local implementation of optional and use std::optional for macOS too. Change-Id: I2bd018261b68da64f7f031a812045dd7784697e1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Remove variant.hMarco Bubke2022-08-231-10/+10
| | | | | | | | | | Since we are now requiring macOS 10.14 we can remove our local copy of std::variant and use for macOS std::variant too. Change-Id: I589d03b35fc56878b7392ffa7047a439e588fe43 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* LanguageClient: allow aborting hover handler on unreachable clientsDavid Schulz2022-07-041-2/+3
| | | | | Change-Id: I1163144de7d37d3e270e31f2bf523ba812a937a5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: pimpl Client and cleanup includesDavid Schulz2022-05-231-0/+1
| | | | | Change-Id: I653861e29baeaddcbcd21a5e738be6bd85514617 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* LanguageClient: Add option to always send hover requestsDavid Schulz2022-05-231-14/+28
| | | | | | | | | Even if we already have a diangostic visible at this location. This is used in the coco server to display additional information inside the coverage browser. Change-Id: I0d75f2e9f469ebdf6df7d6948a8e3e6b0cc58969 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageServerProtocol: remove IContentDavid Schulz2022-05-201-1/+1
| | | | | | | | | | Do not pretend to support multiple message types, while no other messages are actually implemented by us or even known to exist in the wild. Change-Id: I49ee2118b2e10f265ac641c195df8a9e5c97951c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* LSP: fix hover request resultDavid Schulz2022-05-161-8/+12
| | | | | | | | According to the protocol a hover request can also return a Null as a result. Reflect this in the protocol implementation and adapt usages. Change-Id: I14ce71639c64b6de00e9c1198617083c1a3de9eb Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Mimetypes: Make implementation switchable between new and oldEike Ziller2022-02-251-1/+1
| | | | | | | | | | | | | | | | | | - configure with QTC_USE_NEW_MIMEDATABASE to switch to the new one in utils/mimetypes2/ - added utils/mimeutils.h header for the Qt Creator specific static wrappers, that also includes the "public" headers for MimeType et al from the new or old implementation, depending on configuration - change all utils/mimetypes/ includes to utils/mimeutils.h - move the implementation for the wrappers to utils/mimetypes(2)/mimeutils.cpp - also move the MimeDatabase declaration in the "old" implementation back to utils/mimetypes/mimedatabase.h Change-Id: Ie8de229c035d6cd9a5e4739dc0fa78d9c17228e3 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* LanguageClient: avoid optional::valueDavid Schulz2022-02-241-4/+5
| | | | | | | | | Potentially throws std::bad_optional_access. Use operator* and operator-> instead. Change-Id: Idefa137da53f3663ea88961f1105b93402ec4777 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* ClangCodeModel: Provide tooltips via clangdChristian Kandeler2021-06-301-4/+23
| | | | | | | | | | | | Note that we temporarily lose the ability to hover over an include and get the full path of the header file. This is a valuable feature that we need to restore, preferably by fixing clangd itself. Fixing the remaining few test failures would likely require more complicated code as well as additional LSP round-trips, and as of now I'm not convinced it is worth the effort. Change-Id: I08c72c4bd1268bbd67baeb57bbfd29d9b11303a5 Reviewed-by: David Schulz <david.schulz@qt.io>
* LanguageClient: correctly track current hover requestDavid Schulz2021-06-071-0/+1
| | | | | Change-Id: I6c5b90aa8c3fd7611e48c0cd676dc1c1f9b9e562 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Merge remote-tracking branch 'origin/4.15'Eike Ziller2021-04-091-1/+2
|\ | | | | | | Change-Id: I0afcf51d354ffd73a8f2956a7f78b1e4f032677b
| * LanguageClient: Do not send hover requests to unreachable serverDavid Schulz2021-04-071-1/+2
| | | | | | | | | | Change-Id: Icb4d3516a12b9475967de5ff5dcbf45cf5986195 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | LSP: reduce error handling complexityDavid Schulz2021-03-021-1/+1
|/ | | | | | | | | | | | | | Instead of checking recursively every possible object just check the required keys for an object and validate it on construction or assignment from json. This will reduce the implementation effort for protocol extensions and also reduce the false positives we might get if the protocol gets updated. Change-Id: I3df24e62430d2c7575d26c1581e6a9606e7da4c1 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LSP: support WorkDoneProgressOptions in server capabilitiesDavid Schulz2021-02-151-1/+5
| | | | | | | | These options indicate whether a server provides extra messages to track the status of specific requests. Change-Id: I3fb78f7fa7144a5a9418b32cb5b33d55b668c484 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: support versioned diagnosticsDavid Schulz2021-02-121-1/+1
| | | | | Change-Id: Id182431f371201c7266fe0683e78fe56a8a9735b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: fix dynamic registered hover providerDavid Schulz2021-01-251-3/+1
| | | | | Change-Id: I48580b84c310c69ff72fba743260806bd236752f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LSP: Explicify APIDavid Schulz2020-07-151-2/+1
| | | | | Change-Id: Id208a420fd3e1e23d3279c4f1f19bdbed994a8d3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LSP: remove qt version check for markdownDavid Schulz2020-07-101-16/+4
| | | | | Change-Id: I54da2acf5e3542355064b916582f3507b6bc5356 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* LSP: show tooltips for diagnosticsDavid Schulz2020-05-041-1/+10
| | | | | | Change-Id: I9625c77f87c31d3287ab17de42a507a8b068e118 Reviewed-by: Alexis Murzeau <amubtdx@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: Support markdown tool tips with Qt 5.14Eike Ziller2019-11-191-0/+4
| | | | | | | | Use Qt::MarkdownText if language server returns markdown and it was built against Qt 5.14. Change-Id: I75787cfcb32480cb37bc0dadc4be12d005005099 Reviewed-by: David Schulz <david.schulz@qt.io>
* LanguageClient: Show markdown tool tips as plain textEike Ziller2019-10-251-3/+6
| | | | | | | | | We tell the language server that we do not support markdown, but some (haskell-ide-engine) ignore that. Show the text as plain text. Change-Id: I1a61346b497cc04dce6c0da4221e949a16c61acf Reviewed-by: David Schulz <david.schulz@qt.io>
* LanguageClient: Remove unnecessary function re-implementationEike Ziller2019-10-251-8/+0
| | | | | Change-Id: I44862986a5ecc808b834d7c6d76191cbd9fd07a6 Reviewed-by: David Schulz <david.schulz@qt.io>
* LanguageClient: more FileName to FilePath renamingDavid Schulz2019-09-171-1/+1
| | | | | | Change-Id: I803211d462b442b6881a02e870d2cd816675e0d9 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: add hover handlerDavid Schulz2019-05-171-0/+148
Change-Id: Iddf30828ef26a157ab935d0abe708087ab123dd6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>