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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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]];
}
}

View file

@ -1622,7 +1622,6 @@
"jade": "_jade",
"class": "_java_1",
"classpath": "_java",
"properties": "_java",
"js.map": "_javascript",
"spec.js": "_javascript_1",
"test.js": "_javascript_1",
@ -2025,7 +2024,6 @@
"jade": "_jade_light",
"class": "_java_1_light",
"classpath": "_java_light",
"properties": "_java_light",
"js.map": "_javascript_light",
"spec.js": "_javascript_1_light",
"test.js": "_javascript_1_light",