在调试和运行扩展时隐藏“覆盖扩展”警告

时间:2016-08-24 15:14:47

标签: visual-studio-code vscode-extensions

在测试扩展程序时,我是否可以隐藏此警告消息?

Overwriting extension .../.vscode-insiders/extensions/nodecommands-0.3.0 with h:/VsCodeAddon/nodecommands.[1]

消息说:

  

[路径] 使用 [tempExtensionPath]

覆盖扩展程序 [extensionPath]

作为“默认”,我在 launch.json 中传递extensionDevelopmentPath参数:

launch.json

{
    "version": "0.1.0",
    "configurations": [
        {
            "name": "Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceRoot}"
            ],
            "stopOnEntry": false,
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/out"
        }
    ]
}

1 个答案:

答案 0 :(得分:0)

根据此公开的vscode问题,当前无法实现:

Do Not Show for overwriting extension message

Microsoft员工回答:

  

这个请求对我来说似乎很合理。我打算在邮件中添加Do not show again操作,用户可以选择不再显示此内容。

所以可能会有希望。

相关问题