| 186 | } |
| 187 | |
| 188 | async function makeBinariesExecutable(): Promise<void> { |
| 189 | const promises: Thenable<void>[] = []; |
| 190 | if (process.platform !== 'win32') { |
| 191 | const commonBinaries: string[] = [ |
| 192 | "./bin/cpptools", |
| 193 | "./bin/cpptools-srv", |
| 194 | "./bin/cpptools-srv2", |
| 195 | "./bin/cpptools-wordexp", |
| 196 | "./LLVM/bin/clang-format", |
| 197 | "./LLVM/bin/clang-tidy", |
| 198 | "./debugAdapters/bin/OpenDebugAD7" |
| 199 | ]; |
| 200 | commonBinaries.forEach(binary => promises.push(util.allowExecution(util.getExtensionFilePath(binary)))); |
| 201 | if (process.platform === "darwin") { |
| 202 | const macBinaries: string[] = [ |
| 203 | "./debugAdapters/lldb-mi/bin/lldb-mi" |
| 204 | ]; |
| 205 | macBinaries.forEach(binary => promises.push(util.allowExecution(util.getExtensionFilePath(binary)))); |
| 206 | if (os.arch() === "x64") { |
| 207 | const oldMacBinaries: string[] = [ |
| 208 | "./debugAdapters/lldb/bin/debugserver", |
| 209 | "./debugAdapters/lldb/bin/lldb-mi", |
| 210 | "./debugAdapters/lldb/bin/lldb-argdumper", |
| 211 | "./debugAdapters/lldb/bin/lldb-launcher" |
| 212 | ]; |
| 213 | oldMacBinaries.forEach(binary => promises.push(util.allowExecution(util.getExtensionFilePath(binary)))); |
| 214 | } |
| 215 | } else if (os.arch() === "x64") { |
| 216 | promises.push(util.allowExecution(util.getExtensionFilePath("./bin/libc.so"))); |
| 217 | } |
| 218 | } |
| 219 | await Promise.all(promises); |
| 220 | } |
| 221 | |
| 222 | function sendTelemetry(info: PlatformInformation): void { |
| 223 | const telemetryProperties: { [key: string]: string } = {}; |