We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1663ca8 commit 63f75e9Copy full SHA for 63f75e9
codegen/generator/src/OpenAILibraryGenerator.cs
@@ -10,14 +10,8 @@ namespace OpenAILibraryPlugin
10
[ExportMetadata("GeneratorName", nameof(OpenAILibraryGenerator))]
11
public class OpenAILibraryGenerator : ScmCodeModelGenerator
12
{
13
- private static OpenAILibraryGenerator? s_instance;
14
- internal static new OpenAILibraryGenerator Instance => s_instance ?? throw new InvalidOperationException("OpenAILibraryGenerator was not initialized.");
15
-
16
[ImportingConstructor]
17
- public OpenAILibraryGenerator(GeneratorContext context) : base(context)
18
- {
19
- s_instance = this;
20
- }
+ public OpenAILibraryGenerator(GeneratorContext context) : base(context) { }
21
22
protected override void Configure()
23
0 commit comments