Closed tomer953 closed 2 years ago
Thanks @tomer953. That is very strange. From what you've described, it sounds like the VSCode client might be caching something. Do you have any other proxies or layers in between? There's no cloudflare or anything funky I'd assume?
The gallery component is pretty dumb and it's been restarted. It makes sense the client might do some caching (or perhaps it's been added recently). I had a really quick look on the VSCode Issues tracker and there wasn't anything obvious aside from a few issues referencing service workers blowing out disk usage (feels smokey) if they're aggressively caching resources. Might need to dig into this more.
Does this manual update button work for you? There might also be some strange fail logs showing up as well.
Hi, no more proxies afaik. and the Manuel button does nothing as I described in section 4.
we need some logs of whats happened when this button clicked, why it says no updates. maybe your python simple server need to cancle caching ? ( I do this sometimes in nodejs+express with this package https://www.npmjs.com/package/nocache )
Also, I wonder if its related to me have multiple instances of vscode open, so after the weekend ill try some more things. (plus ill need to find a way how to easily fake an update as well)
So here some more information:
extension.json
to a newer version, copy it to latest.json
and rename the folder to the package name (ie: 1.0.0 -> 2.0.0)Check for Extension Updates
button and watch the fiddler requestPOST
request to /_apis/public/gallery/extensionquery
{ "filters": [...] , "flags": 950 }
- while filters is array with all my installed extestions{ "filters": [...] , "flags": 439}
- while filters is a smaller array, I think it related to some stats (filterType=7){
"results": [
{
"extensions": [
{...}, {...}, {...}, {...},
{
"identity": "IronGeek.vscode-env",
"extensionId": "..",
"recommended": true,
"versions": [
{
"version": "0.2.0",
"flags": "validated",
"lastUpdated": "2020-10-14T01:43:24.527Z",
"files": [
{
"assetType": "Microsoft.VisualStudio.Code.Manifest",
"source": "https://update.code.visualstudio.com/artifacts/extensions/IronGeek-vscode-env/0.2.0/Microsoft.VisualStudio.Code.Manifest"
}
{...},
],
"properties": [
{...},
],
{...},{...},{...},{...},{...},
}
]
}
]
}
]
}
So the query is see that the extension has another version but do not update it.
only after searching ENV
in the search bar, and triggering another search query, the extension appear with Update to 0.2.0
button (also not updating automatically for some reason)
`
Ill try a few more things and update, but If you have a direction on what causing it please share
Edit: another team member told me that the extensions has been updates on his machine. I will take a look in another machines to examine the issue
Edit 2: It seems that the way I faked the package update is not good enough, and this is why the installation was not automatically after I searched for the extension - I found it because a manual installation is not worked as well. its not really related to the issue because it a side effect of my test, but I guess if I want to fake version update I need also to override the files itself and not only the json files. (since in the installation process it verifies for a matching version inside the vsix package) so for the next tests I will need to find a real update for some extensions
Ok other team members are getting the updates, so it something with my machine, ill try to solve it by myself
Hi,
I just noticed a small issue, the extensions in my vscode is not updating to the lastest version availble in the gallery.
IE:
Check for extensions updates
This steps do not trigger the extensions update, however:
I guess it is cache related, can we solve this behavior ?