Chirag Sourabh S
Chirag Sourabh S

Reputation: 1

how to trigger only documentation box in monaco-editor programatically

Is there a way to programmatically trigger only the documentation box ( highlighted in the below image ) with some contents?

documentation box

A CompletionItemProvider with documentation will show a list of suggested items and when we click the show more icon, it will show the documentation of a particular suggestion item. however, I would like to show the documentation directly with some keypress. we can assign some programmatic behaviour to key press. but is there a way to trigger only the documentation box with some contents?

a code snippet will be appreciated.

Upvotes: 0

Views: 451

Answers (1)

Mike Lischke
Mike Lischke

Reputation: 53502

No, this is not possible. Instead similar information is shown provided by the hover provider, when you move the mouse over a function call in the code.

Upvotes: 0

Related Questions