Skip to content

Commit 00e1f9c

Browse files
cyfung1031CopilotCodFrm
authored
🐛 修复编辑器中 ESLint 修复功能失效的问题(globalCache.get("eslint-fix") 为 undefined)- 修复 #1079 (#1184)
* 修复 #1079 * 从 globalCache 改为从实际Monaco页面环境取得 * TFormattedMakrer -> TFormattedMarker * Update src/pages/components/CodeEditor/index.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * linterWorkerDefered -> linterWorkerDeferred * Update src/pkg/utils/monaco-editor/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update langs.ts * 中文注释 * 改为 ES2022 写法 * 🐛 修复 ESLint fix 缓存与 registerEditor 的三个问题 1. eslintFixMap 每次 lint 结果到来时先 clear 再写入,避免过期条目残留 2. 移除未完整实现的 scopedKey 逻辑,统一使用 baseKey 3. registerEditor 中 worker 复用不再提前 return,provider 注册始终执行 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: 王一之 <yz@ggnb.top>
1 parent df6a539 commit 00e1f9c

5 files changed

Lines changed: 854 additions & 843 deletions

File tree

0 commit comments

Comments
 (0)