Skip to content

Commit

Permalink
http-client-java, report TCGC diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed Sep 10, 2024
1 parent 99abec9 commit ef95eb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/http-client-java/emitter/src/code-model-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ export class CodeModelBuilder {
versioning: { previewStringRegex: /$/ },
}); // include all versions and do the filter by ourselves

this.sdkContext.diagnostics.forEach((it) => {
this.program.reportDiagnostic(it);
});

// auth
// TODO: it is not very likely, but different client could have different auth
const auth = getAuthentication(this.program, this.serviceNamespace);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"clean": "rimraf ./node_modules/@typespec/http-client-java ./package-lock.json",
"clean": "rimraf ./node_modules/@typespec/http-client-java ./package-lock.json ./tsp-output",
"format": "npm run -s prettier -- --write",
"check-format": "npm run prettier -- --check",
"prettier": "prettier --config ./.prettierrc.yaml **/*.tsp",
Expand Down

0 comments on commit ef95eb0

Please sign in to comment.