[svn]
r7220: vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleViewFilter.cs
VladD2
svnadmin at nemerle.org
Sat Jan 6 00:36:25 CET 2007
Log:
Prevent rebuild type tree.
Author: VladD2
Date: Sat Jan 6 00:36:24 2007
New Revision: 7220
Modified:
vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleViewFilter.cs
Modified: vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleViewFilter.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleViewFilter.cs (original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleViewFilter.cs Sat Jan 6 00:36:24 2007
@@ -23,11 +23,11 @@
public override void OnSetFocus(IVsTextView view)
{
- ShowAst(view);
+ ShowAst(view, true);
base.OnSetFocus(view);
}
- private void ShowAst(IVsTextView view)
+ private void ShowAst(IVsTextView view, bool showInfo)
{
NemerleSource source = Source as NemerleSource;
if (source != null && source.ProjectInfo != null)
@@ -39,7 +39,9 @@
AstToolWindow tw = (AstToolWindow)source.ProjectInfo.ProjectNode.Package
.FindToolWindow(typeof(AstToolWindow), 0, true);
+ if (showInfo)
tw.ShowInfo(source);
+
tw.Activate(line + 1, col + 1);
}
}
@@ -48,7 +50,7 @@
int iMinUnit, int iMaxUnits, int iVisibleUnits, int iFirstVisibleUnit)
{
base.OnChangeScrollInfo(view, iBar, iMinUnit, iMaxUnits, iVisibleUnits, iFirstVisibleUnit);
- ShowAst(view);
+ ShowAst(view, false);
}
protected override int ExecCommand(ref Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
More information about the svn
mailing list