[MonoDevelop] CurrentRefactoryOperationsHandler.GetItem (document, out typeResult) Not Working

Mike Krüger mkrueger at xamarin.com
Sat Mar 10 15:54:56 UTC 2012


Hi

What are you trying to write ?
What you're trying to use is dead API - that thing will not really work, 
I'll recommend looking at the newresolver branch in github.
There it's more likely that you get useful & working resolve results. 
Depending on what you do you'll never get 'real' resolve results with 
that approach.
What's an expression to resolve at position X isn't clearly defined in 
the master branch.

Other than that it's a bug in the TextEditorResolverProvider using 
ActiveDocument, I've changed the GetLanguageItem signature to:

ResolveResult GetLanguageItem (MonoDevelop.Ide.Gui.Document document, 
int offset, out DomRegion expressionRegion);

That'll ensure that it always searches in the given document.

Thanks
Mike
> Hello all,
> I suppose I got something completely wrong here, but when I try calling
> CurrentRefactoryOperationsHandler.GetItem (document, out resolveResult);
> when document is not the current open document, resolveResult is null.
> However, when the document is the current open document, the resolveResult
> isn't null. Any ideas what am I doing wrong and moreover how can I get
> ResolveResult on a certain position, on a certain document?
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/CurrentRefactoryOperationsHandler-GetItem-document-out-typeResult-Not-Working-tp4461179p4461179.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list