@redmunds caught this in #4972. `doc.extension` was no longer set since we moved that down into `BaseServer._setDocInfo()`.