Skip to content

Commit 6d5a5cf

Browse files
authored
fix: add crypto import (#1408)
#1389 this change broke LSP initialization as the file does not add the required import for crypto. Added the required import
1 parent e4d8f61 commit 6d5a5cf

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)