Currently "insert" ignores current context in the script pane . Ideally add-on could insert first resource surrounded by:
configuration EnterNameOf_Configuration
{
}
If that is not possible maybe a warning message ("You are adding resource in wrong context") would be good option. Of course DSC authors should know it already, but...