дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-27 04:56:08 +02:00
.NET projects had no run configurations. Projects from .csproj files (and those listed in .sln/.slnx) now get configurations: executable projects (OutputType Exe/WinExe, or the Web SDK) get a .NET Project configuration running dotnet run, one per Project launch profile in Properties/launchSettings.json with its application URL and environment shown; test projects (Microsoft.NET.Test.Sdk) get dotnet test. The form edits project, target framework, launch profile, program arguments and environment, which override the profile's values. Debug builds the project, resolves the output assembly through MSBuild and launches it under netcoredbg, offering to install netcoredbg when missing. The source-text catalog test now ignores Rust character literals when collecting backend strings. Part of #615
36 рядки
1.7 KiB
TypeScript
36 рядки
1.7 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { IpcError } from "@/platform/ipc";
|
|
import { missingAdapter } from "../missingAdapter";
|
|
|
|
const unavailable = (message: string) => new IpcError({ kind: "unavailable", message });
|
|
|
|
describe("missing debug adapters", () => {
|
|
it("offers OpenIDEA's debugpy when the interpreter has none", () => {
|
|
const e = unavailable("debugpy is not installed for /opt/homebrew/bin/python3.14. Install OpenIDEA's copy");
|
|
expect(missingAdapter("debugpy", e)).toMatchObject({ tool: "debugpy", title: "debugpy is not installed" });
|
|
});
|
|
|
|
it("offers the managed install of a missing adapter binary", () => {
|
|
const e = unavailable(
|
|
"debug adapter `js-debug` not found (`js-debug-adapter` is neither installed by OpenIDEA nor on PATH)",
|
|
);
|
|
expect(missingAdapter("js-debug", e)).toMatchObject({
|
|
tool: "js-debug",
|
|
title: "The JavaScript debugger (vscode-js-debug) is not installed",
|
|
});
|
|
expect(
|
|
missingAdapter("kotlin-debug-adapter", unavailable("debug adapter `kotlin-debug-adapter` not found (x)"))?.tool,
|
|
).toBe("kotlin-debug-adapter");
|
|
expect(missingAdapter("netcoredbg", unavailable("debug adapter `netcoredbg` not found (x)"))?.tool).toBe(
|
|
"netcoredbg",
|
|
);
|
|
expect(missingAdapter("delve", unavailable("debug adapter `delve` not found (x)"))?.tool).toBe("delve");
|
|
});
|
|
|
|
it("leaves other failures and adapters without an installer alone", () => {
|
|
expect(missingAdapter("js-debug", unavailable("connection refused"))).toBeNull();
|
|
expect(missingAdapter("js-debug", new Error("debug adapter `js-debug` not found"))).toBeNull();
|
|
expect(missingAdapter("lldb-dap", unavailable("debug adapter `lldb-dap` not found (x)"))).toBeNull();
|
|
});
|
|
});
|