Skip to content

修复编辑器状态栏空白占位 - #1755

Merged
CodFrm merged 1 commit into
mainfrom
fix/editor-status-bar-empty-space
Sep 20, 2026
Merged

CodFrm merged 1 commit into
mainfrom
fix/editor-status-bar-empty-space

Conversation

@cyfung1031

@cyfung1031 cyfung1031 commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Checklist / 检查清单

  • Fixes mentioned issues / 修复已提及的问题
  • Code reviewed by human / 代码通过人工检查
  • Changes tested / 已完成测试

N/A — no issue was referenced.

Description / 描述

背景

index.tsx already sends null outside Code. EditorStatusBar kept rendering its h-6 wrapper, leaving a 24px blank strip in Storage, Resources, and Script Settings.

本次改动

  • Return null from EditorStatusBar when status is absent, after calling useTranslation().
  • Add a focused regression test for an empty DOM with null and normal cursor/size rendering.

Screenshots / 截图

download (8) download (9)

验证

  • pnpm exec vitest run src/pages/options/routes/ScriptEditor/EditorStatusBar.test.tsx --no-coverage — 2 tests passed.
  • pnpm run typecheck — passed.
  • pnpm run lint — passed.
  • git diff --check — passed.
  • Manual extension session — all requested view transitions passed; the throwaway session was stopped.
  • pnpm run dev — exited 0 and generated the extension. Its output included Watchpack EMFILE watcher warnings and one Monaco require warning; the built extension loaded during manual verification.

@CodFrm

CodFrm commented Sep 20, 2026

Copy link
Copy Markdown
Member

没有看明白是什么问题,怎么复现

AI排查出来的?

@cyfung1031

cyfung1031 commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

没有看明白是什么问题,怎么复现

Screenshot 2026-09-20 at 12 47 58

最底的黑色橫條

AI排查出来的?

不是

@CodFrm

CodFrm commented Sep 20, 2026

Copy link
Copy Markdown
Member

哦哦,发现了

@CodFrm
CodFrm merged commit 61cc248 into main Sep 20, 2026
10 checks passed
@CodFrm
CodFrm deleted the fix/editor-status-bar-empty-space branch September 20, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants