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 edca7f6 commit 9619661Copy full SHA for 9619661
smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServiceGenerator.java
@@ -324,6 +324,8 @@ private void generateDestroyMethod() {
324
// Generates the destroy() method, and calls the destroy() method of
325
// any runtime plugin that claims to have a destroy method.
326
writer.openBlock("destroy(): void {", "}", () -> {
327
+ // Always call destroy() in SmithyClient class. By default, it's optional.
328
+ writer.write("super.destroy();");
329
writer.pushState(CLIENT_DESTROY_SECTION);
330
for (RuntimeClientPlugin plugin : runtimePlugins) {
331
plugin.getDestroyFunction().ifPresent(destroy -> {
0 commit comments