问题描述
当升级vscode时出现下方报错:


There was an error while marking a file for deletion:
Failed to mark file for deletion:拒绝访问.
Please verify there are no Visual Studio Code processes still executing

Failed to install Visual Studio Code update.
Updates may fail due to anti-virus software and/or runaway processes.
Please try restarting your machine before attempting to update again.
Please read the log file for more information:
分析
根据报错我们可以知道 vscode 与 杀毒软件 发生冲突 (due to anti-virus software and/or runaway processes)
解决方法
1 关闭杀毒软件重新安装vscode