mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-23 11:15:27 +00:00
Did something to do with includes and a stack i guess
This commit is contained in:
parent
7dd1699dbe
commit
5d53c2020a
4 changed files with 41 additions and 24 deletions
|
@ -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:\/\//, '')]));
|
||||
})
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue