ChrisChinchilla / vale-vscode

A Visual Studio Code extension for the Vale CLI.
https://marketplace.visualstudio.com/items?itemName=ChrisChinchilla.vale-vscode
MIT License
34 stars 5 forks source link

Provide support for multi-root scoped workspace variable #10

Open goerks opened 10 months ago

goerks commented 10 months ago

I'm using the vale-vscode extension in a multi-root workspace environment. The vale executable to be used is downloaded in the build/ext folder.

In the our-repo.code-workspace file, I added this configuration:

  "vale.valeCLI.config": "${workspaceFolder}/.vale.ini",
  "vale.valeCLI.path": "${workspaceFolder}/build/ext/vale"

When opening a markdown file in the doc workspace folder it works all fine, as the downloaded vale executable is referenced correctly.

But when I open a file from an other workspace folder, neighter of the files can be found and two errors are thrown.

Suggestion

Could you provide the scoped multi-root workspace variables, so the following configuration is possible:

  "vale.valeCLI.config": "${workspaceFolder:doc}/.vale.ini",
  "vale.valeCLI.path": "${workspaceFolder:doc}/build/ext/vale"
hangie commented 2 months ago

Released in v0.19.0