Skip to content

Commit e93aff6

Browse files
committed
hide and comment out highlight controls for release
1 parent d238845 commit e93aff6

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

iTraceVS/highlight_word_tag.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public IEnumerable<ITagSpan<HighlightWordTag>> GetTags(NormalizedSnapshotSpanCol
132132
if (CurrentWord == null)
133133
yield break;
134134

135-
//Hold on to a "snapshot" of the word spans and current word, so that we maintain the same collection throughout
135+
//Hold on to a "snapshot" of the word spans and current word, so that we maintain the same collection throughout
136136
SnapshotSpan currentWord = CurrentWord.Value;
137137

138138
if (spans.Count == 0)
@@ -154,10 +154,9 @@ internal class HighlightWordTaggerProvider : IViewTaggerProvider {
154154

155155
public ITagger<T> CreateTagger<T>(ITextView textView, ITextBuffer buffer) where T : ITag {
156156
//provide highlighting only on the top buffer
157-
if (textView.TextBuffer != buffer)
158-
return null;
159-
160-
ITextStructureNavigator textStructureNavigator =
157+
//if (textView.TextBuffer != buffer)
158+
//return null;
159+
ITextStructureNavigator textStructureNavigator =
161160
TextStructureNavigatorSelector.GetTextStructureNavigator(buffer);
162161

163162
return new HighlightWordTagger(textView, buffer, TextSearchService, textStructureNavigator) as ITagger<T>;

iTraceVS/itrace_windowControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<StackPanel Orientation="Vertical" HorizontalAlignment="Left">
1313
<TextBlock HorizontalAlignment="Left" Height="45" Width="120" FontSize="30" Margin="10,5,10,5"><Run Text="iTraceVS"/></TextBlock>
1414
<Button HorizontalAlignment="Left" Content="Connect to Core" Click="attemptConnection" Height="45" Width="120" x:Name="button1" Margin="10,5,5,5"/>
15-
<CheckBox HorizontalAlignment="Left" Content="Highlight Tokens" Checked="Highlight_Checked" Unchecked="Highlight_Unchecked" Name="highlightBox" Height="20" FontSize="15" Width="145" Margin="10,5,5,5"/>
15+
<!--<CheckBox HorizontalAlignment="Left" Content="Highlight Tokens" Checked="Highlight_Checked" Unchecked="Highlight_Unchecked" Name="highlightBox" Height="20" FontSize="15" Width="145" Margin="10,5,5,5"/>-->
1616
</StackPanel>
1717
</Grid>
1818
</UserControl>

iTraceVS/itrace_windowControl.xaml.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ private void attemptConnection(object sender, RoutedEventArgs e) {
3636
button1.Content = "Disconnect";
3737
}
3838
else {
39-
highlightBox.IsChecked = false;
39+
//highlightBox.IsChecked = false;
4040
socket_manager.closeSocket();
4141
connected = false;
4242
button1.Content = "Connect to Core";
4343
}
4444
}
4545

46-
private void Highlight_Checked(object sender, RoutedEventArgs e) {
47-
highlighting = true;
48-
}
46+
//private void Highlight_Checked(object sender, RoutedEventArgs e) {
47+
// highlighting = true;
48+
//}
4949

50-
private void Highlight_Unchecked(object sender, RoutedEventArgs e) {
51-
highlighting = false;
52-
}
50+
//private void Highlight_Unchecked(object sender, RoutedEventArgs e) {
51+
// highlighting = false;
52+
//}
5353
}
5454
}

0 commit comments

Comments
 (0)