-
Notifications
You must be signed in to change notification settings - Fork 205
Conversation
91326a2
to
0fb0bdd
Compare
0fb0bdd
to
bafdc10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far looks good. Will check this out locally soon and give it a spin!
ab5e0d9
to
d18c006
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should use the typeMap
in order to find the type of the variable rather than using syb.
6d9dff9
to
2d13993
Compare
Looks ok to me now after @bubba's changes are taken into account. |
b5acfa0
to
2d13993
Compare
Do you need help adding the functional tests? |
I just thought, that I would have to add them to lsp-test itself. |
Woops I forgot to bump and release lsp-test with the new typedef PR. I will get round to doing that soon! In the meantime it’s ok to use the submodule |
Did not manage to use the lsp-test version that is patched for this pr. |
Works for variables, not for explicit constructors. However, for explicit constructors, findDef works. Implement tests for `data`, `newtype` and `type`. For type defs, the original type definition will be found. May be improved. If the data type definition is not in scope, empty result will be sent. Also add new dependency, hopefully this can be removed again
Also add documentation and extract functions
Undo changes that are not related to this feature
47f26f3
to
7b58d49
Compare
If the tests are green, this is ready to merge. |
07f0e14
to
610178b
Compare
610178b
to
625c61c
Compare
.gitmodules
Outdated
@@ -37,3 +37,7 @@ | |||
url = https://github.com/ennocramer/floskell | |||
# url = https://github.com/alanz/floskell | |||
|
|||
[submodule "submodules/lsp-test"] | |||
path = submodules/lsp-test | |||
url = https://github.com/bubba/lsp-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, that slipped through, thank you!
Thanks! This is great. Another step towards full support for the protocol |
👏 |
Closes #1010
Missing:
, see #31Works for variables and sum type values.
Implement tests for
data
,newtype
andtype
.For type defs, the original type definition will be found.
If the data type definition is not in scope, empty result will be sent.