feat(extension): Also activate for (incorrectly detected) yaml files

This commit is contained in:
Myzel394 2024-10-03 22:14:29 +02:00
parent ff60de6a2b
commit 521a4735ce
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185
2 changed files with 9 additions and 2 deletions

View File

@ -15,7 +15,8 @@
"vscode": "^1.74.0"
},
"activationEvents": [
"onLanguage:plaintext"
"onLanguage:plaintext",
"onLanguage:yaml"
],
"main": "./out/extension",
"scripts": {

View File

@ -18,7 +18,13 @@ export function activate(context: ExtensionContext) {
{
scheme: 'file',
language: 'plaintext',
pattern: "**/sshconfig",
pattern: "**/{config,sshconfig,sshd_config,sshdconfig,fstab,hosts,aliases}",
},
// Some configs seem to be incorrectly detected as yaml
{
scheme: 'file',
language: 'yaml',
pattern: "**/{config,sshconfig,sshd_config,sshdconfig,fstab,hosts,aliases}",
},
]
};