secondlife / secondlife/sl-vscode-plugin

[LSL] Add support for includes being relative to workspace root.

Open
#67 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
33
Forks
15
Avg merge
14h 50m
Merged PRs (30d)
9

Description

It would be useful to be able to include files from workspace root by formating the include with a leading /

Example

Given the directory structure

workspace
├─ libs/
│  └─ lib.lsl
└─ src/
   └─ main.lsl

If main.lsl can use the following include

#include "/libs/lib.lsl"

To reference lib.lsl

Contributor guide

Open the contributing guide

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

Start by locating the include-resolution entry point in the TypeScript VSCode plugin and reproduce the issue with the workspace, libs, and src structure from the example. Done means an include written as /libs/lib.lsl resolves from the workspace root while the existing relative include behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.