wso2 / ballerina-vscode

To keep Ballerina VSCode plugin related issues, discussions, etc.
Apache License 2.0
42 stars 20 forks source link

External endpoint code generation breaks in the Architecture diagram #400

Closed kanushka closed 1 year ago

kanushka commented 1 year ago

Description: External endpoint code generation breaks in the Architecture diagram.

Steps to reproduce:

Sample repo https://github.com/ballerina-guides/gcp-microservices-demo/tree/project-design-demo

https://user-images.githubusercontent.com/24244523/214568079-d4b79848-6ca4-491e-84b5-f47eb01029cf.mp4

kanushka commented 1 year ago

RCA

The issue was in the Service declaration finding logic. The previous implementation added extra lines for each import. But with the license comment, the extra line didn't add.