From c8c7226057fda06a3ea083d9e439a652fa970377 Mon Sep 17 00:00:00 2001 From: Amiya Behera Date: Mon, 5 Feb 2024 10:32:32 +0530 Subject: [PATCH] update --- .devcontainer/devcontainer.json | 25 +++++++++++++ .../{config.yml => config.yml.bak} | 0 .vscode/tasks.json | 37 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 .devcontainer/devcontainer.json rename .github/ISSUE_TEMPLATE/{config.yml => config.yml.bak} (100%) create mode 100644 .vscode/tasks.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..56a3c13 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,25 @@ +{ + "name": "Substrate Node template", + "context": "..", + "settings": { + "terminal.integrated.shell.linux": "/bin/bash", + "lldb.executable": "/usr/bin/lldb" + }, + "extensions": [ + "rust-lang.rust", + "bungcip.better-toml", + "vadimcn.vscode-lldb" + ], + "forwardPorts": [ + 3000, + 9944 + ], + "onCreateCommand": ["cargo build", "cargo check"], + "postStartCommand": "./target/debug/node-template --dev --ws-external", + "menuActions": [ + {"id": "polkadotjs", + "label": "Open PolkadotJS Apps", + "type": "external-preview", + "args": ["https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F/$HOST/wss"]} + ] +} diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml.bak similarity index 100% rename from .github/ISSUE_TEMPLATE/config.yml rename to .github/ISSUE_TEMPLATE/config.yml.bak diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..55b38db --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,37 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Run ", + "type": "shell", + "command": "cargo", + "args": ["run", "--release", "--", "--dev"], + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "always", + "panel": "new" + }, + "problemMatcher": [ + { + "owner": "rust", + "fileLocation": ["relative", "${workspaceRoot}"], + "pattern": { + "regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "endLine": 4, + "endColumn": 5, + "severity": 6, + "message": 7 + } + } + ] + } + ] +} \ No newline at end of file