Implemented working code completion based on the latest node hosting API.