Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/common/extract-telemetry.sh
3520 views
1
#!/usr/bin/env bash
2
set -e
3
4
cd $BUILD_STAGINGDIRECTORY
5
mkdir extraction
6
cd extraction
7
git clone --depth 1 https://github.com/microsoft/vscode-extension-telemetry.git
8
git clone --depth 1 https://github.com/microsoft/vscode-chrome-debug-core.git
9
git clone --depth 1 https://github.com/microsoft/vscode-node-debug2.git
10
git clone --depth 1 https://github.com/microsoft/vscode-node-debug.git
11
git clone --depth 1 https://github.com/microsoft/vscode-html-languageservice.git
12
git clone --depth 1 https://github.com/microsoft/vscode-json-languageservice.git
13
node $BUILD_SOURCESDIRECTORY/node_modules/.bin/vscode-telemetry-extractor --sourceDir $BUILD_SOURCESDIRECTORY --excludedDir $BUILD_SOURCESDIRECTORY/extensions --outputDir . --applyEndpoints
14
node $BUILD_SOURCESDIRECTORY/node_modules/.bin/vscode-telemetry-extractor --config $BUILD_SOURCESDIRECTORY/build/azure-pipelines/common/telemetry-config.json -o .
15
mkdir -p $BUILD_SOURCESDIRECTORY/.build/telemetry
16
mv declarations-resolved.json $BUILD_SOURCESDIRECTORY/.build/telemetry/telemetry-core.json
17
mv config-resolved.json $BUILD_SOURCESDIRECTORY/.build/telemetry/telemetry-extensions.json
18
cd ..
19
rm -rf extraction
20
21