Skip to content

Commit

Permalink
fix: fix long running interface (#151)
Browse files Browse the repository at this point in the history
* fix longrunning interface corner case

* lint
  • Loading branch information
xiaozhenliu-gg5 authored Nov 20, 2019
1 parent 5583523 commit cd3b388
Show file tree
Hide file tree
Showing 21 changed files with 2,512 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pbjs-genfiles/
.test-out-keymanager
.test-out-showcase
.test-out-translate
.test-out-redis
.client_library
*test-out*
docker/package.tgz
Expand Down
4 changes: 3 additions & 1 deletion typescript/src/schema/proto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ function longrunning(method: MethodDescriptorProto) {

function toFullyQualifiedName(packageName: string, messageName: string) {
if (messageName.includes('.')) {
return messageName;
if (!messageName.startsWith('.')) {
return `.${messageName}`;
} else return messageName;
}
return `.${packageName}.${messageName}`;
}
Expand Down
Loading

0 comments on commit cd3b388

Please sign in to comment.