Reduce LSP dependencies
Closed this issue · 2 comments
narnaud commented
-
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
- We could reduce the enum to what is supported, see
narnaud commented
- 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