File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/core/src/shared/sagemaker/client Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55
6- // import * as vscode from 'vscode'
6+ import * as vscode from 'vscode'
77import * as fs from 'fs'
88import { fromContainerMetadata } from '@aws-sdk/credential-provider-imds'
99import { Service } from 'aws-sdk'
@@ -93,8 +93,7 @@ export class SageMakerSpaceClient {
9393 public async getSageMakerCookies ( forceUpdate = false ) : Promise < SageMakerCookie | undefined > {
9494 if ( forceUpdate || this . cachedCookies == null ) {
9595 try {
96- // const cookiesFilePath = (await vscode.commands.executeCommand('sagemaker.loadCookies')) as string
97- const cookiesFilePath = '/home/sagemaker-user/.aws/sso/cookies.json'
96+ const cookiesFilePath = ( await vscode . commands . executeCommand ( 'sagemaker.loadCookies' ) ) as string
9897 if ( cookiesFilePath ) {
9998 this . cachedCookies = JSON . parse (
10099 fs . readFileSync ( cookiesFilePath , { encoding : 'utf8' } )
You can’t perform that action at this time.
0 commit comments