Skip to content

Support for expression-based job filters #335

@bborysenko

Description

@bborysenko

It appears that the language server does not currently support expression-based job filters added recently. Because of this, there is no way to check the pipeline before committing the configuration to the repository. And most likely, adding expression-based filters will make working with CircleCI in VSCode completely impossible.

Image

Steps to reproduce

Add expression-based filters within a workflow, like in the example below:

workflows:
  <workflow_name>:
    jobs:
      - <job_name>:
           filters: pipeline.git.branch ==  "main"

However, VSCode displays Invalid type. Expected: object, given: string error.

Debug info

OS:+Darwin+(darwin+arm64)+24.5.0  
App:+Visual+Studio+Code+1.100.2+desktop  
CircleCI+extension:+v2.10.1+(ui)  
Language+server:+v0.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions