crowdin / vscode-crowdin

Crowdin Explorer for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=Crowdin.vscode-crowdin
MIT License
51 stars 5 forks source link

File picker on `extract string` doesn't show file list using branches #188

Closed InDIOS closed 2 months ago

InDIOS commented 2 months ago

Describe the bug Hello, I'm utilizing the extension in a project with branches, and when attempting to extract text using the command string.extract, the File Picker does not display the file list and remains empty

To Reproduce Steps to reproduce the behavior:

  1. Go to a file
  2. Left-click on the text you wish to extract.
  3. Set the key identifier
  4. File picker is shown as an empty list

Expected behavior The file picker should display the list of translation files within the project.

Screenshots image

Environment:

Additional context I investigated the issue and found that the problem is a bug that was resolved in @crowdin/crowdin-api-client related to listing project files recursively. However, this extension code still employs the outdated method.

Original extension code image

The code that solved the issue for me image