简体   繁体   English

如何以编程方式仅触发 monaco-editor 中的文档框

[英]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.带有文档的 CompletionItemProvider 将显示建议项目列表,当我们单击显示更多图标时,它将显示特定建议项目的文档。 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.相反,当您将鼠标移到代码中的函数调用上时,悬停提供程序会显示类似的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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