@@ -119,18 +119,19 @@ class CodegenVisitor extends ShapeVisitor.Default<Void> {
119
119
fileManifest = context .getFileManifest ();
120
120
LOGGER .info (() -> String .format ("Generating TypeScript %s for service %s" ,
121
121
settings .generateClient () ? "client" : "server" , service .getId ()));
122
- // Resolve the nullable protocol generator and application protocol.
123
- protocolGenerator = resolveProtocolGenerator (integrations , service , settings );
124
- applicationProtocol = protocolGenerator == null
125
- ? ApplicationProtocol .createDefaultHttpApplicationProtocol ()
126
- : protocolGenerator .getApplicationProtocol ();
127
122
128
123
// Decorate the symbol provider using integrations.
129
124
SymbolProvider resolvedProvider = artifactType .createSymbolProvider (model , settings );
130
125
for (TypeScriptIntegration integration : integrations ) {
131
126
resolvedProvider = integration .decorateSymbolProvider (settings , model , resolvedProvider );
132
127
}
133
128
129
+ // Resolve the nullable protocol generator and application protocol.
130
+ protocolGenerator = resolveProtocolGenerator (integrations , service , settings );
131
+ applicationProtocol = protocolGenerator == null
132
+ ? ApplicationProtocol .createDefaultHttpApplicationProtocol ()
133
+ : protocolGenerator .getApplicationProtocol ();
134
+
134
135
// Make the symbol provider a cachingSymbolProvider.
135
136
SymbolProvider cachedProvider = SymbolProvider .cache (resolvedProvider );
136
137
// Defining Definitions for TraceFile Generation.
0 commit comments