Refs: #112249
Complexity: 3
Create Issue
This iteration we finalized the secrets API for storing and retrieving secrets on a per-extension basis. Please read through the API and surrounding comments to make sure they are clear, and test that
- You can store and retrieve a value across reloads
- You are notified of changes to secrets for your extension
- EDIT 21.05.2021:
You cannot access secrets written by other extensions
Basic usage:
export async function activate(context: vscode.ExtensionContext) {
context.secrets.onDidChange(e => { console.log(e); });
await context.secrets.store('test', 'secret');
const result = await context.secrets.get('test');
vscode.window.showInformationMessage(`Secret is ${result}`);
}
Refs: #112249
Complexity: 3
Create Issue
This iteration we finalized the
secretsAPI for storing and retrieving secrets on a per-extension basis. Please read through the API and surrounding comments to make sure they are clear, and test thatYou cannot access secrets written by other extensionsBasic usage: