Add wrapping code to support code completion on any code

- any code means, value and function definitions floating in emptiness, we already support this type of code in the insight view.