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

Function extractArgs

Extension/src/Utility/Process/commandLine.ts:232–245  ·  view source on GitHub ↗
(argsString: string)

Source from the content-addressed store, hash-verified

230 * handles quotes, escapes, and environment variables
231*/
232export function extractArgs(argsString: string): string[] {
233 argsString = argsString.trim();
234 switch (OperatingSystem) {
235 case 'win32':
236 return windows(argsString);
237 case 'linux':
238 case 'darwin':
239 case 'freebsd':
240 case 'openbsd':
241 return posix(argsString);
242 }
243
244 throw new Error(`Unsupported OS: ${OperatingSystem}`);
245}

Callers 1

Calls 3

windowsFunction · 0.85
posixFunction · 0.85
trimMethod · 0.80

Tested by

no test coverage detected