Skip to content

Commit f7dc1f1

Browse files
committed
fix how module level constants are handled
1 parent 72d206f commit f7dc1f1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/codecatalyst/model.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ import { VscodeRemoteConnection, ensureDependencies } from '../shared/remoteSess
3333
import { VscodeRemoteSshConfig, sshLogFileLocation } from '../shared/vscodeRemoteSshConfig'
3434

3535
export type DevEnvironmentId = Pick<DevEnvironment, 'id' | 'org' | 'project'>
36-
// export const hostNamePrefix = 'aws-devenv-'
37-
// export const connectScriptPrefix = 'codecatalyst_connect'
36+
export const connectScriptPrefix = 'codecatalyst_connect'
3837

3938
export const docs = {
4039
vscode: {
@@ -206,7 +205,7 @@ export async function prepareDevEnvConnection(
206205
): Promise<DevEnvConnection> {
207206
const { ssm, vsc, ssh } = (await ensureDependencies()).unwrap()
208207
const hostNamePrefix = 'aws-devenv-'
209-
const sshConfig = new VscodeRemoteSshConfig(ssh, hostNamePrefix, 'codecatalyst_connect')
208+
const sshConfig = new VscodeRemoteSshConfig(ssh, hostNamePrefix, connectScriptPrefix)
210209
const config = await sshConfig.ensureValid()
211210

212211
if (config.isErr()) {

src/ec2/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class Ec2ConnectionManager {
192192
const { ssm, vsc, ssh } = (await ensureDependencies()).unwrap()
193193
const keyPath = await this.configureSshKeys(selection, remoteUser)
194194
const hostNamePrefix = 'aws-ec2-'
195-
const sshConfig = new VscodeRemoteSshConfig(ssh, hostNamePrefix, 'ec2-connect', keyPath)
195+
const sshConfig = new VscodeRemoteSshConfig(ssh, hostNamePrefix, 'ec2_connect', keyPath)
196196

197197
const config = await sshConfig.ensureValid()
198198
if (config.isErr()) {

0 commit comments

Comments
 (0)