Using Map objects instead of indexable types

This commit is contained in:
Noah Santschi-Cooney 2018-07-04 00:16:22 +01:00
parent 34e6d14ec9
commit dbad626af9
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
3 changed files with 36 additions and 37 deletions

View file

@ -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:\/\//, '')])
}