One pugin to contain the bulk of the code, which is independent of jdt.ls, lsp4e and lsp4j. Second plugin to contain the jdt.ls specific DelegateCommandHandler implementation. This should allow us to somehow re-use the bulk of the code in STS4 eclipse, i.e. when we have access to JDT from eclipse directly, and there is no jdt.ls process around.
33 lines
847 B
Bash
Executable File
33 lines
847 B
Bash
Executable File
#!/bin/bash
|
|
set -e -x
|
|
|
|
workdir=$(pwd)
|
|
|
|
# Build jdt.ls
|
|
# cd ${HOME}/git/eclipse.jdt.ls
|
|
# jdt_ls_repo=$(pwd)
|
|
# ./mvnw -Pserver-distro -Pupdate-site clean package
|
|
|
|
# Section below disabled for now. So we can work on the 'fallbacks' with missing or old vscode-java
|
|
# Build vscode-java
|
|
#cd ${HOME}/git/vscode-java
|
|
#rm -fr server
|
|
#mkdir server
|
|
#tar -xvzf ${jdt_ls_repo}/org.eclipse.jdt.ls.product/distro/jdt-language-server-*.tar.gz -C ./server
|
|
#npm install
|
|
#rm -fr *.vsix
|
|
#npm install -D vsce
|
|
#./node_modules/.bin/vsce package
|
|
#code --uninstall-extension redhat.java || echo "Not installed redhat.java"
|
|
#code --install-extension *.vsix
|
|
|
|
code --install-extension redhat.java
|
|
|
|
# Build spring boot ls
|
|
cd $workdir
|
|
npm install
|
|
rm -fr *.vsix
|
|
npm run vsce-package
|
|
rm -fr ${home}/.vscode/extensions/Pivotal.vscode-spring-boot-*
|
|
code --install-extension *.vsix
|