mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-23 19:25:51 +00:00
Linting on save instead. Added a basic preprocess beginning, adding in the extension. Not complete
This commit is contained in:
parent
245471a5a2
commit
67e9c991a4
2 changed files with 29 additions and 4 deletions
|
@ -22,10 +22,18 @@ connection.onInitialize((params): vsclang.InitializeResult => {
|
|||
};
|
||||
});
|
||||
|
||||
documents.onDidChangeContent((change) => {
|
||||
documents.onDidOpen((event) => {
|
||||
preprocess(event.document)
|
||||
})
|
||||
|
||||
documents.onDidSave((event) => {
|
||||
preprocess(event.document)
|
||||
})
|
||||
|
||||
/* documents.onDidChangeContent((change) => {
|
||||
preprocess(change.document);
|
||||
});
|
||||
|
||||
*/
|
||||
connection.onDidChangeConfiguration((change) => {
|
||||
const temp = change.settings.mcglsl as Config
|
||||
conf = new Config(temp.minecraftPath, temp.glslangPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue