MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / getCppToolsTargetPopulation

Function getCppToolsTargetPopulation

Extension/src/common.ts:1460–1470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1458}
1459
1460export 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
1472export function isVsCodeInsiders(): boolean {
1473 return extensionPath.includes(".vscode-insiders") ||

Callers

nothing calls this directly

Calls 2

checkFileExistsSyncFunction · 0.85
getExtensionFilePathFunction · 0.85

Tested by

no test coverage detected