Files
sourcekit-lsp/.devcontainer/default/devcontainer.json
Alex Hoppen ec0a7c4ef3 Make .index-build a subdirectory of .build
This means that users of SourceKit-LSP’s background indexing don’t need to add another directory to their `.gitignore`.
2024-11-04 15:34:59 -08:00

31 lines
896 B
JSON

// Reference: https://containers.dev/implementors/json_reference/
{
"name": "SourceKit-LSP",
"dockerFile": "Dockerfile",
// Allow the processes in the container to attach a debugger
"capAdd": [ "SYS_PTRACE" ],
"securityOpt": [ "seccomp=unconfined" ],
"mounts": [
// Use a named volume for the build products for optimal performance (https://code.visualstudio.com/remote/advancedcontainers/improve-performance#_use-a-targeted-named-volume)
"source=${localWorkspaceFolderBasename}-build,target=${containerWorkspaceFolder}/.build,type=volume"
],
"customizations": {
"vscode": {
"extensions": [
"sswg.swift-lang"
],
"settings": {
"lldb.library": "/usr/lib/liblldb.so",
"swift.buildArguments": [
"-Xcxx",
"-I/usr/lib/swift",
"-Xcxx",
"-I/usr/lib/swift/Block"
]
}
}
}
}