-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support for Nomad #116
Comments
You are right that Nomad documentation uses the There are conversations about loading multiple jobs in hashicorp/nomad#7954 which would then necessitate a naming convention to be strictly followed. In the meantime there is nothing preventing you from naming your job files I'll see if we could (re)establish that naming convention with Alternatively we could either publish Nomad extension in some form and shape or consider adding that old convention to this one. |
@pikeas separate from formatting, you can ensure
This will tell VS Code to use the HCL extension for files with the |
The Nomad team is inclined to changing the convention to In the meantime we'd recommend either changing your files to use that proposed convention or modifying your settings as James mentioned above. |
Not to overly bikeshed, but how about |
@pikeas That sounds like a suggestion for the Nomad team in the linked issue. For the purposes of decent editor experience, I'm fine with |
I'm confused by the push back to simply handling .nomad like .hcl. The .nomad file extension has been suggested, documented, blogged about and used for many years. Must be a technical issue I'm missing? |
@daledude There is a few reasons behind the push back:
One option we may consider however is releasing a separate simple/MVP Nomad extension which simply maps |
Is there a fix around this? Trying to get my |
Nomad now recommends With that in mind, folks should feel free to rename those files, i.e. append |
Got it. For anyone who isn't able to change the file extensions because they don't own the code I found a workaround. You can just force VS Code to treat |
Just FYI for people coming here from Google/Bing/etc: Today, I was also looking for a way to format {
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.nomad\\.hcl",
"cmd": "nomad fmt ${file}"
}
]
}
} Now my job files are formatted every time I save them. |
Formatting would be great. I installed this extension because its description says:
I thought this would include formatting as well, specifically for
*.nomad
files.Originally posted by @pikeas in #98 (comment)
The text was updated successfully, but these errors were encountered: