swyddfa / esbonio

A language server for working with Sphinx projects.

Home Page:https://docs.esbon.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server should resolve file based config relative to file's location

alcarney opened this issue · comments

Consider the following config from this repo

[tool.esbonio.sphinx]
buildCommand = ["sphinx-build", "-M", "dirhtml", ".", "./_build"]

From a user's perspective it would be nice if the paths . and ./_build were resolved relative to the file's location (${workspaceFolder}/docs), rather than the current behavior where they are resolved relative to ${workspaceFolder}.

The trick is making that information available in the right place, since where the configuration value is sourced from is currently hidden from the code that uses the result - (which is by design)