github / github/vscode-github-actions

diagnostics not cleared when file is closed

未關閉
#376 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
TypeScript
星號
660
分支
213
PR 合併指標
30 天內沒有已合併 PR

描述

The extension doesn't clear the editor diagnostics for a specific file when the file is closed, and diagnostics are persisted until the entire editor is closed, or the window reloaded.

For false-positives/non-issues like the one reported in #375, that means that whenever I open a workflow/action `.yml` file, the "Problems" pane is populated with non-actionable diagnostics, and I have no way to clear it unless I close the `.yml` file and reload the editor or the extension host.

**Expected behavior**:
The extension clears all diagnostics related to a file when it is closed, and only display diagnostics for actively opened files.

貢獻指南

開啟貢獻指南

研究方向

Start by tracing how the extension creates and updates diagnostics for opened workflow/action .yml files, then reproduce the issue by opening and closing one. Done means diagnostics for a closed file are cleared while diagnostics for actively opened files remain visible.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript, vscode
領域
devtools, tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。