Skip to content

Pub package name cache is not persisted #4253

@DanTup

Description

@DanTup

The caching of the Pub package name cache is not working because of this code here:

get extensionStoragePath(): string | undefined {
const uri = this.context.globalStorageUri;
const path = uri.scheme === "file" ? fsPath(uri) : undefined;
if (path)
mkDirRecursive(path);
return path;
}

The URI is now a vscode-userdata:/ URI and we only handle file.

We should isntead keep the URI and use workspace.fs to read/write this file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions