Skip to content

Commit 4518b4a

Browse files
committed
remove useless logs and notifications
1 parent 841355b commit 4518b4a

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

packages/amazonq/src/autoDebug/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const autoDebugRetryConfig = {
1010
/**
1111
* Maximum number of attempts to connect AutoDebug feature to language client
1212
*/
13-
maxAttempts: 5,
13+
maxAttempts: 3,
1414

1515
/**
1616
* Initial delay in milliseconds before first retry attempt

packages/amazonq/src/autoDebug/controller.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export class AutoDebugController implements vscode.Disposable {
5454
async initialize(): Promise<void> {
5555
try {
5656
this.logger.info('AutoDebugController: Initializing auto debug controller')
57-
this.logger.info('AutoDebugController: Controller initialized successfully')
5857
} catch (error) {
5958
this.logger.error('AutoDebugController: Failed to initialize controller: %s', error)
6059
throw error
@@ -119,8 +118,6 @@ export class AutoDebugController implements vscode.Disposable {
119118
*/
120119
async fixSpecificProblems(range?: vscode.Range, diagnostics?: vscode.Diagnostic[]): Promise<void> {
121120
try {
122-
this.logger.debug('AutoDebugController: Fixing specific problems')
123-
124121
const editor = vscode.window.activeTextEditor
125122
if (!editor) {
126123
throw new Error('No active editor found')
@@ -217,8 +214,6 @@ export class AutoDebugController implements vscode.Disposable {
217214
*/
218215
async explainProblems(range?: vscode.Range, diagnostics?: vscode.Diagnostic[]): Promise<void> {
219216
try {
220-
this.logger.debug('AutoDebugController: Explaining problems')
221-
222217
const editor = vscode.window.activeTextEditor
223218
if (!editor) {
224219
throw new Error('No active editor found')
@@ -234,7 +229,6 @@ export class AutoDebugController implements vscode.Disposable {
234229
}
235230

236231
if (!targetDiagnostics || targetDiagnostics.length === 0) {
237-
void vscode.window.showInformationMessage('No problems found to explain')
238232
return
239233
}
240234

@@ -261,21 +255,17 @@ export class AutoDebugController implements vscode.Disposable {
261255
*/
262256
async detectProblems(): Promise<void> {
263257
try {
264-
this.logger.debug('AutoDebugController: Detecting problems')
265-
266258
const editor = vscode.window.activeTextEditor
267259
if (!editor) {
268260
throw new Error('No active editor found')
269261
}
270262

271263
const filePath = editor.document.uri.fsPath
272-
const fileName = editor.document.fileName
273264

274265
// Get all diagnostics for the current file
275266
const allDiagnostics = vscode.languages.getDiagnostics(editor.document.uri)
276267

277268
if (allDiagnostics.length === 0) {
278-
void vscode.window.showInformationMessage(`✅ No problems detected in ${fileName}`)
279269
return
280270
}
281271

@@ -385,7 +375,6 @@ export class AutoDebugController implements vscode.Disposable {
385375
}
386376

387377
public dispose(): void {
388-
this.logger.debug('AutoDebugController: Disposing auto debug controller')
389378
vscode.Disposable.from(...this.disposables).dispose()
390379
}
391380
}

0 commit comments

Comments
 (0)