The properties language uses a Java icon in the Seti theme (#161770)

The properties language uses a Java icon in the Seti theme. Fixes #158453
This commit is contained in:
Martin Aeschlimann
2022-09-26 16:31:08 +02:00
committed by GitHub
parent d1479b595c
commit ae8cf2186e
2 changed files with 6 additions and 4 deletions

View File

@@ -47,7 +47,11 @@ const inheritIconFromLanguage = {
"postcss": 'css',
"django-html": 'html',
"blade": 'php'
}
};
const ignoreExtAssociation = {
"properties": true
};
const FROM_DISK = true; // set to true to take content from a repo checked out next to the vscode repo
@@ -399,7 +403,7 @@ exports.update = function () {
if (!nonBuiltInLanguages[lang] && !inheritIconFromLanguage[lang]) {
for (let i2 = 0; i2 < exts.length; i2++) {
// remove the extension association, unless it is different from the preferred
if (ext2Def[exts[i2]] === preferredDef) {
if (ext2Def[exts[i2]] === preferredDef || ignoreExtAssociation[exts[i2]]) {
delete ext2Def[exts[i2]];
}
}