1Password / op-vscode

1Password for VS Code
https://marketplace.visualstudio.com/items?itemName=1Password.op-vscode
MIT License
209 stars 11 forks source link

Auto-complete secret references inline #170

Open jodyheavener opened 9 months ago

jodyheavener commented 9 months ago

Summary

As of last year there is an API to provide auto-complete suggestions as the user types. It would be cool to provide some degree of auto-completion when a user is typing a secret reference syntax.

Use cases

Rather than having to manually run the "Get from 1Password" command and choose both the item name and field label the user could start typing op:// and as you type to narrow an item and field the auto-complete is auto-updated.

Proposed solution

Use the InlineCompletions API to implement completions: https://github.com/microsoft/vscode-discussions/discussions/26

This will require looking up and storing a list of items. Security implications should be considered as vault names should not be stored in plain text.

Is there a workaround to accomplish this today?

Currently the "Get from 1Password" command is how you get items secret references into a document.