Skip to content

Commit 686595e

Browse files
committed
fix
1 parent 18f5e7e commit 686595e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/codecatalyst/commands.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { CreateDevEnvironmentRequest, UpdateDevEnvironmentRequest } from 'aws-sd
2626
import { Auth } from '../auth/auth'
2727
import { SsoConnection } from '../auth/connection'
2828
import { showManageConnections } from '../auth/ui/vue/show'
29+
import { isInDevEnv } from '../shared/vscode/env'
2930

3031
/** "List CodeCatalyst Commands" command. */
3132
export async function listCommands(): Promise<void> {
@@ -230,7 +231,7 @@ export class CodeCatalystCommands {
230231
}
231232

232233
public createDevEnv(): Promise<void> {
233-
if (vscode.env.remoteName === 'ssh-remote') {
234+
if (vscode.env.remoteName === 'ssh-remote' && isInDevEnv()) {
234235
throw new RemoteContextError()
235236
}
236237
return this.withClient(showCreateDevEnv, globals.context, CodeCatalystCommands.declared)
@@ -279,7 +280,7 @@ export class CodeCatalystCommands {
279280
targetPath?: string,
280281
connection?: { startUrl: string; region: string }
281282
): Promise<void> {
282-
if (vscode.env.remoteName === 'ssh-remote') {
283+
if (vscode.env.remoteName === 'ssh-remote' && isInDevEnv()) {
283284
throw new RemoteContextError()
284285
}
285286

0 commit comments

Comments
 (0)