问题描述:
使用nodejs开发vscode插件,vscode调用插件时要求在DEBUG CONSOLE或OUTPUT中输出信息,目前信息输出的方式是console.log("info message"); , 此方式在插件使用时无法在debug console中输出信息。想请教一下用什么方法可以实现在console中输出信息?
可以通过vscode.window.createOutputChannel的方式在OUTPUT的TEST窗口输出信息
const rcsoutput = vscode.window.createOutputChannel("TEST");
rcsoutput.show();
rcsoutput.appendLine("Hello World");
rcsoutput.show();