Skip to content

Server does not automatically discover a project in a sub-folder of the workspace #779

Closed
@alcarney

Description

@alcarney

Expected behavior

Esbonio should be able to automatically find a Sphinx project located in a sub-folder e.g. ${workspaceFolder}/docs and make a reasonable guess at what the sphinx-build command should be.

This can be worked around by setting esbonio.sphinx.buildCommand in either the language client or a pyproject.toml file, but it would be ideal to not have to configure the server upfront.

Actual behavior

The server searches for conf.py in ${workspaceFolder} and all parent folders, missing the conf.py located under docs/.
This is due to self.server.configuration.scope_for(uri) returning ${workspaceFolder} as the configuration scope 🤔

Log output

No response

(Optional) Settings from conf.py

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglspIssues that relate to the language server

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions