Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Conversation

@Techatrix
Copy link
Collaborator

I am currently planning to change how ZLS requests config options using the workspace/Configuration request which has led me to identify some issues with the extension's handling of this request. The extension currently assumes that ZLS will request individual config options instead using a ConfigurationItem with section == "zls" to request all config options as a single JSON object. With these changes, the extension should be able to handle both strategies.

This also has the benefit that it can make supporting config options that are not specified in the package.json trivial without the need for zig.zls.additionalOptions (#182). I plan to open a follow up issue about this.

Techatrix added a commit to zigtools/zls that referenced this pull request Jul 20, 2025
Techatrix added a commit to zigtools/zls that referenced this pull request Jul 22, 2025
Techatrix added a commit to zigtools/zls that referenced this pull request Jul 22, 2025
leecannon referenced this pull request in zigtools/zls Jul 23, 2025
I got to eager.
- handle a `ConfigurationParams` with `section == "zls"`
- improve handling of the `ConfigurationParams.scopeUri` parameter which may be used by ZLS in the future to handle multi workspace projects
- improve handling of nested config options which may be used by ZLS in the future. zigtools/zls#1780
These changes may matter when there are none or multiple workspace
folders.
@Techatrix Techatrix marked this pull request as ready for review July 23, 2025 19:18
@Techatrix Techatrix force-pushed the techatrix/zls-config-middleware branch from 6b6ef1e to d881ff7 Compare July 23, 2025 20:24
@Techatrix Techatrix merged commit 3f56584 into master Jul 24, 2025
2 checks passed
@Techatrix Techatrix deleted the techatrix/zls-config-middleware branch July 24, 2025 17:37
@Techatrix
Copy link
Collaborator Author

@Vexu Would it possible to get a new release of the extension so I can make use of this in ZLS?

@Vexu
Copy link
Member

Vexu commented Jul 24, 2025

@Vexu Would it possible to get a new release of the extension so I can make use of this in ZLS?

Done.

Techatrix added a commit to zigtools/zls that referenced this pull request Jul 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants