mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-29 09:43:49 +01:00
[icon themes] prefer file extensions over language association
This commit is contained in:
@@ -497,6 +497,12 @@ function _processIconThemeDocument(id: string, iconThemeDocumentPath: string, ic
|
||||
addSelector(`${qualifier} .expanded .${escapeCSS(folderName.toLowerCase())}-name-folder-icon.folder-icon::before`, folderNamesExpanded[folderName]);
|
||||
}
|
||||
}
|
||||
let languageIds = associations.languageIds;
|
||||
if (languageIds) {
|
||||
for (let languageId in languageIds) {
|
||||
addSelector(`${qualifier} .${escapeCSS(languageId)}-lang-file-icon.file-icon::before`, languageIds[languageId]);
|
||||
}
|
||||
}
|
||||
let fileExtensions = associations.fileExtensions;
|
||||
if (fileExtensions) {
|
||||
for (let fileExtension in fileExtensions) {
|
||||
@@ -518,12 +524,6 @@ function _processIconThemeDocument(id: string, iconThemeDocumentPath: string, ic
|
||||
addSelector(`${qualifier} ${selectors.join('')}.file-icon::before`, fileNames[fileName]);
|
||||
}
|
||||
}
|
||||
let languageIds = associations.languageIds;
|
||||
if (languageIds) {
|
||||
for (let languageId in languageIds) {
|
||||
addSelector(`${qualifier} .${escapeCSS(languageId)}-lang-file-icon.file-icon::before`, languageIds[languageId]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
collectSelectors(iconThemeDocument);
|
||||
|
||||
Reference in New Issue
Block a user