
Hi,we are using your SyntaxEditor to show .cs files. We create a ProjectAssembly and add our references for the IntelliPrompt.
CurrentLanguage = new CSharpSyntaxLanguage();
ProjectAssembly = new CSharpProjectAssembly("PROJECTNAME");
CurrentLanguage.RegisterProjectAssembly(ProjectAssembly);
ProjectAssembly.AssemblyReferences.Add(referencedAssembly);
Everything seems to work fine, the IntelliPrompt knows all our types, properties and methods from the references assemblies.
As recommended in our documentation, we also use your caching mechanism for the IntelliPrompt completion lists:
AmbientAssemblyRepositoryProvider.Repository = new FileBasedAssemblyRepository(appDataPath);
After the SyntaxEditor loaded our AssemblyRepository is filled with all the reflection data (*Reflection.dat).
When our application is about to shut down, we call
var repository = AmbientAssemblyRepositoryProvider.Repository;
if (repository != null)
{
repository.PruneCache();
}
as recommended in your documentation.
After this call our AssemblyRepository is cleared completely. There are no more *Reflection.dat-files and the cache can't be used for the next time.
What can we do about this?