当vscode扩展运行时,如何在控制面板上打印消息

问题描述 投票:0回答:1

使用vscode扩展时,如何在控制面板或终端面板上打印或输出消息?扩展是由我开发的。现在只使用vscode.window.showErrorMessage来代替它。

visual-studio-code
1个回答
0
投票
const out = vscode.window.createOutputChannel("test running");
out.show();
out.appendLine('hello');
© www.soinside.com 2019 - 2024. All rights reserved.