Skip to content

Instantly share code, notes, and snippets.

@kathoef
Last active November 25, 2022 15:09
Show Gist options
  • Save kathoef/3f52e40f1541d661a2c87e0dad001728 to your computer and use it in GitHub Desktop.
Save kathoef/3f52e40f1541d661a2c87e0dad001728 to your computer and use it in GitHub Desktop.
liascript-preview-web extension in code-server does not work?

In a Linux terminal,

$ docker build -t liascript-preview-web:latest -f Dockerfile_debug .
$ docker run -it --rm -p 8080:8080 -v $PWD/config:/home/coder/.config/code-server/ -u "$(id -u):$(id -g)" liascript-preview-web:latest

In a different Linux terminal,

$ cat config/config.yaml 
bind-addr: 127.0.0.1:8080
auth: password
password: c2b403ec70cd778efaf0c643
cert: false

Then open http://127.0.0.1:8080/ in a browser and use password from above.

FROM node:19-bullseye as vscodebundler
RUN npm install -g typescript esbuild vsce
RUN git clone https://github.com/andre-dietrich/liascript-preview-vscode-web
RUN cd liascript-preview-vscode-web && npm install && vsce package && ls
FROM codercom/code-server:4.8.3-bullseye
COPY --from=vscodebundler /liascript-preview-vscode-web/liascript-preview-web-0.2.1.vsix /
RUN code-server --install-extension /liascript-preview-web-0.2.1.vsix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment