File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,17 @@ function build-code-server() {
83
83
cd " ${buildPath} /out/vs/server" && yarn --production --ignore-scripts
84
84
rm " ${buildPath} /out/vs/server/" {package.json,yarn.lock}
85
85
86
+ # onigasm 2.2.2 has a bug that makes it broken for PHP files so use 2.2.1.
87
+ # https://github.com/NeekSandhu/onigasm/issues/17
88
+ local onigasmPath=" ${buildPath} /node_modules/onigasm-umd"
89
+ rm -rf " ${onigasmPath} "
90
+ git clone " https://github.com/alexandrudima/onigasm-umd" " ${onigasmPath} "
91
+ cd " ${onigasmPath} " && yarn
&& yarn add --dev
[email protected] && yarn package
92
+ mkdir " ${onigasmPath} -temp"
93
+ mv " ${onigasmPath} /" {release,LICENSE} " ${onigasmPath} -temp"
94
+ rm -rf " ${onigasmPath} "
95
+ mv " ${onigasmPath} -temp" " ${onigasmPath} "
96
+
86
97
prepend-loader " out/vs/server/main.js"
87
98
prepend-loader " out/bootstrap-fork.js"
88
99
You can’t perform that action at this time.
0 commit comments