小编cha*_*a D的帖子

vscode.showInformationMessage - 如何向消息添加标头

我正在发布一个 vscode 扩展,并显示一个简单的标题和消息。消息和项目按预期显示,但我找不到添加带有文本的标题的方法。我怎样才能做到这一点?我应该使用不同的消息方法吗?当前代码:

    const header = { title: 'Confirmation Needed' };               
    return vscode.window.showInformationMessage(text, ...["Ok", "Cancel"]);
Run Code Online (Sandbox Code Playgroud)

visual-studio-code vscode-extensions

3
推荐指数
1
解决办法
2535
查看次数