Skip to content

Commit

Permalink
simplify using update editor config
Browse files Browse the repository at this point in the history
  • Loading branch information
k3ldar committed Dec 25, 2023
1 parent 6bab752 commit ba6c4f7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
20 changes: 18 additions & 2 deletions src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ dotnet_diagnostic.S3267.severity = none
# IDE1006: Naming Styles
dotnet_diagnostic.IDE1006.severity = none
csharp_indent_labels = one_less_than_current
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_using_directive_placement = outside_namespace:error
csharp_prefer_simple_using_statement = true:warning
csharp_prefer_braces = true:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
Expand All @@ -25,6 +25,11 @@ dotnet_diagnostic.IDE0066.severity = none
csharp_style_prefer_primary_constructors = true:suggestion
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_prefer_switch_expression = false:silent
csharp_space_around_binary_operators = before_and_after
dotnet_diagnostic.IDE0301.severity = none
dotnet_diagnostic.IDE0305.severity = none
dotnet_diagnostic.IDE0300.severity = none
dotnet_diagnostic.IDE0290.severity = none

[*.{cs,vb}]
#### Naming styles ####
Expand Down Expand Up @@ -81,3 +86,14 @@ dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_prefer_collection_expression = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
13 changes: 6 additions & 7 deletions src/GSendEditor/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1011,13 +1011,12 @@ private void tmrUpdateSubprograms_Tick(object sender, EventArgs e)

private void GsendApiWrapper_ServerUriChanged()
{
using (MouseControl mc = MouseControl.ShowWaitCursor(this))
{
_validationThread.ValidateConnection();
_analyzerThread.AnalyzerUpdated();
CreateAnalyzerThread(_gSendContext.ServiceProvider.GetService<IGCodeParserFactory>(),
_serverBasedSubPrograms);
}
using MouseControl mc = MouseControl.ShowWaitCursor(this);
_validationThread.ValidateConnection();
_analyzerThread.AnalyzerUpdated();
CreateAnalyzerThread(_gSendContext.ServiceProvider.GetService<IGCodeParserFactory>(),
_serverBasedSubPrograms);
GC.KeepAlive(mc);
}

#region Shortcuts
Expand Down

0 comments on commit ba6c4f7

Please sign in to comment.