-
Notifications
You must be signed in to change notification settings - Fork 97
Remove language extension completions. #948
Remove language extension completions. #948
Conversation
Did you port the tests too? |
I reviewed the existing tests in HLS. I think they provide similar coverage consistent with the tests I removed. Here are the tests I looked at |
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.
Thank you @gdevanla !
I'm not convinced that the tests in HLS provide the same coverage. In particular, they do not check that completions for specific language pragmas are generated. |
Um. I am sorry I don't understand. I did not remove any completion test. I just added a test to make sure we don't provide any pragma related completions from ghcide. Perhaps, you are referring to 'CodeActions'? If yes, I see the HLS tests are checking for specific pragmas, though they are not the same pragmas ghcide tests are covering. I assume, we would not need tests for all kinds of pragmas. Please could you clarify and I can address them. |
You are right, I didn't look closely enough at those tests and thought they were checking for completions, but they are not. Please fix the conflicts and this is ready to merge. |
f90bb6a
to
60d1a31
Compare
The ghcide merge includes haskell/ghcide#948 which removes the language extension code actions This makes the associated func-test fail, because the HLS plugin does not pass the test (only the ghcide code action did). This is because the HLS plugin uses commands, and the tests do not wait for the command edit to be applied. The fix is to change the HLS plugin to return a code action with edits and no commands
The ghcide merge includes haskell/ghcide#948 which removes the language extension code actions This makes the associated func-test fail, because the HLS plugin does not pass the test (only the ghcide code action did). This is because the HLS plugin uses commands, and the tests do not wait for the command edit to be applied. The fix is to change the HLS plugin to return a code action with edits and no commands
* Remove language extension completions. * Remove code actions for language pragma extensions. * Remove unused defintions and imports * Remove test defintion use * Update comment describing why we return an empty list
The ghcide merge includes haskell/ghcide#948 which removes the language extension code actions This makes the associated func-test fail, because the HLS plugin does not pass the test (only the ghcide code action did). This is because the HLS plugin uses commands, and the tests do not wait for the command edit to be applied. The fix is to change the HLS plugin to return a code action with edits and no commands
* Remove language extension completions. * Remove code actions for language pragma extensions. * Remove unused defintions and imports * Remove test defintion use * Update comment describing why we return an empty list
The ghcide merge includes haskell/ghcide#948 which removes the language extension code actions This makes the associated func-test fail, because the HLS plugin does not pass the test (only the ghcide code action did). This is because the HLS plugin uses commands, and the tests do not wait for the command edit to be applied. The fix is to change the HLS plugin to return a code action with edits and no commands
* Remove language extension completions. * Remove code actions for language pragma extensions. * Remove unused defintions and imports * Remove test defintion use * Update comment describing why we return an empty list
The ghcide merge includes haskell/ghcide#948 which removes the language extension code actions This makes the associated func-test fail, because the HLS plugin does not pass the test (only the ghcide code action did). This is because the HLS plugin uses commands, and the tests do not wait for the command edit to be applied. The fix is to change the HLS plugin to return a code action with edits and no commands
This PR removes Completions and CodeActions from ghcide thus de-duping the same functionality they is currently available in HLS through the Pragmas plugin module here
Also addresses (haskell/haskell-language-server#380)