简体   繁体   中英

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?

文件箱

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM