Skip to content

Add support for drop-in files and .ignore files. #114

@TriMoon

Description

@TriMoon

This extension is becoming better and better ❤️ 👍

It would become even better if it supported drop-in files.
What i mean is that it should auto detect what file type the drop-in extends.
Examples:

  • *.service.d/some.conf => Service drop-in
  • *.timer.d/some.conf => Timer drop-in.
  • *.network.d/some.conf => Network drop-in.
  • *.netdev.d/some.conf => NetDev drop-in.
  • etc etc...

Also support for .ignore type files like fe.

  • example.service.ignore => Service unit
  • example.service.d/some.conf.ignore => Service unit drop-in
  • etc etc...

See: systemd.unit(3)

Files (including directories) with names that match certain patterns are generally ignored.
This includes names that start with a "." or end with a ".ignore".


Currently i use the following, but it is not optimal for obvious reasons. 😉

"settings": {
	"files.associations": {
		"**/*.d/*.conf": "systemd-conf",
		"**/*.d/*.conf.ignore": "systemd-conf",
		"*.service.ignore": "systemd-conf",
		"*.timer.ignore": "systemd-conf"
	}
},

I know these kind of files are already ignored by systemd due to their filename extension, but it would be great if the syntax highlighting and completions for these files keep working using this VSC-Extension 😉
Keep up the great work ! 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions