Skip to content

Display documentation of completion items#821

Merged
dzhou121 merged 1 commit intolapce:masterfrom
MinusGix:completion-documentation
Jul 19, 2022
Merged

Display documentation of completion items#821
dzhou121 merged 1 commit intolapce:masterfrom
MinusGix:completion-documentation

Conversation

@MinusGix
Copy link
Copy Markdown
Member

Closes #759
image

This shows the documentation, if available, of the selected completion item. There is a setting to toggle this on/off.
This also moves the markdown code to its own module, because it is now shared for usage by hover and this documentation (they are separate, so you can still hover while this documentation is being shown).
There is also a few changes to how the markdown works, making so it no longer requires a syntax instance and supports multiple languages. (I'm not sure why I implemented the syntax the way it was before..)

@MinusGix MinusGix added A-ui Area: UI rendering and interactions A-lsp Area: LSP, assists and code completion labels Jul 19, 2022
@MinusGix MinusGix force-pushed the completion-documentation branch from 06ebcd0 to 0e68404 Compare July 19, 2022 06:48
@dzhou121 dzhou121 merged commit 2d984fa into lapce:master Jul 19, 2022
@workingj
Copy link
Copy Markdown

this looks great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lsp Area: LSP, assists and code completion A-ui Area: UI rendering and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show documentation for currently hovered code completion suggestion

3 participants