Verify document type

For documentDidSave, only update tags and run scripts if it is a text document