Skip to content

Update "Open in code editor" to support workdir and filepath #702

@adriengivry

Description

@adriengivry

Problem this feature should fix

When opening a file in code editor (e.g. lua script), the file will be opened, and the directory containing the file will be used as the current workdir. This is an issue since the .luarc.json is at the root of the project, and is required for Lua LSP to function properly.

Expected solution

Update custom code editor command to have both:

  • {path}: path to the file
  • {workdir}: project folder
    The default editor command could look like:
code {workdir} --goto {path}

Metadata

Metadata

Assignees

No one assigned

    Labels

    QoLQuality of Life : Something that can improve users productivity

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions