Bug 21281 - Highlight usage doesn't update properly when clicking on an already highlighted var
Summary: Highlight usage doesn't update properly when clicking on an already highlight...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 5.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2014-07-12 03:04 UTC by Robert Jeppesen
Modified: 2014-07-16 02:04 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Robert Jeppesen 2014-07-12 03:04:25 UTC
Minor bug: 
Given this code:

```fsharp
let abcdef = 123

let b = abcdef + 123
```

Click on the first `abcdef`. Both highlight. Now click either on another char in the highlighted var, or click on the other `abcdef`: Highlighting is removed, but doesn't reappear.

This was first reported in the F# binding but this is not F# specific. https://github.com/fsharp/fsharpbinding/issues/643
Comment 1 Ram Chandra 2014-07-14 05:54:01 UTC
I have checked this issue and I am able to reproduce this issue.

Steps I followed:

1. Create an "F# Console application" on XS
2.  Write the following code

     let abcdef = 123
     let b = abcdef + 123

When I click on the first "abcdef" I observed that both the variable highlighted and when I click on the second "abcdef" the highlighting is removed. Now, when I click on any other line in text editor and again click on second "abcdef" this time both the text is highlighted but when I click on first "abcdef" the highlighting is removed.

I also observed that the highlighting is working as alternately It depends on what text ("abcdef") we have selected first. 

Screencast: http://www.screencast.com/t/ElJxapPyeJl

Environment Info:

Mac OS X 10.9.3
Xamarin Studio: 5.1.2 (build 0)

Build Information 
Release ID: 501020000
Git revision: 4574b1e5cf09f2e95e486c259bd9267a68c77cb3
Build date: 2014-07-02 20:50:40-04
Xamarin addins: fdea6fe3e36cda39291b39c81133e409c6d6f092
Comment 2 Mike Krüger 2014-07-16 02:04:04 UTC
fixed in 5.3.0.302