Version Lens for Visual Studio Code
This project is active
, not sponsored or funded.
This extension shows version information when opening a package or project file in vscode.
It abides by semver rules and uses the Node Semver package to compare and sort versions.
The following languages are supported:
NOTE
TOML needs an extenstion that registers the TOML language with vscode. e.g. https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml
Contents
Click the V icon in the package\project file toolbar.
You can also choose the default startup state by setting versionlens.suggestions.showOnStartup
Can I see pre-release versions?
Yes, click on the tag icon in the package\project file toolbar.
You can also choose the default startup state by setting versionlens.suggestions.showPrereleasesOnStartup
Will this extension install packages for me?
Yes, you can define a task that will run when you save a package document.
To set this up follow the custom task install guide
How do I install this extension?
Follow this link on how to install vscode extensions
Can I install this extension manually?
Yes goto the release page for instructions
I'm not able to install this extention
Try a clean install:
- Shut down vscode
- Delete the extension folder
{home}/.vscode/extensions/pflannery.vscode-versionlens*
- Open vscode and try reinstalling the extension again
If that fails then have a look in the output channel and choose the Log (Extension Host)
in thedrop down. Report the problem here if this doesn't help.
How do I troubleshoot this extension?
Ensure you have "editor.codeLens": true
set in your settings.
Try resetting the cache by running the clear cache command (ctrl+p then type "Clear Cache")
This setting can be changed using versionlens.caching.duration
.
You can try setting this value to 0
when doing tests
but recommended to keep around 3 minutes for normal usage.
Version lens writes a log to an output channel in vscode.
If your experiencing issues please set your versionlens.logging.level
to debug
(vscode needs to be restarted)
Then open the channel like:
In the worst case no logs are output. There maybe an error in the developer tools of vscode. You can open the dev tools from the help menu
in vscode (Ctrl+Shift+I)
License
Licensed under ISC
Copyright © 2016+ contributors