mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-23 19:25:51 +00:00
Proper errors if glslangValidator isnt found, woop
This commit is contained in:
parent
44ee663d06
commit
ef643d8cdb
4 changed files with 14 additions and 13 deletions
|
@ -75,8 +75,7 @@ export function preprocess(document: TextDocument) {
|
|||
}
|
||||
|
||||
function lint(text: string, uri: string) {
|
||||
const child = exec(`${conf.glslangPath} --stdin -S frag`, (error, out, err) => {
|
||||
if (error) return
|
||||
const child = exec(`${conf.glslangValidatorPath} --stdin -S frag`, (error, out, err) => {
|
||||
const diagnostics: Diagnostic[] = []
|
||||
const matches = filterMatches(out) as RegExpMatchArray[]
|
||||
matches.forEach((match) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue