Skip to content

Commit

Permalink
IDE2003 blank line after block
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnmbond committed Jan 3, 2025
1 parent 623135d commit 943096d
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions PanoramicData.Blazor.Demo/Pages/PDMonaco.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ private void OnSetLanguage(string language)
{
_methodCache.Options.HideDataTypes = language == "rmscript";
}

StateHasChanged();
}

Expand Down
1 change: 1 addition & 0 deletions PanoramicData.Blazor.Demo/Pages/PDTreePage.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ private void OnBeforeSelectionChanged(TreeBeforeSelectionChangeEventArgs<FileExp
args.Cancel = true;
return;
}

EventManager?.Add(new Event("BeforeSelectionChange", new EventArgument("NewPath", args.NewNode?.Data?.Path), new EventArgument("OldPath", args.OldNode?.Data?.Path)));
}

Expand Down
1 change: 1 addition & 0 deletions PanoramicData.Blazor/PDFileModal.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ private async Task OnButtonClick(string text)
catch
{
}

await Modal.HideAsync().ConfigureAwait(true);
}

Expand Down
2 changes: 2 additions & 0 deletions PanoramicData.Blazor/PDForm.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -686,12 +686,14 @@ public async Task SetFieldValueAsync(FormField<TItem> field, object? value)
propInfo?.SetValue(clone, kvp.Value);
}
}

return clone;
}
catch
{
}
}

return null;
}

Expand Down
9 changes: 6 additions & 3 deletions PanoramicData.Blazor/PDFormFooter.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private void Form_ErrorsChanged(object? sender, EventArgs e)
var names = new List<string>();
foreach (var kvp in Form.Errors)
{
if (Form.Fields.Find(x => x.Name == kvp.Key) is FormField<TItem> field)
if (Form.Fields.FirstOrDefault(x => x.Name == kvp.Key) is FormField<TItem> field)
{
names.Add(field.Title);
}
Expand Down Expand Up @@ -196,7 +196,6 @@ private async Task OnNoAsync(MouseEventArgs args)
if (Form?.Item != null)
{
await Form.EditItemAsync(Form.Item, Form.PreviousMode, false).ConfigureAwait(true);
await Click.InvokeAsync("No").ConfigureAwait(true);
}
}

Expand All @@ -209,8 +208,10 @@ private async Task OnSaveAsync(MouseEventArgs args)
{
return;
}

await Form.ResetChanges();
}

await Click.InvokeAsync("Save").ConfigureAwait(true);
}

Expand All @@ -227,9 +228,11 @@ private async Task OnYesAsync(MouseEventArgs args)
{
return;
}

await Form.ResetChanges();
}
await Click.InvokeAsync("Yes").ConfigureAwait(true);

await Click.InvokeAsync("Delete").ConfigureAwait(true);
}
else if (Form.Mode == FormModes.Cancel)
{
Expand Down
2 changes: 2 additions & 0 deletions PanoramicData.Blazor/PDMonacoEditor.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public async Task<string> GetMonacoValueAsync(EndOfLinePreference eol, bool pres
var value = await model.GetValue(eol, preserveBOM);
return value;
}

return string.Empty;
}

Expand All @@ -107,6 +108,7 @@ public async Task<string> GetMonacoValueAsync(Range range, EndOfLinePreference e
var value = await model.GetValueInRange(range, eol);
return value;
}

return string.Empty;
}

Expand Down
3 changes: 3 additions & 0 deletions PanoramicData.Blazor/PDTextArea.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ public async ValueTask DisposeAsync()
{
await _commonModule.DisposeAsync().ConfigureAwait(true);
}

if (_module != null)
{
await _module.InvokeVoidAsync("termTextArea", Id).ConfigureAwait(true);
await _module.DisposeAsync().ConfigureAwait(true);
}

_objRef?.Dispose();
}
catch
Expand Down Expand Up @@ -140,6 +142,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
{
await _commonModule.InvokeVoidAsync("debounceInput", Id, DebounceWait, _objRef).ConfigureAwait(true);
}

_module = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./_content/PanoramicData.Blazor/PDTextArea.razor.js").ConfigureAwait(true);
if (_module != null)
{
Expand Down

0 comments on commit 943096d

Please sign in to comment.