Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this extension? #12

Open
sanmai-NL opened this issue May 15, 2020 · 3 comments
Open

How to use this extension? #12

sanmai-NL opened this issue May 15, 2020 · 3 comments

Comments

@sanmai-NL
Copy link

Thanks for the extension. Seems very useful.

I can't find any documentation on how to use it yet.

@MAHDTech
Copy link

MAHDTech commented May 24, 2020

Once you have the RedHat YAML Language Server installed you can add the following to your user settings.json to get the syntax highlighting to work.

I think since v3 of this extension it uses the RedHat Language Server anyways and not its own schema.

"files.associations": {
    // GitHub Actions
    "action.yaml": "yaml",
    "**/.github/workflows/*.yaml": "yaml",
    "**/.github/workflows/*.yml": "yaml"
}

"yaml.schemas": {
        "http://json.schemastore.org/github-workflow": [
            "**/.github/workflows/*.yaml",
            "**/.github/workflows/*.yml"
        ],
        "http://json.schemastore.org/github-action": [
            "action.yaml",
            "action.yml"
        ]
}

As for for other features, 🤷 I'm still trying to figure that out.

@almaceleste
Copy link

You do not need this extension - YAML by Red Hat does all things for syntax highlighting and autocomplete in .yml files, including the GitHub Workflow.

@MetRonnie
Copy link

I still need

{
    "yaml.schemas": {
        "http://json.schemastore.org/github-workflow": [
            "**/.github/workflows/*.yaml",
            "**/.github/workflows/*.yml"
        ],
        "http://json.schemastore.org/github-action": [
            "action.yaml",
            "action.yml"
        ]
    },
}

in settings.json when using the Red Hat YAML extension.

That is, neither this extension nor Red Hat YAML seems to be enabling GitHub Actions YAML schema by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants