Inlay Hints
Real-time version information displayed inline next to your dependencies.
Table of contents
Overview
Inlay hints appear at the end of each dependency line, showing the current version status at a glance. No need to hover or click - you can see outdated dependencies immediately.
Hint Types
Up to Date
serde = "1.0.210" ✓
The ✓ symbol indicates your version matches the latest available version.
Update Available
tokio = "1.35.0" -> 1.36.0
The -> X.Y.Z format shows the latest version available. Click the code action to update.
Vulnerabilities Detected
ring = "0.16.20" ⚠ 2 vulns
The ⚠ N vulns indicator shows the number of known vulnerabilities. Hover for details.
Deprecated Package
old-package = "1.0.0" ⚠ Deprecated
The package maintainer has marked this package as deprecated. Consider finding an alternative.
Set deprecated.show_in_hints to false, or list the package in deprecated.allow, to hide this marker. See Configuration.
Yanked Version
problematic = "0.5.0" ⊘ Yanked
The specific version has been yanked/withdrawn from the registry. Update immediately.
Local/Path Dependency
my-lib = { path = "../my-lib" } → Local
Local path dependencies don’t have registry versions to check.
Unknown Package
typo-package = "1.0.0" ? Unknown
The package couldn’t be found on the registry. Check the package name for typos.
Configuration
Enable/Disable Hints
{
"lsp": {
"depsy": {
"initialization_options": {
"inlay_hints": {
"enabled": true
}
}
}
}
}
Hide Up-to-Date Hints
To reduce visual noise, hide hints for packages that are already current:
{
"lsp": {
"depsy": {
"initialization_options": {
"inlay_hints": {
"enabled": true,
"show_up_to_date": false
}
}
}
}
}
With this setting, only packages needing attention are shown.
Hover Information
Hovering over any dependency reveals detailed information:
- Package description from the registry
- Homepage URL if available
- Repository URL for source code
- License (SPDX identifier)
- All available versions for reference
- Vulnerability details if any exist
Local dependencies in package.json (workspace:, file:, link:, a relative path or a git URL) are not looked up in the registry. Their hover says the dependency is local, then lists the transitive vulnerabilities the lockfile attributes to it.
Refresh Behavior
- Hints update automatically when you save the file
- Background refresh occurs based on cache TTL (default: 1 hour)
- Force refresh by clearing the cache and restarting Zed
Troubleshooting
Hints Not Appearing
- Verify the extension is installed and enabled
- Check that
inlay_hints.enabledistrue - Ensure the file type is supported
- Check network connectivity to registries
Stale Hints
- Keep the manifest open: data past its cache lifetime (
cache.ttl_secs, 1 hour by default) is fetched again in the background, and the hints update by themselves. Lowering the setting also applies to data already cached; raising it only applies to data fetched afterwards - Clear the cache manually:
rm -rf ~/.cache/depsy/ - Restart Zed
“Unknown” for Valid Packages
- Check package name spelling
- Verify network access to the registry
- Check if the registry is experiencing issues
- For scoped npm packages, ensure format is correct (
@scope/name)