mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
This reverts commit 6b391eba24.
This commit is contained in:
committed by
GitHub
parent
21e0716833
commit
455584024c
@@ -18,8 +18,6 @@ function getKnownVariableNames() {
|
||||
return knownVariables;
|
||||
}
|
||||
|
||||
const iconVariable = /^--vscode-icon-.+-(content|font-family)$/;
|
||||
|
||||
export interface IValidator {
|
||||
(value: string, report: (message: string) => void): void;
|
||||
}
|
||||
@@ -31,7 +29,7 @@ export function getVariableNameValidator(): IValidator {
|
||||
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