File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1226,9 +1226,6 @@ function execOptions(y: Argv) {
1226
1226
if ( remoteEnvs ?. some ( remoteEnv => ! / .+ = .* / . test ( remoteEnv ) ) ) {
1227
1227
throw new Error ( 'Unmatched argument format: remote-env must match <name>=<value>' ) ;
1228
1228
}
1229
- if ( ! argv [ 'container-id' ] && ! idLabels ?. length && ! argv [ 'workspace-folder' ] ) {
1230
- throw new Error ( 'Missing required argument: One of --container-id, --id-label or --workspace-folder is required.' ) ;
1231
- }
1232
1229
return true ;
1233
1230
} ) ;
1234
1231
}
@@ -1276,7 +1273,7 @@ export async function doExec({
1276
1273
let output : Log | undefined ;
1277
1274
const isTTY = process . stdin . isTTY && process . stdout . isTTY || logFormat === 'json' ; // If stdin or stdout is a pipe, we don't want to use a PTY.
1278
1275
try {
1279
- const workspaceFolder = workspaceFolderArg ? path . resolve ( process . cwd ( ) , workspaceFolderArg ) : undefined ;
1276
+ const workspaceFolder = path . resolve ( process . cwd ( ) , workspaceFolderArg ?? '.' ) ;
1280
1277
const providedIdLabels = idLabel ? Array . isArray ( idLabel ) ? idLabel as string [ ] : [ idLabel ] : undefined ;
1281
1278
const addRemoteEnvs = addRemoteEnv ? ( Array . isArray ( addRemoteEnv ) ? addRemoteEnv as string [ ] : [ addRemoteEnv ] ) : [ ] ;
1282
1279
const configFile = configParam ? URI . file ( path . resolve ( process . cwd ( ) , configParam ) ) : undefined ;
You can’t perform that action at this time.
0 commit comments