mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-23 19:25:51 +00:00
Using Map objects instead of indexable types
This commit is contained in:
parent
34e6d14ec9
commit
dbad626af9
3 changed files with 36 additions and 37 deletions
|
@ -33,6 +33,7 @@ documents.onDidSave((event) => onEvent(event.document))
|
|||
//documents.onDidChangeContent(onEvent)
|
||||
|
||||
function onEvent(document: TextDocument) {
|
||||
if (!ext.has(extname(document.uri))) return
|
||||
preprocess(document.getText().split('\n'), formatURI(document.uri), true, [document.uri.replace(/^file:\/\//, '')])
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue