MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / getVcpkgPathDescriptorFile

Function getVcpkgPathDescriptorFile

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

Source from the content-addressed store, hash-verified

129}
130
131export function getVcpkgPathDescriptorFile(): string {
132 if (process.platform === 'win32') {
133 const pathPrefix: string | undefined = process.env.LOCALAPPDATA;
134 if (!pathPrefix) {
135 throw new Error("Unable to read process.env.LOCALAPPDATA");
136 }
137 return path.join(pathPrefix, "vcpkg/vcpkg.path.txt");
138 } else {
139 const pathPrefix: string = os.homedir();
140 return path.join(pathPrefix, ".vcpkg/vcpkg.path.txt");
141 }
142}
143
144let vcpkgRoot: string | undefined;
145export function getVcpkgRoot(): string {

Callers 1

getVcpkgRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected