MCPcopy Create free account
hub / github.com/github/copilot-sdk / getExtension

Function getExtension

scripts/docs-validation/extract.ts:146–161  ·  view source on GitHub ↗
(language: string)

Source from the content-addressed store, hash-verified

144}
145
146function getExtension(language: string): string {
147 switch (language) {
148 case "typescript":
149 return ".ts";
150 case "python":
151 return ".py";
152 case "go":
153 return ".go";
154 case "csharp":
155 return ".cs";
156 case "java":
157 return ".java";
158 default:
159 return ".txt";
160 }
161}
162
163/**
164 * Detect code fragments that can't be validated as standalone files.

Callers 1

generateFileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…