back to the shorter var name

This commit is contained in:
Noah Santschi-Cooney 2018-06-15 23:01:09 +01:00
parent ef643d8cdb
commit d8e374496b
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
3 changed files with 7 additions and 7 deletions

View file

@ -36,10 +36,10 @@ documents.onDidSave((event) => {
connection.onDidChangeConfiguration((change) => {
const temp = change.settings.mcglsl as Config
conf = new Config(temp.minecraftPath, temp.glslangValidatorPath)
exec(conf.glslangValidatorPath, (error) => {
conf = new Config(temp['minecraftPath'], temp['glslangValidatorPath'])
exec(conf.glslangPath, (error) => {
if (error['code'] !== 1) {
connection.window.showErrorMessage(`[mc-glsl] glslangValidator not found at: ${conf.glslangValidatorPath}`)
connection.window.showErrorMessage(`[mc-glsl] glslangValidator not found at: ${conf.glslangPath}`)
return
}
documents.all().forEach(preprocess);