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