Refactor selection range plugin #2996
Labels
component: hls-code-range-plugin
for code range related functionalities, such as selection range and folding range
type: enhancement
New feature or request
Previously,
hls-selection-range-plugin
convertsHieAST a
(from ghc) to[SelectionRange]
(from lsp). This design is very tight-coupled.I'm planning to:
CodeRange = CodeRange RealSrcSpan [CodeRange]
CodeRange
fromHieAST a
and comments (put this step inRules
)[SelectionRange]
fromCodeRange
(put this step in selection range lsp method handler)I'll probably finish this in no more than two weeks. Then, "folding range" will simply become a use case of
CodeRange
. Adding it should be easier.@sloorush Hope this will help your GSOC project (I'm assuming you have the same username on IRC and GitHub. Sorry if it's not the case). If you have any questions or advice, feel free to discuss them here or on the IRC channel.
The text was updated successfully, but these errors were encountered: