File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/core/src/codecatalyst Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { CreateDevEnvironmentRequest, UpdateDevEnvironmentRequest } from 'aws-sd
2626import { Auth } from '../auth/auth'
2727import { SsoConnection } from '../auth/connection'
2828import { showManageConnections } from '../auth/ui/vue/show'
29+ import { isInDevEnv } from '../shared/vscode/env'
2930
3031/** "List CodeCatalyst Commands" command. */
3132export 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
You can’t perform that action at this time.
0 commit comments