-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harmonize groovy and eclipse.jdt.ls setup and how the server is executed
- use vite-node for all servers - disable wordBasedSuggestions for all client with external servers
- Loading branch information
Showing
20 changed files
with
62 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
## Linked packages are problematic during build, npm i during start will fix it | ||
#node_modules/@typefox/monaco-editor-react | ||
#node_modules/example-client-vite | ||
#node_modules/example-client-webpack | ||
#node_modules/monaco-languageclient | ||
#node_modules/monaco-editor-wrapper | ||
#node_modules/monaco-languageclient-examples | ||
#node_modules/vscode-ws-jsonrpc | ||
|
||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,4 @@ | |
"[json]": { | ||
"editor.defaultFormatter": "vscode.json-language-features" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
FROM gradle:7-jdk17-focal | ||
|
||
ARG MLC_PATH=/home/gradle/mlc | ||
ARG HOME_DIR=/home/gradle | ||
ARG PATH_MLC=${HOME_DIR}/mlc | ||
ARG PATH_GLS=${HOME_DIR}/groovy-language-server | ||
ARG PATH_GROOVY_JAR=${PATH_MLC}/packages/examples/resources/groovy/lib | ||
|
||
RUN apt update \ | ||
&& apt upgrade -y \ | ||
&& apt install -y ca-certificates curl gnupg unzip | ||
&& apt upgrade -y | ||
RUN apt install -y curl | ||
|
||
RUN curl https://get.volta.sh | bash | ||
ENV VOLTA_FEATURE_PNPM=1 | ||
ENV VOLTA_HOME "/root/.volta" | ||
ENV PATH "$VOLTA_HOME/bin:$PATH" | ||
RUN volta install node@20 | ||
|
||
RUN git clone https://github.com/GroovyLanguageServer/groovy-language-server \ | ||
&& cd groovy-language-server \ | ||
# prepare | ||
RUN cd ${HOME_DIR} \ | ||
&& mkdir -p ${PATH_MLC} | ||
|
||
# build groovy language server | ||
RUN cd ${HOME_DIR} \ | ||
&& git clone https://github.com/GroovyLanguageServer/groovy-language-server \ | ||
&& cd ${PATH_GLS} \ | ||
&& ./gradlew build \ | ||
&& cd .. | ||
&& cd ${HOME_DIR} | ||
|
||
# copy repo content | ||
COPY ./ ${PATH_MLC} | ||
|
||
RUN mkdir -p ${MLC_PATH} | ||
# copy language server to target | ||
RUN mkdir -p ${PATH_GROOVY_JAR} \ | ||
&& cp ${PATH_GLS}/build/libs/groovy-language-server-all.jar ${PATH_GROOVY_JAR} | ||
|
||
COPY ./ ${MLC_PATH} | ||
WORKDIR ${PATH_MLC} | ||
|
||
WORKDIR ${MLC_PATH} | ||
CMD ["/bin/bash", "npm i && npm run start:example:server:groovy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters