解决vscode更新后Ext Js插件无法使用问题

解决方案来至于https://www.sencha.com/forum/showthread.php?471410-Bug-in-VS-Code-Plugin-since-VS-Code-Update-(-gt-1-31)

在C:\Users\你的用户名\.vscode\extensions\sencha.vscode-extjs-1.0.1\out\src文件下找到Logger.js,打开它。

找到代码

fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');

修改为

    // fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');
    //修复vscode更新后不能使用bug
    fs.writeFileSync(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '');

或者

fs.writeFile(path.join(Platform_1.default.settingsDir, 'vscode-extjs.log'), '', function(){});

重新打开vscode,解决问题

猜你喜欢

转载自www.cnblogs.com/mlzs/p/10612829.html
今日推荐