File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,25 @@ set -eu
33
44DIR=${1:- src/ }
55DEST_DIR=dist-standalone
6- DEST=dist-standalone/vscode-uses.txt
6+ SDK_DEST=$DEST_DIR /vscode-sdk-uses.txt
7+ CSS_DEST=$DEST_DIR /vscode-css-uses.txt
78mkdir -p $DEST_DIR
89
910{
1011git grep -h ' vscode\.' $DIR |
1112grep -Ev ' //.*vscode' | # remove commented out code
1213sed ' s|.*vscode\.|vscode.|' | # remove everything before vscode.
1314sed ' s/[^a-zA-Z0-9_.].*$//' | # remove everything after last identifier
14- sort | uniq > $DEST
15+ sort | uniq > $SDK_DEST
1516}
17+ echo Wrote uses of the vscode SDK to $( realpath $SDK_DEST )
1618
17- echo Done, wrote uses of the vscode SDK to $( realpath $DEST )
19+ {
20+ grep -rh -- --vscode- webview-ui/build/ |
21+ sed ' s/--vscode/\n--vscode/g' | # One var per line
22+ grep -- --vscode | # Remove lines that don't have vars.
23+ sed ' s/[),"\\].*$//' | # remove from the end of the var name to the end of the line.
24+ sort | uniq > $CSS_DEST
25+ }
26+ echo Wrote vscode vars used to $( realpath $CSS_DEST )
1827
You can’t perform that action at this time.
0 commit comments