microsoft / microsoft/language-server-protocol

Pass the current selection for a Hover Request

Open
#377 18 comments 85 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request help wanted hover
Dominant language
TypeScript
Stars
13k
Forks
1k
Avg merge
6d 1h
Merged PRs (30d)
10

Description

In some languages, such as Haskell, it is meaningful to show the type of an expression, rather than just an identifier.

To allow this, extend the Hover Request to also include a Range if the selection is active.

At the moment in the haskell vscode plugin this is done in a roundabout way using workspace/executeCommand, which means it has to be separately implemented in each client.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Hover Request definition in the language-server-protocol repository and review the protocol text around its parameters and Range. The work is complete when an active selection can be sent as an optional Range in a hover request, supporting expression hovers without client-specific command workarounds.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, typescript
Domain
api, developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.