RoslynCompilationService should set the generated code when compilation succeeds

Fixes #895
nit: comma on EOL