我正在尝试使用 VSCode 的语言服务器开发扩展。我想弄清楚如何从扩展的语言服务器部分编写文本以进行日志记录。 console.log 什么也不产生
最佳答案
作为更新,您可以使用 vscode.window.createOutputChannel
创建输出容器,然后用 appendLine
写入它方法。
//Create output channel
let orange = vscode.window.createOutputChannel("Orange");
//Write to output.
orange.appendLine("I am a banana.");
关于visual-studio-code - 如何从 vscode 扩展写入日志?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34085330/