Browse Source

updating launch.json for workspace setup

pull/256/head
Jason Williams 5 years ago
parent
commit
4c18f3acda
  1. 13
      .devcontainer/devcontainer.json
  2. 14
      .vscode/launch.json

13
.devcontainer/devcontainer.json

@ -26,13 +26,18 @@
// 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,
"lldb.launch.sourceLanguages": ["rust"] "lldb.launch.sourceLanguages": [
"rust"
]
}, },
// Uncomment the next line if you want to publish any ports. // Uncomment the next line if you want to publish any ports.
// "appPort": [], // "appPort": [],
// Uncomment the next line to run commands after the container is created - for example installing git. // 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", // "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. // Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": ["vadimcn.vscode-lldb", "matklad.rust-analyzer"], "extensions": [
"postCreateCommand": "rustup toolchain install stable && rustup component add rls rust-src rust-analysis --toolchain stable" "vadimcn.vscode-lldb",
} "matklad.rust-analyzer"
],
"postCreateCommand": "rustup toolchain install stable && rustup component add rust-src rust-analysis --toolchain stable"
}

14
.vscode/launch.json vendored

@ -8,24 +8,20 @@
"type": "lldb", "type": "lldb",
"request": "launch", "request": "launch",
"name": "Launch", "name": "Launch",
"args": [], "program": "${workspaceFolder}/target/debug/boa_cli",
"program": "./target/debug/boa",
"cwd": "${workspaceRoot}",
"stopOnEntry": false,
"sourceLanguages": ["rust"] "sourceLanguages": ["rust"]
}, },
{ {
"name": "(Windows) Launch", "name": "(Windows) Launch",
"type": "cppvsdbg", "type": "cppvsdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/target/debug/boa.exe", "program": "${workspaceFolder}/target/debug/boa_cli.exe",
"stopAtEntry": false,
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"sourceFileMap": { "sourceFileMap": {
"/rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14": "${env:USERPROFILE}\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\src\\rust" "/rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8": "${env:USERPROFILE}/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust"
}, },
"symbolSearchPath": "https://msdl.microsoft.com/download/symbols", "stopAtEntry": false,
"environment": [] "symbolSearchPath": "https://msdl.microsoft.com/download/symbols"
} }
] ]
} }

Loading…
Cancel
Save