Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

🐞 Suggestion window fails to draw

未关闭
#351 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
swift
领域
desktop-dev

调研方向

首先使用示例的模拟补全来重现故障,反复让建议面板出现和消失。检查与报告的 canBecomeKeyWindow 警告相关的建议窗口和 viewmodel 处理逻辑。完成的标准是建议窗口在反复使用后仍能继续渲染,并且当视图渲染失败时不会插入补全内容。

由索引模型根据 Issue 内容生成。

描述

bug
Description

Everytime after using the editor with the suggestion feature for a short period of time (5-15 appereances of the panel), the panel window just doesnt appear anymore, but pressing "TAB" or "ENTER" still inserts suggestions at the cursor.

In the XCode console I get:

Warning: -[NSWindow makeKeyWindow] called on <NSWindow: 0x401330240> windowNumber=151f8 which returned NO from -[NSWindow canBecomeKeyWindow].

This happens for the latest version still, with the new "Suggestion Window Fixes" PR merged.

To Reproduce
  1. Use the example with the mock completions for a longer period of time
  2. Let the panel appear and disappear 10-20x
Expected Behavior

The suggestions window should always render, and IF something fails to render, the viewmodel should refrain from inserting completions.

Version Information

CodeEditSourceEditor: latest main branch
macOS: 15.5 (24F74)
Xcode: 16.4 (16F6)

Additional Context

No response

Screenshots

No response

主要语言
Swift
星标
720
派生
162
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeEditApp/CodeEditSourceEditor 的其他 Issue

查看 CodeEditApp/CodeEditSourceEditor 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。