hecomi / uREPL

In-game powerful REPL environment for Unity3D.
http://tips.hecomi.com/entry/2015/12/05/003000
MIT License
551 stars 54 forks source link

Completions for global namespace #7

Closed kgooble closed 7 years ago

kgooble commented 7 years ago

Hi, this project is super cool! I was testing it out and noticed that if I add classes in the global namespace, they do not show up for auto completion. Do you know why that is? If I add the class to a namespace and add the namespace to the Mono evaluator, the class shows up for autocompletion.

Thanks!

hecomi commented 7 years ago

Thanks for the report! I haven't noticed it... X( I'll investigate the cause of that bug.

hecomi commented 7 years ago

I couldn't find the way to do the global class comletion with Mono.CSharp.Evaluator.GetCompletions(). Instead of that, I added new completion plugin that finds global classes from all assemblies. Could you check the latest commit?

kgooble commented 7 years ago

Fantastic! Thanks @hecomi, it works great as far as I can tell so far!

hecomi commented 7 years ago

Thanks for the test! I'll add it to release page as .unitypackage later. If you'll find some problem, please let me know ;).