Skip to content

[Enhancement/Bug] Add global require paths #453

@sewbacca

Description

@sewbacca

Describe the bug
For some projects i have outsourced documentation to a static location on my disk drive. For autocompletion it works fine, since i can use the Lua.workspace.library config, however, if I try to set a require path in Lua.runtime.path, then it doesn't recognize global paths. /global/path/to/modules/?.lua fails. Maybe this is a bug, since i don't know if Windows users can use global paths with C:\global\path\?.lua.

To Reproduce
Steps to reproduce the behavior:

  1. Create a project
  2. Create a modules folder with a module file somewhere else on disk
  3. Add that folder path to Lua.runtime.path
  4. See no autocompletion for require inside the project.

Environment (please complete the following information):

  • OS: Kubuntu
  • Client: VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions