secondlife / secondlife/sl-vscode-plugin
Add "Strict" Mode File Association
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 33
- Forks
- 15
- Avg merge
- 14h 50m
- Merged PRs (30d)
- 9
Description
Request:
Implement a 'strict' mode option. When enabled, clicking the 'Edit' button in-world should open the script file using the object's name as part of its path within VS Code.
Specifically: A script named main in an object named obj_a should be associated to obj_a/main.luau. This prevents scripts from different objects (e.g., a second instance with the same script named any/main.luau) from being incorrectly linked or overwritten.
This is important for editing already existing scripts accurately, especially when object's inventory are managed by name.
Step:
I'm in strict mode? -> yes
Is there a folder in the VS Code project with the same name as the in-world object that the script is associated with? -> yes
Do: Only scan that sub-folder in association function.
Contributor guide
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
Start with the association function and the strict-mode option described in the issue. Trace how the object and script names are currently used, then verify that strict mode limits scanning to the matching object-named subfolder and associates the script with its expected path. Done means distinct object folders no longer resolve to the same script file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 63/100