Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start passing in op-js user agent details #44

Merged
merged 2 commits into from
Jul 20, 2022
Merged

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