【发布时间】:2020-09-02 13:10:20
【问题描述】:
我正在编写一个 vscode(Visual Studio Code) 扩展,当我尝试更新如下代码的配置时,我会收到这个错误:rejected promise not handled within 1 second: Error: Unable to write to Workspace Settings because no workspace is opened. Please open a workspace first and try again.
我的代码:
vscode.workspace.getConfiguration("myextention").update("myextention.conf", "231231223");
【问题讨论】:
标签: node.js typescript visual-studio-code vscode-extensions