Skip to content

Commit 58c0543

Browse files
committed
fix(amazonq): fix the logs
1 parent 0098e40 commit 58c0543

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

packages/core/src/amazonq/autoDebug/activation.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,12 @@ export async function activateAutoDebug(
1919
encryptionKey?: Buffer
2020
): Promise<AutoDebugFeature> {
2121
const logger = getLogger('amazonqLsp')
22-
logger.debug('activateAutoDebug: Activating Amazon Q Auto Debug feature')
23-
logger.debug('activateAutoDebug: Config provided: %s', config ? JSON.stringify(config) : 'none')
24-
logger.debug('activateAutoDebug: Client provided: %s', client ? 'yes' : 'no')
25-
logger.debug('activateAutoDebug: Encryption key provided: %s', encryptionKey ? 'yes' : 'no')
26-
2722
try {
2823
// Create and activate the auto debug feature
2924
const autoDebugFeature = new AutoDebugFeature()
30-
logger.debug('activateAutoDebug: AutoDebugFeature instance created')
31-
3225
await autoDebugFeature.activate(context, config, client, encryptionKey)
33-
logger.debug('activateAutoDebug: AutoDebugFeature.activate() completed')
34-
3526
// Add to extension subscriptions for proper cleanup
3627
context.subscriptions.push(autoDebugFeature)
37-
logger.debug('activateAutoDebug: AutoDebugFeature added to extension subscriptions')
38-
3928
logger.debug('activateAutoDebug: Amazon Q Auto Debug feature activated successfully')
4029
return autoDebugFeature
4130
} catch (error) {
@@ -59,30 +48,3 @@ export function getDefaultAutoDebugConfig(): Partial<AutoDebugConfig> {
5948
debounceMs: config.get<number>('debounceMs', 1000),
6049
}
6150
}
62-
63-
/**
64-
* Example integration in main extension activation:
65-
*
66-
* ```typescript
67-
* // In your main extension.ts activate function:
68-
* import { activateAutoDebug, getDefaultAutoDebugConfig } from './amazonq/autoDebug/activation'
69-
*
70-
* export async function activate(context: vscode.ExtensionContext) {
71-
* // ... other activation code ...
72-
*
73-
* // Activate Auto Debug feature
74-
* try {
75-
* const config = getDefaultAutoDebugConfig()
76-
* const autoDebugFeature = await activateAutoDebug(context, config)
77-
*
78-
* // Optional: Store reference for later use
79-
* context.globalState.update('autoDebugFeature', autoDebugFeature)
80-
* } catch (error) {
81-
* console.error('Failed to activate Auto Debug feature:', error)
82-
* // Continue with extension activation even if Auto Debug fails
83-
* }
84-
*
85-
* // ... rest of activation code ...
86-
* }
87-
* ```
88-
*/

0 commit comments

Comments
 (0)