[Monodevelop-patches-list] r1271 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Mar 28 00:01:22 EST 2004
Author: tberman
Date: 2004-03-28 00:01:22 -0500 (Sun, 28 Mar 2004)
New Revision: 1271
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CodeCompletionDataProvider.cs
Log:
removinga c.wl and some cruft
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CodeCompletionDataProvider.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CodeCompletionDataProvider.cs 2004-03-28 04:26:05 UTC (rev 1270)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CodeCompletionDataProvider.cs 2004-03-28 05:01:22 UTC (rev 1271)
@@ -46,10 +46,6 @@
public ICompletionData[] GenerateCompletionData(string fileName, SourceEditorView textArea, char charTyped, TextMark triggerMark)
{
- //FIXME: THIS IS A HACK
- string lang = "C#";
- //Console.WriteLine ("resolve " + lang);
- //Console.WriteLine ("nm " + fileName);
completionData = new ArrayList();
this.fileName = fileName;
@@ -65,7 +61,6 @@
IParserService parserService = (IParserService)MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IParserService));
IExpressionFinder expressionFinder = parserService.GetExpressionFinder(fileName);
string expression = expressionFinder == null ? TextUtilities.GetExpressionBeforeOffset(textArea, insertIter.Offset) : expressionFinder.FindExpression(textArea.Buffer.GetText(textArea.Buffer.StartIter, insertIter, true), insertIter.Offset - 2);
- Console.WriteLine ("Expression: >{0}<", expression);
if (charTyped == ' ') {
if (expression == "using" || expression.EndsWith(" using") || expression.EndsWith("\tusing")|| expression.EndsWith("\nusing")|| expression.EndsWith("\rusing")) {
string[] namespaces = parserService.GetNamespaceList("");
More information about the Monodevelop-patches-list
mailing list