KDAB/knut

Reduce LSP dependencies

Closed this issue · 2 comments

  • Extract the LSP helpers in their own file (they could be made free methods, no need for a class):

    • TextLocation::fromLsp
    • CodeDocument::toPos
    • CodeDocument::fromPos
    • CodeDocument::toRange
    • CodeDocument::toUri
  • Remove Lsp dependencies in Symbol

    • We could reduce the enum to what is supported, see TreeSitterHelper
  • Put that in a lsp_utils file in namespace Core::Utils.
  • Move the Lsp::Utils::removeTypeAliasInformation method here
  • Move the Lsp::Utils::toDocumentUri method as a static method into client.cpp
  • Remove lsp_utils from the lib Lsp

Closed by #84