解決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,解決問題

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM