mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
feat(extension): Also activate for (incorrectly detected) yaml files
This commit is contained in:
parent
ff60de6a2b
commit
521a4735ce
@ -15,7 +15,8 @@
|
|||||||
"vscode": "^1.74.0"
|
"vscode": "^1.74.0"
|
||||||
},
|
},
|
||||||
"activationEvents": [
|
"activationEvents": [
|
||||||
"onLanguage:plaintext"
|
"onLanguage:plaintext",
|
||||||
|
"onLanguage:yaml"
|
||||||
],
|
],
|
||||||
"main": "./out/extension",
|
"main": "./out/extension",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -18,7 +18,13 @@ export function activate(context: ExtensionContext) {
|
|||||||
{
|
{
|
||||||
scheme: 'file',
|
scheme: 'file',
|
||||||
language: 'plaintext',
|
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}",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user