Posted 14 years ago
by Brook Hunter

Hello,
I am using the SyntaxEditor with the .NET Languages Add-On to provide Intellisense for C# files that I can 1) Add and 2) Exclude from my project.
I am able to successfully get intellisense appearing for newly added files by using the following code:
_dotNetProjectResolver.SourceProjectContent.LoadForFile(_cSharpSyntaxLanguage, myFullFilePath);
However, when I remove a single file from my project, I am unable to reverse this process, because I can't find any kind of method like:
_dotNetProjectResolver.SourceProjectContent.RemoveForFile(_cSharpSyntaxLanguage, myFullFilePath);
Also, the following code doesn't remove the Intellisense for a file just removed from my project:
_dotNetProjectResolver.SourceProjectContent.Clear();
How can I get the Intellisense to go away for a C# code file that was first added to Intellisense via _dotNetProjectResolver.SourceProjectContent.LoadForFile(_cSharpSyntaxLanguage, myFullFilePath); ?
Thank you very much in advance,
Brook
I am using the SyntaxEditor with the .NET Languages Add-On to provide Intellisense for C# files that I can 1) Add and 2) Exclude from my project.
I am able to successfully get intellisense appearing for newly added files by using the following code:
_dotNetProjectResolver.SourceProjectContent.LoadForFile(_cSharpSyntaxLanguage, myFullFilePath);
However, when I remove a single file from my project, I am unable to reverse this process, because I can't find any kind of method like:
_dotNetProjectResolver.SourceProjectContent.RemoveForFile(_cSharpSyntaxLanguage, myFullFilePath);
Also, the following code doesn't remove the Intellisense for a file just removed from my project:
_dotNetProjectResolver.SourceProjectContent.Clear();
How can I get the Intellisense to go away for a C# code file that was first added to Intellisense via _dotNetProjectResolver.SourceProjectContent.LoadForFile(_cSharpSyntaxLanguage, myFullFilePath); ?
Thank you very much in advance,
Brook