()
| 1458 | } |
| 1459 | |
| 1460 | export function getCppToolsTargetPopulation(): TargetPopulation { |
| 1461 | // If insiders.flag is present, consider this an insiders build. |
| 1462 | // If release.flag is present, consider this a release build. |
| 1463 | // Otherwise, consider this an internal build. |
| 1464 | if (checkFileExistsSync(getExtensionFilePath("insiders.flag"))) { |
| 1465 | return TargetPopulation.Insiders; |
| 1466 | } else if (checkFileExistsSync(getExtensionFilePath("release.flag"))) { |
| 1467 | return TargetPopulation.Public; |
| 1468 | } |
| 1469 | return TargetPopulation.Internal; |
| 1470 | } |
| 1471 | |
| 1472 | export function isVsCodeInsiders(): boolean { |
| 1473 | return extensionPath.includes(".vscode-insiders") || |
nothing calls this directly
no test coverage detected