In the VScode workbook if you are unable to navigate to folders other than /mnt, you will need to update your version of VScode.
Your compute environment must be based on one of the standard Domino Ubuntu 18 images documented here...
In the docker definition of your compute environment add the following code to update VScode to the corrected version
##Update codeserver version so you can navigate to different folders on Mac and Windows RUN cd /opt && rm -rf /opt/codeserver && \ mkdir -p /opt/code-server && \ cd /opt/code-server && \ wget -qO- https://github.com/cdr/code-server/releases/download/1.1156-vsc1.33.1/code-server1.1156-vsc1.33.1-linux-x64.tar.gz | tar zxvf - --strip-components=1 #install the python extension for vs-code RUN \ apt-get update -y && \ apt-get install -y bsdtar && \ mkdir -p /home/ubuntu/.local/share/code-server/extensions/ms-python.python-2019.6.24221 && \ cd /home/ubuntu/.local/share/code-server/extensions/ms-python.python-2019.6.24221 && \ curl -JL https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-python/vsextensions/python/2019.6.24221/vspackage | bsdtar -xvf - extension && \ cd /home/ubuntu/.local/share/code-server/extensions/ms-python.python-2019.6.24221/extension/ && mv * ../ RUN chown -R ubuntu:ubuntu /home/ubuntu/.local/share/code-server/ RUN echo 'export PATH=/opt/code-server:$PATH' >> /home/ubuntu/.domino-defaults
Comments
0 comments
Please sign in to leave a comment.