Skip to content

Commit 0064a09

Browse files
committed
✨ Uses cwd as the workspace for outdate
1 parent 8564f2e commit 0064a09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spec-node/devContainersSpecCLI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ async function readConfiguration({
10911091
function outdatedOptions(y: Argv) {
10921092
return y.options({
10931093
'user-data-folder': { type: 'string', description: 'Host path to a directory that is intended to be persisted and share state between sessions.' },
1094-
'workspace-folder': { type: 'string', required: true, description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.' },
1094+
'workspace-folder': { type: 'string', description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.' },
10951095
'config': { type: 'string', description: 'devcontainer.json path. The default is to use .devcontainer/devcontainer.json or, if that does not exist, .devcontainer.json in the workspace folder.' },
10961096
'output-format': { choices: ['text' as 'text', 'json' as 'json'], default: 'text', description: 'Output format.' },
10971097
'log-level': { choices: ['info' as 'info', 'debug' as 'debug', 'trace' as 'trace'], default: 'info' as 'info', description: 'Log level for the --terminal-log-file. When set to trace, the log level for --log-file will also be set to trace.' },
@@ -1123,7 +1123,7 @@ async function outdated({
11231123
};
11241124
let output: Log | undefined;
11251125
try {
1126-
const workspaceFolder = path.resolve(process.cwd(), workspaceFolderArg);
1126+
const workspaceFolder = path.resolve(process.cwd(), workspaceFolderArg ?? '.');
11271127
const configFile = configParam ? URI.file(path.resolve(process.cwd(), configParam)) : undefined;
11281128
const cliHost = await getCLIHost(workspaceFolder, loadNativeModule, logFormat === 'text');
11291129
const extensionPath = path.join(__dirname, '..', '..');

0 commit comments

Comments
 (0)