From 1e8a5265e601fb5d601a8c204861e386057b2dd8 Mon Sep 17 00:00:00 2001 From: JackN Date: Fri, 10 May 2024 16:06:40 -0400 Subject: [PATCH] Fix `logDir` to be `logToFolder` --- package.json | 4 ++-- src/extension.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8e865c4..58b9cd3 100644 --- a/package.json +++ b/package.json @@ -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.`" }, @@ -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.`" }, diff --git a/src/extension.ts b/src/extension.ts index 5de768c..09805f1 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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); }