Maintain consistent naming for the same entities across different contexts including code, documentation, APIs, and external systems. When names must differ between contexts, implement fallback mechanisms to handle variations gracefully.
Maintain consistent naming for the same entities across different contexts including code, documentation, APIs, and external systems. When names must differ between contexts, implement fallback mechanisms to handle variations gracefully.
Key principles:
Example from codebase:
// Handle repository name variations gracefully
const tries = [
app.repo, // First try with the original repo name
app.repo.replace(/\.git$/, ""), // If that fails, try without .git suffix
];
// Use consistent server identifiers that match documentation
const servers: Record<string, LSPServer.Info> = LSPServer.getServerIds(); // Use "typescript", not "Typescript"
This prevents user confusion and reduces integration issues when the same logical entity has different naming requirements across different systems.
Enter the URL of a public GitHub repository