首页 > 解决方案 > vscode扩展运行时如何在控制面板打印消息

问题描述

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

标签: visual-studio-code

解决方案


const out = vscode.window.createOutputChannel("test running");
out.show();
out.appendLine('hello');

推荐阅读