diff --git a/package.json b/package.json index a0d77a2d..64d8662b 100644 --- a/package.json +++ b/package.json @@ -767,6 +767,7 @@ }, "logfilePath": { "type": "string", + "deprecationMessage": "Use `fileLogging` option instead", "description": "A path to a file where all brightscript console output will be written. If null or empty, file logging will be disabled." }, "enableDebugProtocol": { @@ -1772,6 +1773,7 @@ }, "brightscript.debug.logfilePath": { "type": "string", + "deprecationMessage": "Use `fileLogging` option instead", "description": "A path to a file where all brightscript console output will be written. If null or empty, file logging will be disabled.", "scope": "resource" }, @@ -2140,6 +2142,7 @@ "properties": { "brightscript.extensionLogfilePath": { "type": "string", + "deprecationMessage": "Use `fileLogging` option instead", "description": "File where the 'BrightScript Extension' output panel (i.e. debug logs for the extension) will be appended. If omitted, no file logging will be done. ${workspaceFolder} is supported and will point to the first workspace found.", "scope": "resource" } @@ -3544,4 +3547,4 @@ "Debuggers", "Snippets" ] -} +} \ No newline at end of file diff --git a/src/managers/TelemetryManager.ts b/src/managers/TelemetryManager.ts index 4740afeb..64fa20eb 100644 --- a/src/managers/TelemetryManager.ts +++ b/src/managers/TelemetryManager.ts @@ -2,6 +2,7 @@ import TelemetryReporter from '@vscode/extension-telemetry'; import type { Disposable } from 'vscode'; import type { BrightScriptLaunchConfiguration } from '../DebugConfigurationProvider'; import type { RemoteControlModeInitiator } from './RemoteControlManager'; +import * as vscode from 'vscode'; const APP_INSIGHTS_KEY = '8618f206-4732-4729-88ed-d07dcf17f199'; @@ -40,7 +41,11 @@ export class TelemetryManager implements Disposable { isPreLaunchTaskDefined: isDefined(event.preLaunchTask), isComponentLibrariesDefined: isDefined(event.componentLibraries), isDeepLinkUrlDefined: isDefined(event.deepLinkUrl), - isStagingFolderPathDefined: isDefined(event.stagingFolderPath) + isStagingFolderPathDefined: isDefined(event.stagingFolderPath), + isLogfilePathDefined: isDefined(event.logfilePath), + isExtensionLogfilePathDefined: isDefined( + vscode.workspace.getConfiguration('brightscript').get('extensionLogfilePath') + ) }); }