Skip to content

Commit ff4a992

Browse files
shruti0085wweitao
authored andcommitted
fix: add crypto import (aws#1408)
aws#1389 this change broke LSP initialization as the file does not add the required import for crypto. Added the required import
1 parent f9fffa6 commit ff4a992

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/aws-lsp-codewhisperer/src/language-server/workspaceContext/workspaceContextServer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
Server,
66
WorkspaceFolder,
77
} from '@aws/language-server-runtimes/server-interface'
8+
import * as crypto from 'crypto'
89
import { cleanUrl, isDirectory, isEmptyDirectory, isLoggedInUsingBearerToken } from './util'
910
import { ArtifactManager, FileMetadata, SUPPORTED_WORKSPACE_CONTEXT_LANGUAGES } from './artifactManager'
1011
import { WorkspaceFolderManager } from './workspaceFolderManager'

0 commit comments

Comments
 (0)