Commit 90f5459
authored
fix(sagemaker): fix sagemaker.parseCookies cmd not found (#7670)
## Problem
After Remote - SSH to a sagemaker space via VS Code, the amazon Q plugin
cannot be loaded for the following error.
```
2025-07-10 17:23:52.976 [info] ExtensionService#_doActivateExtension amazonwebservices.aws-toolkit-vscode, startup: false, activationEvent: 'onStartupFinished'
2025-07-10 17:23:57.478 [error] Activating extension amazonwebservices.amazon-q-vscode failed due to an error:
2025-07-10 17:23:57.478 [error] Error: command 'sagemaker.parseCookies' not found
at mYe.n (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1855:1328)
at mYe.executeCommand (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1855:1260)
```
## Solution
After discussed with the Sagemaker team folks @sunp and @arkaprav, we
decide that if cmd `sagemaker.parseCookies` not found, we just swallow
the error and add a log for it.
### Test
a local build is created for testing.
<img width="1198" height="793" alt="image"
src="https://github.com/user-attachments/assets/ea726d78-6cb9-4e91-bad7-f0da43cf4c83"
/>
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.1 parent c917133 commit 90f5459
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
0 commit comments