Skip to content

Commit

Permalink
chore: add documentation for anonymous id param
Browse files Browse the repository at this point in the history
  • Loading branch information
gribnoysup committed Jun 1, 2023
1 parent 1560559 commit 7fa8ea4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"check": "npm run lint && npm run depcheck",
"depcheck": "depcheck",
"package": "npm list --production --parseable --depth=99999 --loglevel=info || true && vsce package --githubBranch main",
"local-install": "npm run package && code --install-extension ./mongodb-vscode-*.vsix",
"local-install": "npm run package && code --install-extension ./mongodb-vscode-*.vsix --force",
"check-vsix-size": "ts-node ./scripts/check-vsix-size.ts",
"release-draft": "node ./scripts/release-draft.js",
"reformat": "prettier --write ."
Expand Down
3 changes: 3 additions & 0 deletions src/utils/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const LINKS = {
github: 'https://github.com/mongodb-js/vscode',
reportBug: 'https://github.com/mongodb-js/vscode/issues',
atlas: 'https://www.mongodb.com/cloud/atlas',
/**
* @param anonymousId Segment analytics `anonymousId` (not `userId`) {@link https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/querystring/}
*/
createAtlasCluster: (anonymousId: string) => {
const ajsAid = anonymousId
? `?ajs_aid=${encodeURIComponent(anonymousId)}`
Expand Down

0 comments on commit 7fa8ea4

Please sign in to comment.