Skip to content

Commit 2bceced

Browse files
authored
fix(codecatalyst): "dev environment" wording #3293
"Dev Environment" is the preferred name.
1 parent d8ee3e6 commit 2bceced

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

resources/codecatalyst_connect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Usage:
4-
# When connecting to a development environment
4+
# When connecting to a dev environment
55
# AWS_REGION=… AWS_SSM_CLI=… CODECATALYST_ENDPOINT=… BEARER_TOKEN_LOCATION=… SPACE_NAME=… PROJECT_NAME=… DEVENV_ID=… ./codecatalyst_connect
66

77
set -e
@@ -37,7 +37,7 @@ _parse_json_for_value() {
3737
echo "$json" | grep -o "\"$key\":\"[^\"]*" | grep -o '[^"]*$'
3838
}
3939

40-
# Note: A development environment must have been previously started by VSCode Extension/CodeCatalyst
40+
# Note: dev environment must have been previously started by VSCode Extension/CodeCatalyst
4141
_start_dev_environment_session() {
4242
# Function inputs
4343
local CODECATALYST_ENDPOINT=$1

resources/codecatalyst_connect.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Usage:
2-
# When connecting to a development environment
2+
# When connecting to a dev environment
33
# $Env:AWS_REGION=… $Env:AWS_SSM_CLI=… $Env:CODECATALYST_ENDPOINT=… $Env:BEARER_TOKEN_LOCATION=… $Env:SPACE_NAME=… $Env:PROJECT_NAME=… $Env:DEVENV_ID=… ./code_catalyst_connect.ps1
44

55
function Get-Timestamp {

src/codecatalyst/model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function createCodeCatalystEnvProvider(
108108
type EnvProvider = () => Promise<NodeJS.ProcessEnv>
109109

110110
/**
111-
* Creates a new {@link ChildProcess} class bound to a specific development environment. All instances of this
111+
* Creates a new {@link ChildProcess} class bound to a specific dev environment. All instances of this
112112
* derived class will have SSM session information injected as environment variables as-needed.
113113
*/
114114
export function createBoundProcess(envProvider: EnvProvider): typeof ChildProcess {
@@ -174,7 +174,7 @@ export async function getConnectedDevEnv(
174174
}
175175

176176
/**
177-
* Everything needed to connect to a development environment via VS Code or `ssh`
177+
* Everything needed to connect to a dev environment via VS Code or `ssh`
178178
*/
179179
interface DevEnvConnection {
180180
readonly sshPath: string

src/codecatalyst/reconnect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function handleRestart(client: CodeCatalystClient, ctx: ExtContext, envId: strin
5151
memento.update(codecatalystReconnectKey, pendingReconnects)
5252
}
5353
} else {
54-
getLogger().info('codecatalyst: attempting to poll development envionments')
54+
getLogger().info('codecatalyst: attempting to poll dev environments')
5555

5656
// Reconnect devenvs (if coming from a restart)
5757
reconnectDevEnvs(client, ctx).catch(err => {

src/codecatalyst/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ async function verifySSHHost({
235235

236236
const confirmTitle = localize(
237237
'AWS.codecatalyst.confirm.installSshConfig.title',
238-
'{0} Toolkit will add host {1} to ~/.ssh/config. This allows you to use SSH with your development envionments',
238+
'{0} Toolkit will add host {1} to ~/.ssh/config to use SSH with your Dev Environments',
239239
getIdeProperties().company,
240240
configHostName
241241
)

src/shared/clients/codecatalystClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ class CodeCatalystClientInternal {
551551
): Promise<CodeCatalyst.StartDevEnvironmentSessionResponse & { sessionId: string }> {
552552
const r = await this.call(this.sdkClient.startDevEnvironmentSession(args), false)
553553
if (!r.sessionId) {
554-
throw new TypeError('Received falsy development environment "sessionId"')
554+
throw new TypeError('got falsy dev environment "sessionId"')
555555
}
556556
return { ...r, sessionId: r.sessionId }
557557
}
@@ -588,7 +588,7 @@ class CodeCatalystClientInternal {
588588
* TODO: may combine this progress stuff into some larger construct
589589
*
590590
* The cancel button does not abort the start, but rather alerts any callers that any operations that rely
591-
* on the development environment starting should not progress.
591+
* on the dev environment starting should not progress.
592592
*/
593593
public async startDevEnvironmentWithProgress(
594594
args: CodeCatalyst.StartDevEnvironmentRequest,

src/shared/extensionUtilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ async function promptQuickstart(): Promise<void> {
270270
*/
271271
export function showWelcomeMessage(context: vscode.ExtensionContext): void {
272272
if (getCodeCatalystDevEnvId() !== undefined) {
273-
// Do not show clippy in CodeCatalyst development environments.
273+
// Do not show clippy in CodeCatalyst dev environments.
274274
return
275275
}
276276
const version = vscode.extensions.getExtension(VSCODE_EXTENSION_ID.awstoolkit)?.packageJSON.version

src/test/codecatalyst/uriHandlers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe('CodeCatalyst handlers', function () {
9494
message.assertSeverity(SeverityLevel.Error)
9595
})
9696

97-
when(client.getDevEnvironment(anything())).thenReject(new Error('No development environment found'))
97+
when(client.getDevEnvironment(anything())).thenReject(new Error('No dev environment found'))
9898
await handler.handleUri(createConnectUri(devenvId))
9999
await errorMessage
100100
})

0 commit comments

Comments
 (0)