Skip to content

Commit

Permalink
Merge pull request #92 from probe-rs/fix_log_dir
Browse files Browse the repository at this point in the history
Fix `logDir` to be `logToFolder`
  • Loading branch information
bugadani authored May 10, 2024
2 parents fda1cce + 1e8a526 commit b44458e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"type": "string",
"description": "The path to the log file. This option is ignored if either the `server` or `runtimeArgs` is specified. If no location is specified, the behaviour depends on `--log-to-folder"
},
"logDir": {
"logToFolder": {
"type": "string",
"description": "Enable logging to the default folder. This option is ignored if either the `logFile` or `runtimeArgs` is specified.`"
},
Expand Down Expand Up @@ -359,7 +359,7 @@
"type": "string",
"description": "The path to the log file. This option is ignored if either the `server` or `runtimeArgs` is specified. If no location is specified, the behaviour depends on `--log-to-folder"
},
"logDir": {
"logToFolder": {
"type": "string",
"description": "Enable logging to the default folder. This option is ignored if either the `logFile` or `runtimeArgs` is specified.`"
},
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ class ProbeRSDebugAdapterServerDescriptorFactory implements vscode.DebugAdapterD
if (session.configuration.hasOwnProperty('logFile')) {
args.push('--log-file');
args.push(session.configuration.logFile);
} else if (session.configuration.hasOwnProperty('logDir')) {
args.push('--log-dir');
} else if (session.configuration.hasOwnProperty('logToFolder')) {
args.push('--log-to-folder');
args.push(session.configuration.logDir);
}

Expand Down

0 comments on commit b44458e

Please sign in to comment.