Do you remember why we aren't using the Tokeniser then? It seems like it
should be a better way to go, perhaps we could even remove all the other
cracking code.


On Fri, Mar 28, 2014 at 10:43 AM, Dave Thomas <notifications@github.com>wrote:

> In monodevelop/MonoDevelop.FSharpBinding/FSharpTextEditorCompletion.fs:
>
> > @@ -232,7 +232,9 @@ type FSharpTextEditorCompletion() =
> >    // Run completion automatically when the user hits '.'
> >    // (this means that completion currently also works in comments and strings...)
> >    override x.HandleCodeCompletion(context, ch, triggerWordLength:byref<int>) =
> > -      if ch <> '.' then null else
> > +      let line, col, lineStr = MonoDevelop.getLineInfoFromOffset(context.TriggerOffset, x.Document.Editor.Document)
> > +
> > +      if ch <> '.' || String.IsNullOrWhiteSpace(lineStr.Substring(0,col-1)) then null else
>
> I don't remember that issue.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/fsharp/fsharpbinding/pull/422/files#r11061192>
> .
>