Skip to content

Conversation

jodyheavener
Copy link
Member

1Password CLI will start collecting simple usage information via user agent. To support this op-vscode (by way of op-js) is going to specify a few environment variables for the CLI to pick up:

  • OP_INTEGRATION_NAME: "1Password for VS Code"
  • OP_INTEGRATION_ID: "VSC"
  • OP_INTEGRATION_BUILDNUMBER (numeric)

It does this by calling the op-js helper setClientInfo and passing this information in.

import { default as open } from "open";
import { window } from "vscode";
import { version } from "../package.json";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL you can import from package.json 🧑‍🎓

@jodyheavener jodyheavener merged commit 345d0e3 into main Jul 20, 2022
@jodyheavener jodyheavener deleted the jh/ua-details branch October 26, 2022 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants