Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Apr 4, 2024
1 parent a09f2f0 commit cbeebe2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/OneWare.Essentials/Controls/SearchBox.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public SearchBox()
{
InitializeComponent();

SearchTextBox.WhenValueChanged<TextBox, string>(x => x.Text).Subscribe(x => OnTextAddedEvent());
SearchTextBox.WhenValueChanged(x => x.Text).Subscribe(_ => OnTextAddedEvent());

KeyDown += SearchTextBox_KeyDown;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,22 +510,20 @@ protected virtual void TextEnteredAutoFormat(TextInputEventArgs e)
protected virtual async Task UpdateSymbolsAsync()
{
LastDocumentSymbols = await Service.RequestSymbolsAsync(CurrentFile.FullPath);

return;

if (LastDocumentSymbols is not null)
{
var segments = LastDocumentSymbols
.Where(x => x.IsDocumentSymbolInformation && x.SymbolInformation != null)
.Select(x => x.SymbolInformation!.Location.Range.GenerateTextModification(Editor.CurrentDocument, Brushes.Chocolate))
.ToArray();

Editor.Editor.ModificationService.SetModification("symbol", segments);
}
else
{
Editor.Editor.ModificationService.ClearModification("symbols");
}
// if (LastDocumentSymbols is not null)
// {
// var segments = LastDocumentSymbols
// .Where(x => x.IsDocumentSymbolInformation && x.SymbolInformation != null)
// .Select(x => x.SymbolInformation!.Location.Range.GenerateTextModification(Editor.CurrentDocument, Brushes.Chocolate))
// .ToArray();
//
// Editor.Editor.ModificationService.SetModification("symbol", segments);
// }
// else
// {
// Editor.Editor.ModificationService.ClearModification("symbols");
// }
}

protected virtual async Task ShowSignatureHelpAsync(SignatureHelpTriggerKind triggerKind, string? triggerChar, bool retrigger, SignatureHelp? activeSignatureHelp)
Expand Down

0 comments on commit cbeebe2

Please sign in to comment.