Skip to content

Commit c7868cf

Browse files
committed
Fix getWorkspaceProblems to use an await
1 parent d45275f commit c7868cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/mentions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export async function parseMentions(text: string, cwd: string, urlContentFetcher
104104
}
105105
} else if (mention === "problems") {
106106
try {
107-
const problems = getWorkspaceProblems(cwd)
107+
const problems = await getWorkspaceProblems(cwd)
108108
parsedText += `\n\n<workspace_diagnostics>\n${problems}\n</workspace_diagnostics>`
109109
} catch (error) {
110110
parsedText += `\n\n<workspace_diagnostics>\nError fetching diagnostics: ${error.message}\n</workspace_diagnostics>`

0 commit comments

Comments
 (0)