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

Function canFindCl

Extension/src/LanguageServer/devcmd.ts:48–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48export async function canFindCl(): Promise<boolean> {
49 if (!isWindows) {
50 return false;
51 }
52 const pathOverride = resolveVariables(extensionContext?.environmentVariableCollection.get('Path')?.value);
53 const path = pathOverride ?? process.env['Path'];
54 const found = await whichAsync('cl.exe', path);
55 return isString(found);
56}
57
58export async function setEnvironment(context?: vscode.ExtensionContext) {
59 if (!isWindows) {

Callers 1

Calls 4

resolveVariablesFunction · 0.90
whichAsyncFunction · 0.90
isStringFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected