Skip to content

Commit ba7bf47

Browse files
committed
fix: change filePath to fileDiagnostics in CheckDiagnostics interface
1 parent 167408f commit ba7bf47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/amazonq/src/lsp/chat/messages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ export function registerMessageListeners(
568568
languageClient.onRequest(CheckDiagnosticsRequestType.method, async (params: CheckDiagnosticsParams) => {
569569
const result: Record<string, DiagnosticInfo[]> = {}
570570

571-
for (const [filePath, diagnosticJson] of Object.entries(params.filePath)) {
571+
for (const [filePath, diagnosticJson] of Object.entries(params.fileDiagnostics)) {
572572
try {
573573
const uri = vscode.Uri.file(filePath)
574574
const diagnostics = vscode.languages.getDiagnostics(uri)
@@ -601,7 +601,7 @@ export function registerMessageListeners(
601601
result[filePath] = diagnosticJson || []
602602
}
603603
}
604-
return { filePath: result }
604+
return { fileDiagnostics: result }
605605
})
606606

607607
// Register openWorkspaceFile handler

0 commit comments

Comments
 (0)