[v1.3] 修复编辑器中 ESLint 修复功能失效的问题(globalCache.get("eslint-fix") 为 undefined)- 修复 #1079#1184
Open
cyfung1031 wants to merge 4 commits intoscriptscat:release/v1.3from
Open
[v1.3] 修复编辑器中 ESLint 修复功能失效的问题(globalCache.get("eslint-fix") 为 undefined)- 修复 #1079#1184cyfung1031 wants to merge 4 commits intoscriptscat:release/v1.3from
cyfung1031 wants to merge 4 commits intoscriptscat:release/v1.3from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1079
globalCache.get("eslint-fix")為 undefined #1079问题描述:
在某些情况下(例如 Service Worker 重启后),
globalCache.get("eslint-fix")返回undefined,导致 Monaco Editor 中的 ESLint 自动修复功能无法正常工作,报错或无响应。修复内容:
globalCache的依赖,避免缓存失效导致的问题。"eslint-fix"相关配置或状态,确保值实时可用。改动范围:
测试建议: