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

Use VSCode's native inlay-hints support, now it's available. #301

Merged
merged 5 commits into from
Apr 1, 2022

Conversation

sam-mccall
Copy link
Member

This isn't ready to go yet:

  • the latest vscode release (1.64) doesn't contain this feature. Even once it does, we maybe don't want to bump our version requirement right away
  • the typings are also not available yet, so here I've included typings for the whole VSCode API (via vpx vscode-dts main).

Nevertheless it does work in latest insiders. VSCode seems to request hints for the whole doc, but then continues to issue requests as you scroll around. It makes me a bit sad that scrolling will now eat CPU!

cc @HighCommander4

@yashLadha
Copy link

yashLadha commented Mar 17, 2022

I think the PR for native support inlay hints just merged, commit, and released in vscode (latest stable version), so we can try to fast-track this PR.

Thanks for the work @sam-mccall

@sam-mccall
Copy link
Member Author

This should be good to go now.

Copy link
Collaborator

@hokein hokein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good, and I test it with the latest vscode 1.66, it works great.

@sam-mccall sam-mccall merged commit dc6518f into master Apr 1, 2022
@sam-mccall sam-mccall deleted the newhints branch April 1, 2022 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants