Title: Problems pane shows problems from git diffs · Issue #105 · github/vscode-github-actions · GitHub
Open Graph Title: Problems pane shows problems from git diffs · Issue #105 · github/vscode-github-actions
X Title: Problems pane shows problems from git diffs · Issue #105 · github/vscode-github-actions
Description: Describe the bug Whenever I open up a workflow with the git diff editor, it evaluates both the file prior to the made changes and the current version. The problems are not keyed by file name, resulting in multiple groups of problems in t...
Open Graph Description: Describe the bug Whenever I open up a workflow with the git diff editor, it evaluates both the file prior to the made changes and the current version. The problems are not keyed by file name, resul...
X Description: Describe the bug Whenever I open up a workflow with the git diff editor, it evaluates both the file prior to the made changes and the current version. The problems are not keyed by file name, resul...
Opengraph URL: https://github.com/github/vscode-github-actions/issues/105
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problems pane shows problems from git diffs","articleBody":"**Describe the bug**\r\nWhenever I open up a workflow with the git diff editor, it evaluates both the file prior to the made changes and the current version. \r\nThe problems are not keyed by file name, resulting in multiple groups of problems in the problem pane. \r\n\r\nThe main problem I have is that they don't disappear even after closing the diff editor.\r\n\r\nI have attached a screenshot of how it behaves.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Set up a file with the name `cd.yaml` with the following contents in the `.github/workflows` folder of a project. (the important part is just being able to produce a problem within a workflow file, I'll attach a segments of mine as an example)\r\n\r\n```yaml\r\nname: Deployment\r\n\r\non:\r\n push:\r\n tags:\r\n - '*'\r\n\r\njobs:\r\n deploy-images:\r\n runs-on: ubuntu-latest\r\n steps:\r\n - run: echo 'hello'\r\n\r\n deploy-staging:\r\n runs-on: ubuntu-latest\r\n environment: Staging\r\n needs: deploy-images\r\n steps:\r\n - name: Git Checkout\r\n uses: actions/checkout@v3\r\n\r\n - name: Set up kubectl\r\n uses: azure/setup-kubectl@v3\r\n\r\n - name: Set k8s context\r\n uses: azure/k8s-set-context@v3\r\n with:\r\n method: service-account\r\n k8s-url: ${{ env.K8S_API_URL }}\r\n k8s-secret: ${{ secrets.K8S_SECRET }}\r\n```\r\n\r\n2. Initialize a git repo and commit the file\r\n3. Make changes to the workflow file\r\n4. View the diff by clicking the file from the `Source Control` tab in VSCode \r\n5. Check the problems tab\r\n6. Close the diff tab\r\n7. Check the problems tab again\r\n8. Click a problem, and a read-only file will open\r\n\r\n**Expected behavior**\r\nI don't typically see linting tools behave in this manner, the other ones I use such as SonarLint only show problems for the current state of the file. \r\n\r\n**Screenshots**\r\n\r\nThe problems tab after opening diff editors:\r\n\r\n\r\nThe read-only file opened when clicking the problem:\r\n\r\n\r\n**Extension Version**\r\n`v0.25.4`","author":{"url":"https://github.com/thedatasnok","@type":"Person","name":"thedatasnok"},"datePublished":"2023-04-08T19:21:14Z","url":"https://github.com/github/vscode-github-actions/issues/105"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b7c6b518-aa78-f79d-a28b-366de02fd973 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB34:26C7BB:228913:303172:6AFD81C8 |
| html-safe-nonce | 8ceea19d2fdfe7bc4ca39d45dc58e77734749d1aa5a3bc97c68c271795905351 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjM0OjI2QzdCQjoyMjg5MTM6MzAzMTcyOjZBRkQ4MUM4IiwidmlzaXRvcl9pZCI6IjE2OTIxNjExMzE1MjAyOTUzNjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6aec6bcf8637b317adcc543e56e36521078cb20901a7a473eb4f29dd32eee65a |
| hovercard-subject-tag | issue:1659620426 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/vscode-github-actions/105/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85accfa1b6e596cc87a16f05632c542e9cee45ebef01c5c74f4f6f763c85b4f6/github/vscode-github-actions/issues/105 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85accfa1b6e596cc87a16f05632c542e9cee45ebef01c5c74f4f6f763c85b4f6/github/vscode-github-actions/issues/105 |
| og:image:alt | Describe the bug Whenever I open up a workflow with the git diff editor, it evaluates both the file prior to the made changes and the current version. The problems are not keyed by file name, resul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thedatasnok |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42d4967e3c8afca51ccac31f419a705af777226a95f025ea73387d87a306b326 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/vscode-github-actions git https://github.com/github/vscode-github-actions.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 616663763 |
| octolytics-dimension-repository_nwo | github/vscode-github-actions |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 616663763 |
| octolytics-dimension-repository_network_root_nwo | github/vscode-github-actions |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2329ceed0bc2c7b7c3b9f5f2db6abfc7b6fc3a50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width