You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Problem
In Sagemaker Unified Studio(SMUS), user shouldnt be allowed to sign out
of Q Chat extension as per business requirement. In addition to that, Q
Chat Introduction message should display Q Free Tier is only supported
with the upcoming SMUS release
## Solution
1. `isSageMaker` is used to identify if it is SageMaker AI (CodeEditor)
which comes from
[here](https://github.com/aws/sagemaker-code-editor/blob/main/patched-vscode/product.json#L2-L3)
as shared by Sagemaker team. Since SageMaker Unified Studio also uses
the same repository/branch for CodeEditor we required a new environment
variable `SERVICE_NAME` to differentiate SMUS case.
2. Read `SERVICE_NAME` and set a new vscode env context variable
`aws.isSagemakerStudio` to control visibility of Sign out label
3. Sign out option to users is controlled at two places:
- VS Code command palette
- Quick pick UI action
- Both the sign out options are disabled based on the SMUS flag
4. Similarly Q Chat Introduction message in WebView is modified for SMUS
case alone
0 commit comments