github / github/vscode-github-actions
Problems panel shows problems in virtual and read only file
- 主要语言
- TypeScript
- 星标
- 660
- 派生
- 213
- PR 合并指标
- 30 天内没有已合并 PR
描述
**Describe the bug**
The problems panel is showing problems in a virtual and read only file:
When I copy the problem and paste the contents into a new file, I see this:
```
"resource": "/commit~cf17f9d0/.github/workflows/build.yml",
"owner": "_generated_diagnostic_collection_name_#3",
```
`/commit~cf17f9d0/.github/workflows/build.yml` is not a real file (at least not in my project's directory).
When I click on one of these problems to open the file and then I try to make changes, VS Code reports that it's a read only file:
The problems disappear when I uninstall or disable the extension.
The problems re-appear when I re-install or re-enable the extension.
**To Reproduce**
Unfortunately I don't have steps to reproduce this. I'm not sure how it happened.
**Expected behavior**
Problems should only appear for real files.
**Screenshots**
See above.
**Extension Version**
`v0.25.7`
**Additional context**
贡献指南
调研方向
Start by investigating how the extension contributes diagnostics to VS Code's Problems panel, using the reported `/commit~cf17f9d0/.github/workflows/build.yml` resource as the example. Compare behavior with the extension enabled and disabled, and determine how to verify that diagnostics are only shown for real, editable files.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100