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

Function trimLegacyQuotes

Extension/src/common.ts:1130–1139  ·  view source on GitHub ↗
(compilerPath?: string)

Source from the content-addressed store, hash-verified

1128 let compilerName: string = "";
1129 let compilerArgsFromCommandLineInPath: string[] = [];
1130 const trimLegacyQuotes = (compilerPath?: string): string | undefined => {
1131 if (compilerPath && useLegacyBehavior) {
1132 // Try to trim quotes from compiler path.
1133 const tempCompilerPath: string[] = extractArgs(compilerPath);
1134 if (tempCompilerPath.length > 0) {
1135 return tempCompilerPath[0];
1136 }
1137 }
1138 return compilerPath;
1139 };
1140 if (compilerPath) {
1141 compilerPath = compilerPath.trim();
1142 if (isCl(compilerPath) || checkExecutableWithoutExtensionExistsSync(compilerPath)) {

Callers 1

Calls 1

extractArgsFunction · 0.70

Tested by

no test coverage detected