Git submodules are handled in a weird way
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
- Open a folder in VSCode with Lua code, which contains Git submodules also with Lua code defining type classes, globals, etc.
- Open a file from the main folder which depends on submodule code (classes or globals) in VSCode editor
- See these references are unknown or undefined
- Open in a second tab a file from the submodule
- Go back to the first file, see that the references are right
- Close the file from the submodule
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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