Skip to content

Commit

Permalink
Merge definitions from all plugins for Document(Type)Definition messa…
Browse files Browse the repository at this point in the history
…ge (#3846)

* Merge definitions from all plugins for Document(Type)Definition message

- enables multiple plugins to provide Document(Type)Definition for the same message

* Remove unnecessary head usage in ghcide TestUtils

* Use Nothing for original selection when upgrading Location to LocationLink

in combineResponses of plugins to TextDocumentDefinition message

* Share combineResponses document definition and document type definition tests

* Downgrade locations to links when missing client capability in combineResponses (plugin API)

- Upgrade locations to links only when necessary (some responses are links)

* Test preserving link data in combineResponses of Definition message

* Add haddock to mergeDefinitions in plugin API

* Replace usage of OverloadedRecordDot with lenses

- to support GHC < 9.2

* Add TypeFamilies extension to TypesTests to support GHC < 9.4

* Require focus >= 1.0.3.2 to fix 9.8 build for ghcide and hls-graph

---------

Co-authored-by: Michael Peyton Jones <[email protected]>
  • Loading branch information
JiriLojda and michaelpj authored Nov 17, 2023
1 parent b8217ad commit 20a37ec
Show file tree
Hide file tree
Showing 7 changed files with 793 additions and 490 deletions.
Loading

0 comments on commit 20a37ec

Please sign in to comment.