Skip to content

Feature request(s): Improvements to configuration for alternative build systems #357

@alexrp

Description

@alexrp

In zig-msbuild-sdk, I would like to generate a zls.json as part of the build so that users can use ZLS in e.g. VS Code and have things Just Work. There are some limitations in ZLS that prevent this at the moment:

  1. ZLS only searches for zls.json in configuration folders. I need a way to point it to the zls.json that I generate inside the project folder. Usually, this will go into obj/<configuration>/<platform>/zls.json (e.g. obj/Debug/linux-x64/zls.json).
  2. Configuration doesn't seem to be hierarchical. This means that the user wouldn't be able to have a zls.json at a higher level which modifies behavioral options like enable_snippets, operator_completions, etc.
  3. There seems to be no way to communicate Zig packages to ZLS without using zig build in some fashion. This information is readily available in my SDK - I just need a way to pass it to ZLS. A packages list in zls.json might be a reasonable solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions