mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
This reverts commit 714ce79ed9.
This commit is contained in:
committed by
GitHub
parent
a2194e8c49
commit
31fba19dcf
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user