Skip to content

Fix hls-class-plugin on ghc-9.2#2733

Merged
mergify[bot] merged 19 commits into
haskell:masterfrom
July541:class-9.2
Mar 6, 2022
Merged

Fix hls-class-plugin on ghc-9.2#2733
mergify[bot] merged 19 commits into
haskell:masterfrom
July541:class-9.2

Conversation

@July541

@July541 July541 commented Feb 22, 2022

Copy link
Copy Markdown
Collaborator

Let me play with ghc-9.x :)

  • Fix codeAction
  • Fix edit command

( (Map.keys . Map.filter isClassNodeIdentifier . sourcedNodeIdents . sourcedNodeInfo)
<=< nodeChildren
)
$ pointCommand hf (fromJust (fromCurrentRange pmap range) ^. J.start & J.character +~ 1)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

In fact, this +1 is from a coincidental attempt.

@July541
July541 marked this pull request as draft February 22, 2022 15:04
@pepeiborra

Copy link
Copy Markdown
Collaborator

Is this ready for review?

@July541

July541 commented Feb 26, 2022

Copy link
Copy Markdown
Collaborator Author

Is this ready for review?

Not yet.

Ready now!

@July541
July541 marked this pull request as ready for review February 27, 2022 14:23
Comment thread plugins/hls-class-plugin/src/Ide/Plugin/Class.hs Outdated
Comment on lines +110 to +119
addWhere (InstD xInstD (ClsInstD ext decl@ClsInstDecl{..})) =
let ((EpAnn entry anns comments), key) = cid_ext
in InstD xInstD (ClsInstD ext decl {
cid_ext = (EpAnn
entry
(AddEpAnn AnnWhere (EpaDelta (SameLine 1) []) : anns)
comments
, key)
})
addWhere decl = decl

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you add a brief comment explaining what this code does? It's kinda hard to read and therefore maintain

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Explained the effect of the function and the trace of the parameter.

Comment thread plugins/hls-class-plugin/test/Main.hs Outdated
Comment thread plugins/hls-class-plugin/src/Ide/Plugin/Class.hs Outdated
@July541

July541 commented Mar 4, 2022

Copy link
Copy Markdown
Collaborator Author

ghc9.0 installation failed, can anyone please restart that?

@July541

July541 commented Mar 6, 2022

Copy link
Copy Markdown
Collaborator Author

hls-rename-plugin failed unexpectedly

@July541

July541 commented Mar 6, 2022

Copy link
Copy Markdown
Collaborator Author

hls-rename-plugin failed unexpectedly

Once more:(
Do I miss something?

@Ailrun Ailrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM :)

@Ailrun Ailrun added the merge me Label to trigger pull request merge label Mar 6, 2022
@mergify
mergify Bot merged commit e29f61f into haskell:master Mar 6, 2022
@July541
July541 deleted the class-9.2 branch March 11, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge me Label to trigger pull request merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants