Skip to content

Expose "Mode" in rails & gitaly ls_files endpoint for VS Code

Description

The Web IDE currently pulls all file objects from the repository using this endpoint:

https://gitlab.com/gitlab-org/gitlab/blob/b9c4272bc67ef77663b7630462b175db01e19aef/app/controllers/projects/find_file_controller.rb#L24

For the VSCode Web IDE replacement, we are also looking at using this endpoint. However, we need the Mode of each git object in the response, since we will be initializing an in-browser filesystem implementation based on OverlayFS (to keep track of changes).

Investigation

Questions:

  • Do we need to do this in a backwards compatible way?

Changelog

  • 2022-03-16 Increased scope to include "Mode"
Edited by Chad Woolley