Skip to content

Conversation

@azure-sdk
Copy link
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#13653 See eng/common workflow

Copilot AI review requested due to automatic review settings January 23, 2026 01:22
@azure-sdk azure-sdk requested a review from a team as a code owner January 23, 2026 01:22
@azure-sdk azure-sdk requested a review from samvaity January 23, 2026 01:22
@azure-sdk azure-sdk added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels Jan 23, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR syncs the eng/common directory with azure-sdk-tools PR #13653, specifically adding new documentation about code customization options when TypeSpec decorators are insufficient.

Changes:

  • Added a new section "When TypeSpec Isn't Enough: Code Customizations" to the TypeSpec client customizations reference
  • Included a comprehensive table with language-specific code customization guides for C#, Python, Java, JavaScript, and Go
  • Added a decision flow diagram to help developers choose between TypeSpec decorators and code customizations

| **C#** | [C# Customization Guide](https://github.com/microsoft/typespec/blob/main/packages/http-client-csharp/.tspd/docs/customization.md) | Partial classes with `[CodeGenType]`, `[CodeGenMember]`, `[CodeGenSerialization]` attributes |
| **Python** | [Python Customization Guide](https://github.com/Azure/autorest.python/blob/main/docs/customizations.md) | `_patch.py` files at models, operations, and client levels |
| **Java** | [Java Customization Guide](https://github.com/Azure/autorest.java/blob/main/customization-base/README.md) | `Customization` class with `customizeAst()` method |
| **JavaScript** | [JS Customization Guide](https://github.com/Azure/azure-sdk-for-js/wiki/Modular-(DPG)-Customization-Guide) | Copy `src/` to `generated/`, add customizations in `src/` |
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link URL for the JavaScript customization guide appears to reference a GitHub wiki page. Wiki URLs can be fragile as they may change or be reorganized without notice. Consider verifying that this wiki page exists and is the official/canonical reference for JavaScript customization. If possible, link to a documentation file in the repository itself (in the docs/ or .tspd/docs/ directory) as other languages do, which would be more stable and version-controlled.

Suggested change
| **JavaScript** | [JS Customization Guide](https://github.com/Azure/azure-sdk-for-js/wiki/Modular-(DPG)-Customization-Guide) | Copy `src/` to `generated/`, add customizations in `src/` |
| **JavaScript** | [JS Customization Guide](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/Modular-(DPG)-Customization-Guide.md) | Copy `src/` to `generated/`, add customizations in `src/` |

Copilot uses AI. Check for mistakes.
Comment on lines +498 to +510
```
Need to customize SDK?
Can it be done in TypeSpec?
┌────┴────┐
Yes No
│ │
▼ ▼
Use client.tsp Use code customization
decorators (see language guide above)
```
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ASCII art diagram uses box-drawing characters that may not render consistently across all text editors, terminals, or documentation viewers. Some environments may display these characters incorrectly or use different fonts that misalign the diagram. Consider using standard ASCII characters (like |, -, +) for better compatibility, or use a code block with a clear monospace font specification to ensure consistent rendering.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants