Skip to content

Folder association is broken #49

@Martin-Pitt

Description

@Martin-Pitt

The folder association linking is currently broken in v1.0.3, it was working in v1.0.2

I confirmed this bug:

  1. I did a live test of it working in the previous version,
  2. updated it and then
  3. it wasn't able to find it anymore.

The notification popup says "No master script found for: testfoo.luau" -- the script name is named test/foo in-world and there is a folder with test/foo.luau, note the lack of separators in the notification.

For anyone coming around to this issue, there are two workarounds:

  1. Use the new --@file syntax, but you need to enable it in the settings (slVscodeEdit.sync.useFileMetaForMatching)
  2. Drop back to v1.0.2 to use nested folders

Note for using --@file:

  1. specify the directory and file name (.luau optional), e.g. --@file test/foo.luau worked for me,
  2. Add the --@file line at top of the in-world script (even if it's just the hello world example) and in your vscode file,
  3. Press Edit...

Also turn on slVscodeEdit.sync.includeFileMetaInOutput, so that it will keep the --@file comment saved into the in-world script, which avoids it getting lost when you open it up again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions