Skip to content

Commit

Permalink
[dotnet] add support of components without ctors and apply PrimaryToA…
Browse files Browse the repository at this point in the history
…nyThreadAttributesUpdateAction

GitOrigin-RevId: 685ba748fab830228e8629fb12ac8e738fccd1ec
  • Loading branch information
Nikita Popov authored and van800 committed Aug 26, 2024
1 parent 2048612 commit 9251966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Linq;
using JetBrains.Application.Parts;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Plugins.Godot.ProjectModel;
using JetBrains.ReSharper.Psi.Modules;
Expand All @@ -12,7 +13,7 @@ namespace JetBrains.ReSharper.Plugins.Godot.CSharp.Daemon
/// <summary>
/// Analyzes classes that derives from Godot.GodotObject
/// </summary>
[ElementProblemAnalyzer(typeof(IClassDeclaration), HighlightingTypes = new[] {typeof(MissingParameterlessConstructor)})]
[ElementProblemAnalyzer(Instantiation.DemandAnyThreadUnsafe, typeof(IClassDeclaration), HighlightingTypes = new[] {typeof(MissingParameterlessConstructor)})]
public class ConstructorElementProblemAnalyzer : ElementProblemAnalyzer<IClassDeclaration>
{
protected override void Run(IClassDeclaration element, ElementProblemAnalyzerData data, IHighlightingConsumer consumer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace JetBrains.ReSharper.Plugins.Godot.UsageStatistics
{
[SolutionComponent(InstantiationEx.LegacyDefault)]
[SolutionComponent(Instantiation.DemandAnyThreadUnsafe)]
public class GodotProjectTechnologyProvider : IProjectTechnologyProvider
{
public IEnumerable<string> GetProjectTechnology(IProject project)
Expand All @@ -19,7 +19,7 @@ public IEnumerable<string> GetProjectTechnology(IProject project)
}
}

[SolutionComponent(InstantiationEx.LegacyDefault)]
[SolutionComponent(Instantiation.DemandAnyThreadUnsafe)]
public class GodotSolutionTechnologyProvider : ISolutionTechnologyProvider
{
public IEnumerable<string> GetSolutionTechnology(ISolution solution)
Expand Down

0 comments on commit 9251966

Please sign in to comment.