QL: Update devcontainer files

This commit is contained in:
Shati Patel
2021-05-26 10:22:53 +00:00
committed by GitHub
parent cacefbe075
commit 6bb91f4080
2 changed files with 4 additions and 4 deletions

View File

@@ -23,14 +23,14 @@ if [ "${CURRENT_CODEQL_BIN}" != "${LATEST_CODEQL_BIN}" ]; then
fi
fi
echo "Build the Ruby extractor"
echo "Build the QL extractor"
# clone the git dependencies using "git clone" because cargo's builtin git support is rather slow
REPO_DIR="${CARGO_HOME:-/home/vscode/.cargo}/git/db"
REPO_DIR_ERB="${REPO_DIR}/tree-sitter-embedded-template-4c796e3340c233b6"
REPO_DIR_RUBY="${REPO_DIR}/tree-sitter-ruby-666a40ce046f8e7a"
REPO_DIR_QL="${REPO_DIR}/tree-sitter-ql-52319df96d97078e"
mkdir -p "${REPO_DIR}"
test -e "${REPO_DIR_RUBY}" || git clone -q --bare https://github.com/tree-sitter/tree-sitter-ql.git "${REPO_DIR_RUBY}"
test -e "${REPO_DIR_QL}" || git clone -q --bare https://github.com/tree-sitter/tree-sitter-ql.git "${REPO_DIR_QL}"
./create-extractor-pack.sh

View File

@@ -1,4 +1,4 @@
#! /bin/bash
mkdir -p /home/vscode/.config/codeql
echo '--search-path /workspaces/codeql-ruby' >> /home/vscode/.config/codeql/config
echo '--search-path /workspaces/codeql-ql' >> /home/vscode/.config/codeql/config