Skip to content

Internal Optimization: List keys in SecretStorage will become available #414

Description

@tnaum-ms

Revisit https://code.visualstudio.com/updates/v1_105#_list-keys-in-secretstorage

VS Code will expose the API to list all keys that an extension has stored in Secret Storage.

export function activate(context: ExtensionContext) {
  const keys: string[] = await context.secrets.keys();

  const value = await context.secrets.get(keys[0]); // a value that exists
}

We can use it to optimize the way we store / delete secrets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Fields

    No fields configured for Task.

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions