microsoft / microsoft/vscode-documentdb
Internal Optimization: List keys in SecretStorage will become available
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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