LuaLS / LuaLS/vscode-lua

Git submodules are handled in a weird way

Open
#132 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
215
Forks
62
PR merge metrics
No merged PRs in 30d

Description

Which OS are you using?

Linux

Expected Behaviour

I would like completion and linting to work :(

Actual Behaviour

Capture vidéo du 2023-12-21 21-17-28.webm

The stent folder is a submodule. This bug happens also with every other submodule in my workspace.

Reproduction steps
  1. Open a folder in VSCode with Lua code, which contains Git submodules also with Lua code defining type classes, globals, etc.
  2. Open a file from the main folder which depends on submodule code (classes or globals) in VSCode editor
  3. See these references are unknown or undefined
  4. Open in a second tab a file from the submodule
  5. Go back to the first file, see that the references are right
  6. Close the file from the submodule
  7. Go back to the first file, see that the references are unknown or undefined
Additional Notes

No response

Log

Will provide it full if needed but its long due to being workspace related stuff and I looked into it without finding an error or something suspicious.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are identified in the issue. Reproduce the behavior in a Linux VSCode workspace using the listed steps, then trace workspace and submodule handling in the extension and language-server integration. Done means completion and linting recognize Lua definitions in submodules without opening a submodule file first.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, lua, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.