Skip to content

installing extensions and getInstalled race sometimes #131783

@akosyakov

Description

@akosyakov

I am not sure how to reproduce reliably, but I noticed that sometimes when I use code --install-extension from-vsix --no-sync and VS Code is looking up installed extensions then extensions can be installed but sync. I guess it is because getInstalled already scan extracted extension but miss update to metadata. I could not find any code which can prevent such behaviour.

I think this method should accept initial metadata:

async extractUserExtension(identifierWithVersion: ExtensionIdentifierWithVersion, zipPath: string, token: CancellationToken): Promise<ILocalExtension> {
and write them before renaming, not afterwards to avoid race.

Metadata

Metadata

Assignees

Labels

debtCode quality issuesextensionsIssues concerning extensionsinsiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions