[svn]
r6793: vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs
VladD2
svnadmin at nemerle.org
Thu Oct 26 14:18:24 CEST 2006
Log:
Fix NulRefException on process unloading.
Author: VladD2
Date: Thu Oct 26 14:18:23 2006
New Revision: 6793
Modified:
vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs
Modified: vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs (original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs Thu Oct 26 14:18:23 2006
@@ -298,20 +298,19 @@
#if DebugLocations
// Just debug staff.
// Update file content, because it is changed, but engine still doesn't know it.
- //
+ if (ProjectNode.Site != null)
+ {
string code = Utils.GetFileCode(ProjectNode.Site, filePath);
-
Engine.Sources.AddOrUpdate(filePath, code);
+ }
+#endif
// Reset link to the project. It leads next request to Project property
// will create new project, and accordingly will create new types tree.
- //
-#endif
ResetTypeTree();
#if DebugLocations
// Update GUI-tree visualizing AST of the current file.
- //
int fileIndex = Location.GetFileIndex(filePath);
Engine.Project.UpdateDebugTree(fileIndex);
More information about the svn
mailing list