Looks like there was an answer in another thread:
changing #init to #[export_name = "canister_init"] seems to satisfy the IDE
#init
#[export_name = "canister_init"]