File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,17 @@ function build-code-server() {
8383 cd " ${buildPath} /out/vs/server" && yarn --production --ignore-scripts
8484 rm " ${buildPath} /out/vs/server/" {package.json,yarn.lock}
8585
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 onigasm@2.2.1 && yarn package
92+ mkdir " ${onigasmPath} -temp"
93+ mv " ${onigasmPath} /" {release,LICENSE} " ${onigasmPath} -temp"
94+ rm -rf " ${onigasmPath} "
95+ mv " ${onigasmPath} -temp" " ${onigasmPath} "
96+
8697 prepend-loader " out/vs/server/main.js"
8798 prepend-loader " out/bootstrap-fork.js"
8899
You can’t perform that action at this time.
0 commit comments