microsoft / vscode-azureapicenter

MIT License
10 stars 6 forks source link

feat: generate API Documentation from API code #190

Closed formulahendry closed 2 weeks ago

formulahendry commented 2 weeks ago

Demo: genAPI

Error handling for 4k token limit to show friendly message: 1718677870394

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 87.50000% with 28 lines in your changes missing coverage. Please review.

Project coverage is 39.52%. Comparing base (4087dc5) to head (87e4a59). Report is 3 commits behind head on dev.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190/graphs/tree.svg?width=650&height=150&src=pr&token=TIJgHIZNDD&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft)](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) ```diff @@ Coverage Diff @@ ## dev #190 +/- ## =========================================== + Coverage 28.84% 39.52% +10.68% =========================================== Files 72 71 -1 Lines 4389 3696 -693 Branches 88 109 +21 =========================================== + Hits 1266 1461 +195 + Misses 3123 2234 -889 - Partials 0 1 +1 ``` | [Files](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | Coverage Δ | | |---|---|---| | [src/constants.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190?src=pr&el=tree&filepath=src%2Fconstants.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL2NvbnN0YW50cy50cw==) | `100.00% <100.00%> (ø)` | | | [src/uiStrings.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190?src=pr&el=tree&filepath=src%2FuiStrings.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL3VpU3RyaW5ncy50cw==) | `100.00% <100.00%> (ø)` | | | [src/test/unit/commands/generateApiFromCode.test.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190?src=pr&el=tree&filepath=src%2Ftest%2Funit%2Fcommands%2FgenerateApiFromCode.test.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL3Rlc3QvdW5pdC9jb21tYW5kcy9nZW5lcmF0ZUFwaUZyb21Db2RlLnRlc3QudHM=) | `98.21% <98.21%> (ø)` | | | [src/utils/generalUtils.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190?src=pr&el=tree&filepath=src%2Futils%2FgeneralUtils.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL3V0aWxzL2dlbmVyYWxVdGlscy50cw==) | `75.00% <75.00%> (ø)` | | | [src/extension.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190?src=pr&el=tree&filepath=src%2Fextension.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL2V4dGVuc2lvbi50cw==) | `0.00% <0.00%> (ø)` | | | [src/commands/generateApiFromCode.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/190?src=pr&el=tree&filepath=src%2Fcommands%2FgenerateApiFromCode.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL2NvbW1hbmRzL2dlbmVyYXRlQXBpRnJvbUNvZGUudHM=) | `81.11% <81.11%> (ø)` | |
wenytang-ms commented 2 weeks ago

seems the CI codecov/path is lower than target, better to add ut

formulahendry commented 2 weeks ago

seems the CI codecov/path is lower than target, better to add ut

added