Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute fetchers as code action #536

Closed
MangoIV opened this issue Jun 26, 2024 · 1 comment
Closed

execute fetchers as code action #536

MangoIV opened this issue Jun 26, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@MangoIV
Copy link

MangoIV commented Jun 26, 2024

Is your feature request related to a problem? Please describe.
often times, you have some fetcher and then you go back to the terminal to execute them to get the hash. It would be immensely useful to have that within nixd as a code action or code lense

Describe the solution you'd like
when using something like fetchFromGitHub, offer to augment the passed attribute set with the hash computed from prefetching it.

Describe alternatives you've considered
n/a

Additional context
Another options would be to have a code lens automatically populated whenever the language server detects that there can be soemthing prefetched, e.g.

  • language server sees that there's a call to fetchFromGithub
  • language server spawns thread that fetches this
  • language server adds code lens that offers to add a hash = line to the passed attribute set.
@inclyc
Copy link
Member

inclyc commented Jun 26, 2024

Duplicated to #461

@inclyc inclyc closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
@inclyc inclyc added the duplicate This issue or pull request already exists label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants