VS Code plugin validation of CI yaml misleading error messages

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Description

When validating .gitlab-ci.yml with the include section that links to a yaml configuration that contains invalid syntax, the VS Code plugin falsely says that path_tofile/file.yml does not exist even if copy relative path function is enabled.

Example:

Main .gitlab-ci.yml content:

include:
      - local: .ci_includes/.build.yml
      - local: .ci_includes/.deploy.yml
job1:
  script: ls

.ci_includes/.build.yml content:

variables:
  IMAGE_PATH:
        default: $SOME_VAR
        description: The image build to use.

job2:
  script: echo "some script here"

Proposal

Improve CI validation to detect the errors in included configs. Or, at least, to detect the file existence even if it contains errors in the config.

Edited by 🤖 GitLab Bot 🤖