Skip to content

Commit 994e843

Browse files
Upgrade to version of generator with perf logging (#652)
1 parent 03044a4 commit 994e843

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

codegen/generator/src/OpenAI.Library.Plugin.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20250829.4" />
11+
<PackageReference Include="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20250903.1" />
1212
</ItemGroup>
1313

1414
<!-- Copy output to package dist path for local execution and -->

codegen/generator/src/Visitors/ExperimentalAttributeVisitor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ public class ExperimentalAttributeVisitor : ScmLibraryVisitor
664664

665665
if (!_stableMethods.Contains(lookupName))
666666
{
667-
methodProvider.Update(
668-
attributes: [.. methodProvider.Attributes,
667+
methodProvider.Signature.Update(
668+
attributes: [.. methodProvider.Signature.Attributes,
669669
methodProvider.EnclosingType.Type.Namespace.StartsWith(_realtimeNamespace) || (methodProvider.Signature.ReturnType?.Namespace.StartsWith(_realtimeNamespace) ?? false) ?
670670
_experimental002Attribute :
671671
_experimental001Attribute]);

codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@open-ai/plugin": "file:",
3232
"@azure-tools/typespec-client-generator-core": "0.59.0",
3333
"@azure-tools/typespec-azure-core": "0.59.0",
34-
"@typespec/http-client-csharp": "1.0.0-alpha.20250829.4",
34+
"@typespec/http-client-csharp": "1.0.0-alpha.20250903.1",
3535
"@typespec/http": "1.3.0",
3636
"@typespec/openapi": "1.3.0"
3737
},

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/Invoke-CodeGen.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,17 @@ Push-Location $repoRootPath
269269

270270
try {
271271
Invoke-ScriptWithLogging { npm ci }
272+
if ($LASTEXITCODE -ne 0) {
273+
exit $LASTEXITCODE
274+
}
275+
272276
Invoke-ScriptWithLogging { npm run build -w $codegenFolderPath }
277+
if ($LASTEXITCODE -ne 0) {
278+
exit $LASTEXITCODE
279+
}
273280

274281
Set-Location $specificationFolderPath
275-
Invoke-ScriptWithLogging { npm exec --no -- tsp compile . }
282+
Invoke-ScriptWithLogging { npx tsp compile . --trace @typespec/http-client-csharp }
276283
}
277284
finally {
278285
Pop-Location

0 commit comments

Comments
 (0)