File tree 2 files changed +8
-6
lines changed 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,11 @@ vscode_yarn() {
42
42
cd lib/vscode
43
43
yarn --production --frozen-lockfile
44
44
45
- # VS Code needs a node_modules.asar but that's just a duplicate of stuff we
46
- # already have in node_modules.
45
+ # This is a copy of symlink_asar in ../lib.sh. Look there for details.
47
46
if [ ! -e node_modules.asar ]; then
48
47
if [ " ${WINDIR-} " ]; then
49
- # mklink takes the link name first.
50
48
mklink /J node_modules.asar node_modules
51
49
else
52
- # ln takes the link name second.
53
50
ln -s node_modules node_modules.asar
54
51
fi
55
52
fi
Original file line number Diff line number Diff line change @@ -95,8 +95,13 @@ export OS
95
95
# Defaults to release
96
96
RELEASE_PATH=" ${RELEASE_PATH-release} "
97
97
98
- # Symlink node_modules.asar to node_modules. VS Code needs a node_modules.asar
99
- # but that's just a duplicate of stuff we already have in node_modules.
98
+ # VS Code bundles some modules into an asar which is an archive format that
99
+ # works like tar. It then seems to get unpacked into node_modules.asar.
100
+ #
101
+ # I don't know why they do this but all the dependencies they bundle already
102
+ # exist in node_modules so just symlink it. We have to do this since not only VS
103
+ # Code itself but also extensions will look specifically in this directory for
104
+ # files (like the ripgrep binary or the oniguruma wasm).
100
105
symlink_asar () {
101
106
if [ ! -e node_modules.asar ]; then
102
107
if [ " ${WINDIR-} " ]; then
You can’t perform that action at this time.
0 commit comments