Replaced by socketsupply/socket#651
VSCode support for Socket native development
- Install https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
- Copy the relevant
CMakeLists.txt
file from this gist:# For macOS development: wget -O src/CMakeLists.txt https://gist.githubusercontent.com/aleclarson/4da83cffa9d20c11013a99fc98615888/raw/CMakeLists.macos.txt # For iOS development: wget -O src/CMakeLists.txt https://gist.githubusercontent.com/aleclarson/4da83cffa9d20c11013a99fc98615888/raw/CMakeLists.ios.txt
- Generate the
src/compile_commands.json
file needed byclangd
:cd src && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1
- keep CMakeLists.txt aligned with this file by adding a command to the Socket CLI that generates
CMakeLists.txt
for you - add these files (generated by cmake) to
src/.gitignore
.cache/ CMakeCache.txt CMakeFiles/ CMakeLists.txt Makefile cmake_install.cmake compile_commands.json
Replaced by socketsupply/socket#651