Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Inlay Hint Request #13

Open
3 tasks
AnHeuermann opened this issue Feb 8, 2024 · 0 comments
Open
3 tasks

Implement Inlay Hint Request #13

AnHeuermann opened this issue Feb 8, 2024 · 0 comments
Labels
enhancement New feature or request LS - Client Language Server - Client capability LS - Server Language Server - Server capability

Comments

@AnHeuermann
Copy link
Member

AnHeuermann commented Feb 8, 2024

Description

Implement

The inlay hints request is sent from the client to the server to compute inlay hints for a given [text document, range] tuple that may be rendered in the editor in place with other text.

The tree could give hints for units or types in equations:

model M;
  Modelica.Units.SI.Energy e;
  Modelica.Units.SI.Mass m;
  Modelica.Units.SI.Velocity c = Modelica.Constants.c;
equation
  m /* kg */= 10;
  e /* J */= m*c^2 /* kg * (m/s)^2 */;
end M;

Here the comment would be the inline hint.

Desired Features

  • Suggest valid class names at the current position.
  • Server tests
  • Client end to end tests

Examples

Other language servers the rust one inline types of variables, if the are inferred from other types.

@AnHeuermann AnHeuermann added enhancement New feature or request LS - Server Language Server - Server capability LS - Client Language Server - Client capability labels Feb 8, 2024
@AnHeuermann AnHeuermann changed the title Implement Inlay Hint Request (Auto-Complete) Implement Inlay Hint Request Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request LS - Client Language Server - Client capability LS - Server Language Server - Server capability
Projects
None yet
Development

No branches or pull requests

1 participant