Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add options to start VSCode client with unencrypted connection #788

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

viktorsaws
Copy link
Contributor

Problem

VSCode sample client works only with encrypted connection to Language Server runtime.

Solution

Allow to start unencrypted connection, controlled with ENABLE_ENCRYPTION env variable.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@viktorsaws viktorsaws requested a review from a team as a code owner February 20, 2025 10:27
@@ -172,11 +172,11 @@ export async function activateDocumentsLanguageServer(extensionContext: Extensio
const client = new LanguageClient('awsDocuments', 'AWS Documents Language Server', serverOptions, clientOptions)

if (enableIamProvider) {
await registerIamCredentialsProviderSupport(client, extensionContext)
await registerIamCredentialsProviderSupport(client, extensionContext, enableEncryptionInit)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at some point does it make sense to just create a config class or a .env that evaluates the env vars for you? That way you don't have to pass this around everywhere and can just do: getEncryption()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants