MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / platformChoose

Function platformChoose

src/cppProperties.ts:31–35  ·  view source on GitHub ↗

Helper: Return object depending on current process platform

(win32: A, darwin: B, other: C)

Source from the content-addressed store, hash-verified

29
30/** Helper: Return object depending on current process platform */
31function platformChoose<A, B, C>(win32: A, darwin: B, other: C): A | B | C {
32 return process.platform === 'win32' ? win32 :
33 process.platform === 'darwin' ? darwin :
34 other;
35}
36
37// See: https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
38async function generateCppPropertiesProc(workspaceFolder: string) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected