Skip to content

Option to show all deps.edn aliases in global deps.edn file #3165

@maxrothman

Description

@maxrothman

Currently, Calva only the deps.edn aliases from deps.edn files outside the project (e.g. ~/.clojure/deps.edn) that are in an allow-list specified by calva.myCljAliases. This was done because some users have very long lists of aliases that would be annoying if they were cluttering up the jack-in alias list. Many users however have relatively short lists of aliases, and it's surprising to have a new alias you just added not show up because you forgot the allow-list exists.

calva.myCljAliases's value is currently a list of aliases. I propose that it also be allowed to take the string value "all", which would show all aliases in all relevant deps.edn files. For example:

// Show no global aliases (the default)
"calva.myCljAliases": []

// Show all global aliases
"calva.myCljAliases": "all"

// Show specific aliases
"calva.myCljAliases": [
  "alias1",
  "alias2"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions