Skip to content

Commit

Permalink
Setting the default value of DisableGeneratorCache to true
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyrest committed Aug 15, 2024
1 parent 5ea6701 commit 59458db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/FastGenericNew.SourceGenerator/GeneratorOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public readonly partial record struct GeneratorOptions
[GeneratorOption(true)]
public bool AlertGeneratedFile { get; }

[GeneratorOption(false)]
[GeneratorOption(true)]
public bool DisableGeneratorCache { get; }

[GeneratorOption(false)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public GeneratorOptions(AnalyzerConfigOptionsProvider? provider)
Namespace = options.GetOrDefault(nameof(Namespace), "FastGenericNew");
ForceFastNewDelegate = options.GetOrDefault(nameof(ForceFastNewDelegate), false);
AlertGeneratedFile = options.GetOrDefault(nameof(AlertGeneratedFile), true);
DisableGeneratorCache = options.GetOrDefault(nameof(DisableGeneratorCache), false);
DisableGeneratorCache = options.GetOrDefault(nameof(DisableGeneratorCache), true);
PrettyOutput = options.GetOrDefault(nameof(PrettyOutput), false);
MultiThreadedGeneration = options.GetOrDefault(nameof(MultiThreadedGeneration), true);
OutputGenerationInfo = options.GetOrDefault(nameof(OutputGenerationInfo), false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Namespace = FastGenericNew
ForceFastNewDelegate = False
AlertGeneratedFile = True
DisableGeneratorCache = False
DisableGeneratorCache = True
PrettyOutput = True (default: False)
MultiThreadedGeneration = True
OutputGenerationInfo = True (default: False)
Expand All @@ -35,7 +35,7 @@
<FastNew_Namespace>FastGenericNew<FastNew_Namespace />
<FastNew_ForceFastNewDelegate>False<FastNew_ForceFastNewDelegate />
<FastNew_AlertGeneratedFile>True<FastNew_AlertGeneratedFile />
<FastNew_DisableGeneratorCache>False<FastNew_DisableGeneratorCache />
<FastNew_DisableGeneratorCache>True<FastNew_DisableGeneratorCache />
<FastNew_PrettyOutput>True<FastNew_PrettyOutput />
<FastNew_MultiThreadedGeneration>True<FastNew_MultiThreadedGeneration />
<FastNew_OutputGenerationInfo>True<FastNew_OutputGenerationInfo />
Expand Down

0 comments on commit 59458db

Please sign in to comment.