astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.
Other
945 stars 45 forks source link

Expand VS Code variables when resolving configuration argument #463

Closed charliermarsh closed 2 months ago

charliermarsh commented 2 months ago

Summary

Ensures that the VS Code-specific environment variables, like ${userHome}, are resolved when reading the configuration file path.

Test Plan

Added "ruff.configuration": "${userHome}/x.toml" to settings.json; verified via logs that the extension Failed to read /Users/crmarsh/x.toml.

Screenshot 2024-05-04 at 1 23 53 PM