mirror of https://github.com/boa-dev/boa.git
Jason Williams
5 years ago
committed by
GitHub
1 changed files with 43 additions and 37 deletions
@ -1,40 +1,46 @@ |
|||||||
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at |
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at |
||||||
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile |
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-existing-dockerfile |
||||||
{ |
{ |
||||||
"name": "Existing Dockerfile", |
"name": "Existing Dockerfile", |
||||||
// Sets the run context to one level up instead of the .devcontainer folder. |
// Sets the run context to one level up instead of the .devcontainer folder. |
||||||
"context": "..", |
"context": "..", |
||||||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. |
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. |
||||||
"dockerFile": "../Dockerfile", |
"dockerFile": "../Dockerfile", |
||||||
// The optional 'runArgs' property can be used to specify additional runtime arguments. |
// The optional 'runArgs' property can be used to specify additional runtime arguments. |
||||||
"runArgs": [ |
"runArgs": [ |
||||||
// Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker for details. |
// Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker for details. |
||||||
// "-v","/var/run/docker.sock:/var/run/docker.sock", |
// "-v","/var/run/docker.sock:/var/run/docker.sock", |
||||||
// Uncomment the next line if you will be using a ptrace-based debugger like C++, Go, and Rust. |
// Uncomment the next line if you will be using a ptrace-based debugger like C++, Go, and Rust. |
||||||
"--cap-add=SYS_PTRACE", |
"--cap-add=SYS_PTRACE", |
||||||
"--security-opt", |
"--security-opt", |
||||||
"seccomp=unconfined" |
"seccomp=unconfined" |
||||||
// You may want to add a non-root user to your Dockerfile. On Linux, this will prevent |
// You may want to add a non-root user to your Dockerfile. On Linux, this will prevent |
||||||
// new files getting created as root. See https://aka.ms/vscode-remote/containers/non-root-user |
// new files getting created as root. See https://aka.ms/vscode-remote/containers/non-root-user |
||||||
// for the needed Dockerfile updates and then uncomment the next line. |
// for the needed Dockerfile updates and then uncomment the next line. |
||||||
// "-u", "vscode" |
// "-u", "vscode" |
||||||
], |
], |
||||||
// Use 'settings' to set *default* container specific settings.json values on container create. |
// Use 'settings' to set *default* container specific settings.json values on container create. |
||||||
// You can edit these settings after create using File > Preferences > Settings > Remote. |
// You can edit these settings after create using File > Preferences > Settings > Remote. |
||||||
"settings": { |
"settings": { |
||||||
// This will ignore your local shell user setting for Linux since shells like zsh are typically |
// This will ignore your local shell user setting for Linux since shells like zsh are typically |
||||||
// not in base container images. You can also update this to an specific shell to ensure VS Code |
// not in base container images. You can also update this to an specific shell to ensure VS Code |
||||||
// uses the right one for terminals and tasks. For example, /bin/bash (or /bin/ash for Alpine). |
// uses the right one for terminals and tasks. For example, /bin/bash (or /bin/ash for Alpine). |
||||||
"terminal.integrated.shell.linux": null |
"terminal.integrated.shell.linux": null, |
||||||
}, |
// https://github.com/vadimcn/vscode-lldb/issues/204 |
||||||
// Uncomment the next line if you want to publish any ports. |
// https://users.rust-lang.org/t/solved-how-to-step-into-std-source-code-when-debugging-in-vs-code/25319/5 |
||||||
// "appPort": [], |
"lldb.executable": "rust-lldb", |
||||||
// Uncomment the next line to run commands after the container is created - for example installing git. |
"lldb.launch.sourceLanguages": ["rust"], |
||||||
// "postCreateCommand": "apt-get update && apt-get install -y git", |
// CodeLLDB sourceMap supports Globs! |
||||||
// Add the IDs of extensions you want installed when the container is created in the array below. |
// https://github.com/vadimcn/vscode-lldb/blob/master/CHANGELOG.md#070 |
||||||
"extensions": [ |
"lldb.launch.sourceMap": { |
||||||
"vadimcn.vscode-lldb", |
"/rustc/*/": "/usr/local/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust" |
||||||
"rust-lang.rust" |
} |
||||||
], |
}, |
||||||
"postCreateCommand": "rustup toolchain install stable && rustup component add rls rust-src rust-analysis --toolchain stable" |
// Uncomment the next line if you want to publish any ports. |
||||||
|
// "appPort": [], |
||||||
|
// Uncomment the next line to run commands after the container is created - for example installing git. |
||||||
|
// "postCreateCommand": "apt-get update && apt-get install -y git", |
||||||
|
// Add the IDs of extensions you want installed when the container is created in the array below. |
||||||
|
"extensions": ["vadimcn.vscode-lldb", "rust-lang.rust"], |
||||||
|
"postCreateCommand": "rustup toolchain install stable && rustup component add rls rust-src rust-analysis --toolchain stable" |
||||||
} |
} |
Loading…
Reference in new issue