Skip to content

Document VS Code specific variables that are supported in settings #743

Open
@dreamflow

Description

@dreamflow

in vscode settings.json :
"ruff.configuration" accepts env-vars independent of lower case or uppe case
"ruff.configuration": "${path_to_ruff_toml}",
this is consistent to env-var access of all other non-ruff settings
in vscode settings.json and windows env-var access in general ,
because env-var-names are case insensitive in windwos .

but "ruff.interpreter" accepts env-vars surprisingly only in all upper case
"ruff.interpreter": [ "${env:PATH_TO_PYTHON_EXE}" ],
but not(!) in lower case (doesn't work) :
"ruff.interpreter": [ "${env:path_to_python_exe}" ],

could please :

  • the "ruff.interpreter" setting be improved to accept env-vars
    independent of lower case or upper case of the env-var-name .
  • both settings "ruff.interpreter" and "ruff.configuration"
    be improved to support the same env var access syntaxes
    ${env: ... } and ${ ... } . maybe the ${ ... } syntax could later be
    deprecated , in favour of the descriptive/explicit ${env: ... } .
    at present it's either or , meaning currently "ruff.configuration"
    supports exclusively only the ${ ... } syntax and "ruff.interpreter"
    supports exclusively only the ${env: ... } syntax .

my environment :

  • ruff-vscode exetension version 2025.22.0
  • vscode 64bit portable 1.99.3
  • Win10 64bit enterprise 22H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationRelated to settings and configurationdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions