diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 2e1e53d..55629ea 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -98,7 +98,7 @@ RUN curl -fsSL https://pyenv.run | bash RUN pyenv install ${PYTHON_VERSION} && pyenv global ${PYTHON_VERSION} && pyenv local ${PYTHON_VERSION} RUN pip install --no-cache-dir -r requirements.txt -# # 4. B: Install nvm and node +# 4. B: Install nvm and node RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v"${NVM_VERSION}"/install.sh | bash RUN . "${NVM_DIR}/nvm.sh" && nvm install ${NODE_VERSION} RUN . "${NVM_DIR}/nvm.sh" && nvm use v${NODE_VERSION} @@ -110,7 +110,7 @@ RUN node --version RUN npm --version RUN java --version -# # 5. Cleanup +# 5. Cleanup RUN apt-get autoremove --purge RUN apt-get autoclean diff --git a/Docker/scripts/save.sh b/Docker/scripts/save.sh new file mode 100755 index 0000000..6c4d28d --- /dev/null +++ b/Docker/scripts/save.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +. CONFIG.sh + +# set -o xtrace ## To debug scripts +# set -o errexit ## To exit on error +# set -o errunset ## To exit if a variable is referenced but not set + + +function main() { + SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" + cd "${SCRIPTPATH}" + echo "Working Dir: " $(pwd) + + podman save -o "${CONTAINER}" $1 +} +main $@; diff --git a/Docker/scripts/start.sh b/Docker/scripts/start.sh index fd68d90..c980ca0 100755 --- a/Docker/scripts/start.sh +++ b/Docker/scripts/start.sh @@ -23,7 +23,8 @@ function main() { CONFIG_HOST="${HOME}/.config/lsps" CONFIG_CONTAINER="${HOME}/.config/lsps" - podman run -d -m 4G \ + # podman run -d -m 4G \ + podman run -m 4G \ -p 9999:9999 \ -e HOME="${HOME}" \ -e MAVEN_OPTS="-Duser.home=${HOME}" \ diff --git a/src/languageServers.js b/src/languageServers.js index c1b29e5..f89ad60 100644 --- a/src/languageServers.js +++ b/src/languageServers.js @@ -8,10 +8,15 @@ exports.servers = [ }, { endpointName: "gdscript", args: [ - "./Godot_v4.4-stable_linux.x86_64", ["--headless", "--lsp-port", "9999"] + "godot", [ + "--editor", + "--headless", + "--lsp-port", "6005", + "--path", "{workspace.path}" + ] ], nameEndsWith: ".gd", - connectionType: "stdio", + connectionType: "ipc", relativePath: false }, {