From 4097cd63ee1e5dd31177e8ce2f27c859d63f88e6 Mon Sep 17 00:00:00 2001 From: Noah Santschi-Cooney Date: Sun, 5 Aug 2018 22:20:00 +0100 Subject: [PATCH] another error to filter out. God i love (lack of) GPU standards --- package.json | 2 +- server/src/linter.ts | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index eb2cb2a..edf43cd 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-mc-shader", "displayName": "Minecraft GLSL Shaders", "description": "A Visual Studio Code extension for linting/etc Minecraft GLSL Shaders", - "version": "0.8.2", + "version": "0.8.3", "publisher": "Strum355", "author": "Noah Santschi-Cooney (Strum355)", "license": "MIT", diff --git a/server/src/linter.ts b/server/src/linter.ts index 2d66c84..b0719e2 100644 --- a/server/src/linter.ts +++ b/server/src/linter.ts @@ -1,12 +1,12 @@ import { Diagnostic, DiagnosticSeverity, Range } from 'vscode-languageserver' -import { connection, documents } from './server' +import { connection } from './server' import { execSync } from 'child_process' import * as path from 'path' -import { readFileSync, existsSync, statSync, Stats } from 'fs' +import { readFileSync, statSync } from 'fs' import { conf } from './config' -import { postError, formatURI, getDocumentContents, trimPath } from './utils' +import { formatURI, getDocumentContents, trimPath } from './utils' import { platform } from 'os' -import { Graph, Node } from './graph' +import { Graph } from './graph' import { Comment } from './comment' import { linterLog } from './logging' @@ -22,12 +22,11 @@ const errorFilters = [ /(No code generated)/, /(compilation terminated)/, /Could not process include directive for header name:/, - /extension not supported: GL_EXT_gpu_shader4/, - /extra tokens -- expected newline/ + /global const initializers must be constant/, ] const codeFilters = [ - /#extension GL_EXT_gpu_shader4 : require/ + /#extension GL_EXT_gpu_shader4 : require/, ] export const includeGraph = new Graph()