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

Does not work wtih GitHub Actions Extension #103

Open
ScottBoyce opened this issue Jun 22, 2024 · 1 comment
Open

Does not work wtih GitHub Actions Extension #103

ScottBoyce opened this issue Jun 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ScottBoyce
Copy link

When I have enabled the https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-github-actions extension, then when I try to format, I get the following error message:
There is no formatter for 'github-actions-workflow' files installed

image

If I click install formatter, then it just takes me to the extension market and shows different extensions:
image

I have added to my settings json:

    "[yaml]": {
        "editor.defaultFormatter": "kiliantyler.kubernetes-yaml-formatter-x",
        "editor.formatOnType": false,
        "editor.formatOnSave": true,
    },

but the extension only works when I disable the github actions extension.

Side note, I tried adding this to my settings, but it had no effect:

    "[github-actions-workflow]": {
        "editor.defaultFormatter": "kiliantyler.kubernetes-yaml-formatter-x",
        "editor.formatOnType": false,
        "editor.formatOnSave": true,
    },
@kiliantyler kiliantyler added the enhancement New feature or request label Jun 25, 2024
@kiliantyler
Copy link
Owner

Interesting, I didn't realize that the Github Actions extension added a new file format.

For now you can manually change the file format at the bottom of the VSCode window to YAML (Or use the prompt CMD+SHIFT+P with the option Change Language Mode)

I'll get the file format added as an optional, but not default formatter so that your second code block will work

@kiliantyler kiliantyler added this to the v3.0.0 milestone Jun 25, 2024
@kiliantyler kiliantyler self-assigned this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants