Skip to content

Commit b547d4e

Browse files
July541pepeiborramichaelpj
authored
Fix broken call-hierarchy-plugin-tests for type signatures (#3188)
* Fix broken tests for signatures * Remove unused Maybe * Refactir prepare * Refactor incoming and outgoing calls * Fix doc format Co-authored-by: Pepe Iborra <pepeiborra@gmail.com> Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
1 parent 42bcf92 commit b547d4e

File tree

6 files changed

+207
-227
lines changed

6 files changed

+207
-227
lines changed

plugins/hls-call-hierarchy-plugin/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Enabled by default. You can disable it in your editor settings whenever you like
2323
```
2424

2525
## Change log
26+
### 1.1.0.0
27+
- Support ghc-9.4.
28+
- Refactor code base and force four space indent.
2629
### 1.0.3.0
2730
Remove force update `HieDb` logic in queries.
2831
### 1.0.1.0

plugins/hls-call-hierarchy-plugin/hls-call-hierarchy-plugin.cabal

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ library
2727
build-depends:
2828
, aeson
2929
, base >=4.12 && <5
30-
, bytestring
3130
, containers
3231
, extra
33-
, ghc
3432
, ghcide ^>= 1.8
3533
, hiedb
3634
, hls-plugin-api ^>= 1.5

plugins/hls-call-hierarchy-plugin/src/Ide/Plugin/CallHierarchy.hs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import Language.LSP.Types
77

88
descriptor :: PluginDescriptor IdeState
99
descriptor = (defaultPluginDescriptor X.callHierarchyId)
10-
{ Ide.Types.pluginHandlers = mkPluginHandler STextDocumentPrepareCallHierarchy X.prepareCallHierarchy
11-
<> mkPluginHandler SCallHierarchyIncomingCalls X.incomingCalls
12-
<> mkPluginHandler SCallHierarchyOutgoingCalls X.outgoingCalls
13-
}
10+
{ Ide.Types.pluginHandlers =
11+
mkPluginHandler STextDocumentPrepareCallHierarchy X.prepareCallHierarchy
12+
<> mkPluginHandler SCallHierarchyIncomingCalls X.incomingCalls
13+
<> mkPluginHandler SCallHierarchyOutgoingCalls X.outgoingCalls
14+
}

0 commit comments

Comments
 (0)