This reverts commit 714ce79ed9.
This commit is contained in:
Sandeep Somavarapu
2024-04-16 09:49:08 +02:00
committed by GitHub
parent a2194e8c49
commit 31fba19dcf
16 changed files with 40 additions and 68 deletions

View File

@@ -17,7 +17,6 @@ function getKnownVariableNames() {
}
return knownVariables;
}
const iconVariable = /^--vscode-icon-.+-(content|font-family)$/;
function getVariableNameValidator() {
const allVariables = getKnownVariableNames();
return (value, report) => {
@@ -25,7 +24,7 @@ function getVariableNameValidator() {
let match;
while (match = RE_VAR_PROP.exec(value)) {
const variableName = match[1];
if (variableName && !allVariables.has(variableName) && !iconVariable.test(variableName)) {
if (variableName && !allVariables.has(variableName)) {
report(variableName);
}
}