Skip to content

Unable to get multiple repositories to show up in Source Control #3321

Closed

Description

@gogobd

OS/Web Information

  • Web Browser: Safari
  • Local OS: macOS Big Sur
  • Remote OS: docker
  • Remote Architecture: i5
  • code-server --version: 3.9.3 fe2dc2d

Steps to Reproduce

  1. git clone https://github.com/cdr/code-server.git && cd code-server && mkdir subdir && cd subdir && git clone https://github.com/zopefoundation/Zope.git
  2. click Source Control
  3. click Views / Source Control Repositories

Expected

Both code-server and Zope repositories should be available in Source Control

Actual

Only code-server repository is available

Logs

I wasn't trying to retrieve any logs yet.

Screenshot

Screenshot 2021-05-08 at 02 09 27

Notes

That's the Dockerfile I was using

FROM debian:buster-slim

ENV SHELL /bin/bash
  
# Install system dependencies
RUN apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get install -y \
    curl \
    wget \
    git \
    screen \
    unzip \
    vim \
    procps \
    locales \
    python3-pip \
 && apt-get clean

# Python unicode issues
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8

# https://github.com/cdr/code-server
## Code server
RUN mkdir -p ~/.local/lib ~/.local/bin
RUN curl -sfL https://github.com/cdr/code-server/releases/download/v3.9.3/code-server-3.9.3-linux-amd64.tar.gz | tar -C ~/.local/lib -xz
RUN mv ~/.local/lib/code-server-3.9.3-linux-amd64 ~/.local/lib/code-server-3.9.3
RUN ln -s ~/.local/lib/code-server-3.9.3/bin/code-server ~/.local/bin/code-server
RUN PATH="~/.local/bin:$PATH"

# Fix broken python plugin # https://github.com/cdr/code-server/issues/2341
RUN mkdir -p ~/.local/share/code-server/ && mkdir -p ~/.local/share/code-server/User && echo "{\"extensions.autoCheckUpdates\": false, \"extensions.autoUpdate\": false}" > ~/.local/share/code-server/User/settings.json 
RUN curl -sfLO https://github.com/microsoft/vscode-python/releases/download/2020.10.332292344/ms-python-release.vsix \
 && ~/.local/bin/code-server --install-extension ./ms-python-release.vsix || true

WORKDIR /app
CMD ~/.local/bin/code-server --bind-addr 0.0.0.0:8080 /app

# docker build -t vscs .
# docker run -p 8080:8080 -it -d vscs
# docker exec -it <dontainer_id> cat /root/.config/code-server/config.yaml

This issue can be reproduced in VS Code: I think Yes

Activity

  1. jsjoeio commented on May 10, 2021

    @jsjoeio
    Contributor

    Steps followed to reproduce

    Here's what I did to reproduce (macOS Big Sur + Chrome + code-server 3.9.3 running locally)

    1. mkdir two-sources && git clone https://github.com/jsjoeio/awesome-interactive-course-platforms.git && git clone https://github.com/jsjoeio/typescript-concepts-and-examples.git
    2. start code-server code-server --auth none
    3. Open two-sources inside code-server
    4. make a change in each repo without committing

    Actual

    Both repositories show up in Source Control

    image

    Next Steps

    This issue can be reproduced in VS Code: I think Yes

    If this can be reproduced upstream, then it's not specific to code-server and should be filed upstream.

  2. added
    upstream:vscodeNeeds to be fixed upstream in VSCode
    and removed
    needs-investigationThis issue needs to be further investigated
    on May 10, 2021
  3. repo-ranger commented on May 10, 2021

    @repo-ranger
    Contributor

    This issue has been marked as 'upstream:vscode'. Please file this upstream: link to open issue
    This issue will automatically close in 5 seconds.

  4. jsjoeio commented on May 10, 2021

    @jsjoeio
    Contributor

    If you think this was closed by mistake or it can be reproduced another way, please reply here and we'll reopen and take a look!

  5. code-asher commented on May 10, 2021

    @code-asher
    Member

    Might be microsoft/vscode#87888. Seems git repositories nested in others don't show up in VS Code (to be more precise it seems to only detect repositories which are immediate children of the root folder).

    One possible workaround would be to add the two directories to a workspace (File > Add Folder to Workspace). It'd be a little strange because the Zope directory here would show up twice in the explorer (once on its own and again under the code-server directory) but it might work well enough.

    Edit: also see microsoft/vscode#37947

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream:vscodeNeeds to be fixed upstream in VSCode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions