Deriving includes path appears to be working OK. Optimized the includes regex by a factor of ~3 and made it work for relative paths too

This commit is contained in:
Noah Santschi-Cooney 2018-06-19 20:36:41 +01:00
parent 5d53c2020a
commit f4f2b9bf3e
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
5 changed files with 38 additions and 15 deletions

View file

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