Skip to content

Commit

Permalink
Test cookie grabbing
Browse files Browse the repository at this point in the history
  • Loading branch information
sage-maker committed Aug 30, 2024
1 parent feadcc6 commit a179e11
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
10 changes: 9 additions & 1 deletion patched-vscode/extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,13 @@
},
"resolutions": {
"node-gyp-build": "4.8.1"
}
},
"contributes": {
"commands": [
{
"command": "sagemaker.logCookie",
"title": "SageMaker: Log Cookie"
}
]
}
}
10 changes: 10 additions & 0 deletions patched-vscode/extensions/sagemaker-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,14 @@ export function activate(context: vscode.ExtensionContext) {
initialize(sagemakerCookie);
updateStatusItemWithMetadata(context);
});

// New command
const logCookieCommand = vscode.commands.registerCommand('sagemaker.logCookie', () => {
vscode.commands.executeCommand(PARSE_SAGEMAKER_COOKIE_COMMAND).then(response => {
const sagemakerCookie: SagemakerCookie = response as SagemakerCookie;
console.log('SageMaker Cookie:', sagemakerCookie);
});
});

context.subscriptions.push(logCookieCommand);
}

0 comments on commit a179e11

Please sign in to comment.