diff --git a/tools/fix-editor-font b/tools/fix-editor-font index 847e7cd..34ab38a 100755 --- a/tools/fix-editor-font +++ b/tools/fix-editor-font @@ -8,6 +8,8 @@ let configPath = @.fs.homePath(".config/wechat_devtools/Default/Editor/User/sett let config = undefined; if (@.fs.exists.file(configPath)) { config = JSON.parse(@.fs.readFile.sync(configPath, "utf8")); +} else { + config = {}; } config["editor.fontFamily"] = fontFamily;