sgwozdz / jenkinsfile-support

Visual Studio Code extension
MIT License
33 stars 7 forks source link

Trigger highlight at customizable naming pattern instead of .jenkinsfile extension #62

Open nordcave opened 3 years ago

nordcave commented 3 years ago

What Please add extension activation not only for .jenkinsfile files but also for names containing pattern "-jenkins-", "-jenkinsfile-", etc. If possible, please make this patterns customizable.

Why Jenkinsfiles in my project are called Jenkinsfile-something, without extensions .jenkinsfile

julian-alarcon commented 3 years ago

I just found a workaround @nordcave ! We can use the files.associations setting in VSCode to associate Jenkinsfile* files to the id jenkinsfile https://code.visualstudio.com/docs/languages/identifiers image

In the settings.json it will be something like this (I updated it to a more wide regex):

    "files.associations": {
        "[Jj]enkinsfile*": "jenkinsfile"
    }
nordcave commented 3 years ago

I just found a workaround @nordcave ! We can use the files.associations setting in VSCode to associate Jenkinsfile* files to the id jenkinsfile https://code.visualstudio.com/docs/languages/identifiers image

In the settings.json it will be something like this (I updated it to a more wide regex):

    "files.associations": {
        "[Jj]enkinsfile*": "jenkinsfile"
    }

Wow, that's awesome. Thank you!