Skip to content

Commit 276b2f3

Browse files
committed
use existing mesasges
1 parent 29a7501 commit 276b2f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/amazonq/src/lsp/autoDebug/controller.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
*/
55

66
import * as vscode from 'vscode'
7-
import { getLogger, randomUUID } from 'aws-core-vscode/shared'
7+
import { getLogger, randomUUID, messages } from 'aws-core-vscode/shared'
88
import { AutoDebugLspClient } from './lsp/autoDebugLspClient'
99
import { mapDiagnosticSeverity } from './shared/diagnosticUtils'
1010
import { ErrorContextFormatter } from './diagnostics/errorContext'
1111
import { Problem } from './diagnostics/problemDetector'
12-
1312
export interface AutoDebugConfig {
1413
readonly enabled: boolean
1514
readonly excludedSources: string[]
@@ -87,7 +86,7 @@ export class AutoDebugController implements vscode.Disposable {
8786
public async fixAllProblemsInFile(maxProblems: number = 15): Promise<void> {
8887
const editor = vscode.window.activeTextEditor
8988
if (!editor) {
90-
void vscode.window.showWarningMessage('No active editor found')
89+
void messages.showMessage('warn', 'No active editor found')
9190
return
9291
}
9392

0 commit comments

Comments
 (0)