forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Inlay hints for record wildcards (haskell#4351)
* Provide explicit import in inlay hints * Filter explict imports inlay hints by visible range * Update lsp dep by source-repository-package to writing test before new release of haskell/lsp. * Add test for hls-explicit-imports-plugin inlay hints * Comment inlay hints start position * Use `isSubrangeOf` to test if the range is visible * Remove inlayHintsResolveProvider placeholder for now * Use explicit InlayHintKind_Type * Revert "Update lsp dep by source-repository-package" This reverts commit 245049a. * Combine InlayHints by sconcat them and remove `instance PluginRequestMethod Method_InlayHintResolve` since have not decide how to combine. * compress multiple spaces in abbr import tilte * update test to match inlay hints kind * rename squashedAbbreviateImportTitle to abbreviateImportTitleWithoutModule * Request inlay hints with testEdits * ExplicitImports fallback to codelens when inlay hints not support * fix explicitImports inlayHints test * simplify isInlayHintsSupported * comment fallback * empty list instead of null codeLens * clearify name `paddingLeft` * fix clientCapabilities * add test for inlay hints without its client caps * use codeActionNoInlayHintsCaps to avoid error * simplify isInlayHintSupported * comment about paddingLeft * use null as inlay hints kind * add tooltip for explicit imports inlay hints to improve UX * chore comments * refactor * comment InL [] to indicate no info * ignore refine inlay hints * add plcInlayHintsOn config * update func-test * keep order to make Parser works * always provide refine in code lens * init explicit record fields inlay hints * dotdot location in label part * update test for dotdot location in label part * get(Type)Definition with its Identifier * add flipped filterByRange * filter label with name * update test * re-generate schema * fix explict-record-fields plugin in GHC 910 * fix use correct currentPosition * comment * rename flippedFilterByRange to elementsInRange * refactor: lift * refactor: break pointfree * refactor * recover accidentally deleted macros --------- Co-authored-by: Michael Peyton Jones <me@michaelpj.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
547 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.