Bug 4235 - Contextual operations not available when cursor position at the end of the token-string
Summary: Contextual operations not available when cursor position at the end of the to...
Status: RESOLVED DUPLICATE of bug 4331
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-04-04 12:18 UTC by David Roth
Modified: 2012-04-07 14:25 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description David Roth 2012-04-04 12:18:32 UTC
On Master:

Contextual operations not available when cursor is not positioned within the token-string. 

Consider you want to use the StringBuilder class:

[#] ==> marks a cursor


void Test()
StringBuilder[#] // No contextual actions available (Import namespace, refactor)


void Test()
StringBuilde[#]r // Contextual actions available (Import namespace, refactor)
Comment 1 Mike Krüger 2012-04-05 06:21:46 UTC
Comment 2 David Roth 2012-04-07 13:44:28 UTC
It works when there is a variable name after the type, for example:

StringBuilder[#cursor#] b; // Does work
StringBuilder[#cursor#] // Does not work
Comment 3 Mike Krüger 2012-04-07 14:20:54 UTC
The problem #2 is a parser issue and has nothing to do with the context action problem. We're working on that
Comment 4 Mike Krüger 2012-04-07 14:25:15 UTC

*** This bug has been marked as a duplicate of bug 4331 ***