Building up to implementing completion for TypeScript document mode.