vtsls not automatically updated to latest version #18349
Labels
defect
[core label]
extension infrastructure
Feedback for extensions APIs, creation, management, etc
typescript
TypeScript programming language support
Check for existing issues
Describe the bug / provide steps to reproduce it
I noticed that the vtsls used in Zed is not up to date. Right now the latest version is
0.2.6
, but when I look atlanguages/vtsls/node_modules/.package-lock.json
it says that it is using vtsls0.2.5
. I looked at the implementation of the vtsls language adapter and am pretty sure the issue is that the function for retrieving the new package versions only does so, if the typescript version is out of date - ignoring the current vtsls version.zed/crates/languages/src/vtsls.rs
Lines 120 to 143 in 19162c3
What probably happened is that typescript got an update, the new version was downloaded (backed by my
package-lock.json
that shows me that I have the latest TS version -5.6.2
), then at some point vtsls released an update that updated the TS version it depends on, but because the TS version is still the same no new fetch happened.I personally solved this in the most straight forward way possible: closing Zed, yeeting the
vtsls
folder and opening Zed again. This causes a refetch.Anyways, the fix should be rather simple, I am leaving this as issue, because I do not think I will have the time to actually make the change any time soon, but maybe someone else can!
Environment
Zed: v0.155.0 (Zed Dev 90a12f5)
OS: Windows 10.0.19045
Memory: 31.3 GiB
Architecture: x86_64
GPU: AMD Radeon(TM) 760M || AMD proprietary driver || 23.40.18.02 (LLPC)
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: