Skip to content

zls should resolve relative paths for didChangeConfiguration #2329

Open
@dotcarmen

Description

@dotcarmen

#2288 was rejected because eg this .zed/settings.json file should be supported:

{
  "lsp": {
    "zls": {
      "settings": {
        "zig_lib_path": "./zig/lib"
      }
    }
  }
}

however, the above configuration causes zls to fallback to the default zig lib path from zig env since ./zig/lib is relative. as a result, zls logs the following:

config option 'zig_lib_path': expected absolute path but got './zig/lib'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions