Did something to do with includes and a stack i guess

This commit is contained in:
Noah Santschi-Cooney 2018-06-17 22:40:48 +01:00
parent 7dd1699dbe
commit 5d53c2020a
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
4 changed files with 41 additions and 24 deletions

View file

@ -27,11 +27,11 @@ connection.onExit(() => {
})
documents.onDidOpen((event) => {
preprocess(event.document)
preprocess(event.document, true, [event.document.uri.replace(/^file:\/\//, '')])
})
documents.onDidSave((event) => {
preprocess(event.document)
preprocess(event.document, true, [event.document.uri.replace(/^file:\/\//, '')])
})
/* documents.onDidChangeContent((change) => {
@ -46,7 +46,7 @@ connection.onDidChangeConfiguration((change) => {
connection.window.showErrorMessage(`[mc-glsl] glslangValidator not found at: ${conf.glslangPath}`)
return
}
documents.all().forEach(preprocess);
documents.all().forEach((document) => preprocess(document, true, [document.uri.replace(/^file:\/\//, '')]));
})
});