mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-19 09:15:54 +00:00
Created GLSLangProvider class with API for linting and downloading glslangValidator
Moved glslang stuff from Config to GLSLangProvider. ConfigProvider invokes GLSLangValidator to prompt and download glslangValidator instead
This commit is contained in:
parent
156d76e7de
commit
41995c3f38
16 changed files with 819 additions and 607 deletions
|
@ -38,4 +38,24 @@ export class Graph {
|
|||
}
|
||||
this.nodes.set(parent, par)
|
||||
}
|
||||
|
||||
public toString(): string {
|
||||
let result = ''
|
||||
let start = true
|
||||
this.nodes.forEach((node, key) => {
|
||||
if (!start) {
|
||||
key += '\n'
|
||||
start = false
|
||||
}
|
||||
result += `${key}:\n\tchildren: `
|
||||
node.children.forEach((_, key) => {
|
||||
result += key + ' '
|
||||
})
|
||||
result + '\n\tparents: '
|
||||
node.parents.forEach((_, key) => {
|
||||
result += key + ' '
|
||||
})
|
||||
})
|
||||
return result
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue