File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ import { ContainerNode } from '../explorer/models/containerNode';
55import { reporter } from '../telemetry/telemetry' ;
66const teleCmdId : string = 'vscode-docker.container.open-shell' ;
77
8+ const configOptions : vscode . WorkspaceConfiguration = vscode . workspace . getConfiguration ( 'docker' ) ;
89const engineTypeShellCommands = {
9- [ DockerEngineType . Linux ] : " /bin/sh" ,
10- [ DockerEngineType . Windows ] : " powershell"
10+ [ DockerEngineType . Linux ] : configOptions . get ( 'attachShellCommand.linuxContainer' , ' /bin/sh' ) ,
11+ [ DockerEngineType . Windows ] : configOptions . get ( 'attachShellCommand.windowsContainer' , ' powershell' )
1112}
1213
1314export async function openShellContainer ( context ?: ContainerNode ) {
Original file line number Diff line number Diff line change 352352 " error"
353353 ],
354354 "description" : " Controls the diagnostic severity for flagging a Dockerfile with multiple HEALTHCHECK instructions."
355+ },
356+ "docker.attachShellCommand.linuxContainer" : {
357+ "type" : " string" ,
358+ "default" : " /bin/sh" ,
359+ "description" : " Attach command to use for Linux containers"
360+ },
361+ "docker.attachShellCommand.windowsContainer" : {
362+ "type" : " string" ,
363+ "default" : " powershell" ,
364+ "description" : " Attach command to use for Windows containers"
355365 }
356366 }
357367 },
You can’t perform that action at this time.
0 commit comments