microsoft / microsoft/vscode-documentdb

Internal Optimization: List keys in SecretStorage will become available

Open
#414 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
31
Forks
22
Avg merge
2d 20h
Merged PRs (30d)
21

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the extension code that stores and deletes secrets, then review the SecretStorage API reference linked in the issue and the context.secrets.keys example. Determine how listing keys can simplify the current storage and deletion flow. Done means the secret-handling logic uses the available key list while preserving existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.