vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

The `runner.environment` context is shown as invalid in this extension.

Open vbem opened this issue 1 year ago • 1 comments

Describe the bug When we use the runner.environment context listed in official document, this extension reports "Context access might be invalid".

To Reproduce Steps to reproduce the behavior:

  1. With this workflow '...'
steps:
  - if: ${{ runner.environment == 'github-hosted' }}
    run: echo "This is a ${{ runner.environment }} runner"
  1. Do this '...'

Open the "Problems" Panel.

  1. See error\
Context access might be invalid: environment

Expected behavior The runner.environment context listed in official document can be recognized well by this extension.

Screenshots image

Extension Version v0.27.0

Additional context Add any other context about the problem here.

vbem avatar Dec 03 '24 02:12 vbem

Duplicate of https://github.com/actions/languageservices/issues/78 which may be closed by merging of https://github.com/actions/languageservices/pull/79.

muzimuzhi avatar Dec 03 '24 03:12 muzimuzhi