A3: accept a BOM before the first MCP message; plural-free Problems summary
Found by A2 while writing the alpha checklist: Windows PowerShell 5.1 prefixes piped stdin with a BOM, which lutra mcp rejected; the Problems summary read "1 errors". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
68599fa2ac
commit
c3acd9f60a
3 changed files with 10 additions and 2 deletions
|
|
@ -223,7 +223,7 @@
|
|||
"problems.severity.hint": "Hint",
|
||||
"problems.severity.info": "Information",
|
||||
"problems.severity.warning": "Warning",
|
||||
"problems.summary": "{errors} errors, {warnings} warnings, {infos} other",
|
||||
"problems.summary": "Errors: {errors}, warnings: {warnings}, other: {infos}",
|
||||
"problems.toolWindow.title": "Problems",
|
||||
"project.empty.noFolder": "No folder is open.",
|
||||
"project.openFolder": "Open Folder…",
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ describe("ProblemsToolWindow", () => {
|
|||
items: [diag(4, "warning", "Unused variable"), { ...diag(1, "error", "Undefined method"), code: "E12" }],
|
||||
});
|
||||
await emit({ kind: "diagnosticsChanged", path: "a.php", items: [diag(0, "hint", "Could be final")] });
|
||||
expect(wrapper.get("[data-test=problems-status]").text()).toBe("1 errors, 1 warnings, 1 other");
|
||||
expect(wrapper.get("[data-test=problems-status]").text()).toBe("Errors: 1, warnings: 1, other: 1");
|
||||
const files = wrapper.findAll("[data-test=problems-file]").map((f) => f.text());
|
||||
expect(files[0]).toContain("a.php");
|
||||
expect(files[1]).toContain("Service.php");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue