11{
2- "name" : " Drift Protocol Development (amd64, root) " ,
2+ "name" : " Drift Protocol Development" ,
33 "build" : {
44 "dockerfile" : " Dockerfile" ,
55 "platform" : " linux/amd64"
1010 " source=${localWorkspaceFolder},target=/workdir,type=bind,consistency=cached" ,
1111 " source=drift-target,target=/workdir/target,type=volume,consistency=delegated"
1212 ],
13- "postCreateCommand" : " echo 'Dev container ready. Run : anchor build / anchor test / cargo build'" ,
13+ "postCreateCommand" : " yarn config set ignore-package-manager true && echo 'Dev container ready! You can now run : anchor build, anchor test, cargo build, etc. '" ,
1414 "customizations" : {
1515 "vscode" : {
1616 "extensions" : [
1919 " tamasfe.even-better-toml"
2020 ],
2121 "settings" : {
22+ "rust-analyzer.cachePriming.numThreads" : 1 ,
2223 "rust-analyzer.cargo.buildScripts.enable" : true ,
2324 "rust-analyzer.procMacro.enable" : true ,
24- "terminal.integrated.defaultProfile.linux" : " bash"
25+ "rust-analyzer.checkOnSave" : true ,
26+ "rust-analyzer.check.command" : " clippy" ,
27+ "rust-analyzer.server.extraEnv" : {
28+ "NODE_OPTIONS" : " --max-old-space-size=4096" ,
29+ "RUSTUP_TOOLCHAIN" : " 1.78.0-x86_64-unknown-linux-gnu"
30+ },
31+ "editor.formatOnSave" : true ,
32+ "git.ignoreLimitWarning" : true
2533 }
2634 }
2735 },
28- "forwardPorts" : [8899 , 8900 ],
36+ "forwardPorts" : [
37+ 8899 ,
38+ 8900
39+ ],
2940 "portsAttributes" : {
30- "8899" : { "label" : " Solana Test Validator" , "onAutoForward" : " notify" },
31- "8900" : { "label" : " Solana Test Validator RPC" , "onAutoForward" : " notify" }
41+ "8899" : {
42+ "label" : " Solana Test Validator" ,
43+ "onAutoForward" : " notify"
44+ },
45+ "8900" : {
46+ "label" : " Solana Test Validator RPC" ,
47+ "onAutoForward" : " notify"
48+ }
3249 },
3350 "containerEnv" : {
3451 "ANCHOR_WALLET" : " /root/.config/solana/id.json" ,
3552 "RUST_LOG" : " solana_runtime::message_processor::stable_log=debug"
3653 }
37- }
54+ }
0 commit comments