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

Function whichAsync

Extension/src/common.ts:1529–1539  ·  view source on GitHub ↗
(name: string, path?: string)

Source from the content-addressed store, hash-verified

1527}
1528
1529export function whichAsync(name: string, path?: string): Promise<string | undefined> {
1530 return new Promise<string | undefined>(resolve => {
1531 which(name, path ? { path } : {}, (err, resolved) => {
1532 if (err) {
1533 resolve(undefined);
1534 } else {
1535 resolve(resolved);
1536 }
1537 });
1538 });
1539}
1540
1541export const documentSelector: DocumentFilter[] = [
1542 { scheme: 'file', language: 'c' },

Callers 1

canFindClFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected