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 摘要。