diff --git a/server/src/linter.ts b/server/src/linter.ts index bbbc5f9..848c9de 100644 --- a/server/src/linter.ts +++ b/server/src/linter.ts @@ -37,11 +37,9 @@ const tokens: {[key: string]: string} = { 'RIGHT_BRACE': '}' } -const matchesFilters = (s: string) => filters.some(reg => reg.test(s)) - const filterMatches = (output: string) => output .split('\n') - .filter(s => s.length > 1 && !matchesFilters(s)) + .filter(s => s.length > 1 && !filters.some(reg => reg.test(s))) .map(s => s.match(reDiag)) .filter(match => match && match.length === 4) @@ -55,8 +53,6 @@ const replaceWord = (msg: string) => { } export function preprocess(document: TextDocument) { - if (conf.minecraftPath === 'shaderpacks') return - //const root = document.uri.replace(/^file:\/\//, '').replace(conf.minecraftPath, '').replace(path.basename(document.uri), '') lint(document.getText(), document.uri) }