【发布时间】:2017-06-14 17:24:03
【问题描述】:
我目前让我的扩展程序将日志数据写入context.storagePath 下的文件。这是我在看到另一个扩展这样做之后模仿的一种方法。
但是,我后来发现 storagePath is undefined when you do not have a folder open 导致我的扩展程序崩溃。
该目的地有时不可用让我觉得我的日志记录不正确。 Visual Studio Code 扩展的正常或典型日志记录目的地是什么?
【问题讨论】:
标签: logging visual-studio-code vscode-extensions