Package Version Inlay Hints Does Not Work Without `with pkgs;`
bug
## Describe the bug
Package version inlay hints does not work without `with pkgs;`
## Example
##### Works
```nix
{ pkgs, ... }:
{
key = with pkgs; [
hello
];
}
```
<img width="312" height="213" alt="Image" src="https://github.com/user-attachments/assets/810781f7-e5df-4485-8e23-ff607dd76409" />
##### Broken
```nix
{ pkgs, ... }:
{
key = [
pkgs.hello
];
}
```
<img width="312" height="213" alt="Image" src="https://github.com/user-attachments/assets/d4a22f11-33fb-4e2c-9081-11c602c9151d" />
## To Reproduce
1. **Works**
```nix
{ pkgs, ... }:
{
key = with pkgs; [
hello
];
}
```
2. **Broken**
```nix
{ pkgs, ... }:
{
key = [
pkgs.hello
];
}
```
## Expected behavior
Working package version inlay hints even without `with pkgs;`
## Additional context
### Related
- [ ] #643
- [ ] #713
1 条评论