Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Quickfix action to prefix unused terms with '_' #889

Merged
merged 1 commit into from
Oct 23, 2018
Merged

Quickfix action to prefix unused terms with '_' #889

merged 1 commit into from
Oct 23, 2018

Conversation

meck
Copy link
Contributor

@meck meck commented Oct 20, 2018

This resolves #843

@lorenzo
Copy link
Collaborator

lorenzo commented Oct 20, 2018

Can you please add a test for this?

@meck
Copy link
Contributor Author

meck commented Oct 20, 2018

Of course!

@lukel97
Copy link
Collaborator

lukel97 commented Oct 21, 2018

@alanz @lorenzo should we turn on Haskell CI's CircleCI for PRs? I think it may currently only be running on our own individual accounts

@lorenzo
Copy link
Collaborator

lorenzo commented Oct 22, 2018

I thought it was already on!

@meck
Copy link
Contributor Author

meck commented Oct 22, 2018

Might be set to run PRs only after they are accepted?

@meck
Copy link
Contributor Author

meck commented Oct 23, 2018

The circle ci issue was on my part. I had tinkered with it on my fork. And apparently if you watch a fork it dosen't build for PRs to upstream.

Copy link
Collaborator

@lorenzo lorenzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me

cmdArgs = LSP.List
[ Object $ HM.fromList [("file", toJSON docUri),("pos", toJSON pos), ("text", toJSON newTerm)]]
-- The command label isen't used since the command is never presented to the user
cmd = LSP.Command "Unused command label" "hare:rename" (Just cmdArgs)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love being able to do hare:rename as a command.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! I started by importing hare, then thought wait a minute...

@alanz alanz merged commit 6d12938 into haskell:master Oct 23, 2018
@meck meck deleted the actionUnusedTerm branch October 23, 2018 20:49
@alanz alanz added this to the prehistory milestone Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add quickfix for unused variable warning
4 participants