forked from swyddfa/esbonio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lsp: Introduce configuration variables
Configuration objects can now accept variables of the form `${variable}` and have them expanded by the configuration system at runtime. This commit adds support for the following variables - `${scope}`: The full uri of the scope at which the configuration object was requested - `${scopePath}`: The path component of the scope uri - `${scopeFsPath}`: The path component of the scope uri as a filesystem path Currently these configuration variables will only be expanded if they appear in a field that is a simple string. Additionaly, this commit sets the default value for `SphinxConfig.cwd` to be `${scopeFsPath}`. This should mean that any `esbonio.sphinx.buildCommand` values in a `pyproject.toml` file will be evaluated relative to the file's location. Closes swyddfa#711
- Loading branch information
Showing
6 changed files
with
286 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`esbonio.sphinx.buildCommand` settings provided in a `pyproject.toml` file are now resolved relative to the file's location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.