Looking at autocomplete_scope I don't see any way this could share its code as this patch stands now. But I find the way that tm_workspace_find returns tags to find_calltips to be satisfactory. For example all of those MeshBuilder and VertexData namespaces are within the namespace BABYLON. I can type BABYLON.MeshBuilder.CreateBox which will have the scope prefix BABYLON.MeshBuilder. tm_workspace_find will return all tags with scopes matching the last part of the scope. So not just matching BABYLON.MeshBuilder scope but also MeshBuilder scoped functions are returned.