дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 19:25:54 +02:00
fix(services): show the service port for debug sessions like for run (#1789)
A direct debug launch had no Run session to carry the app's HTTP port, so its Services node only showed Debugging/Starting. The debugger now parses the same embedded web server startup line as Run, publishes the port on DebugServiceSession, and the node shows :port as soon as the app announces it, exactly like a running service (#1718). Signed-off-by: Inf1mum <[email protected]>
Цей коміт міститься в:
1 джерело
d0c3b9ba34
коміт
b2253a8bc8
6 files changed
+84
-6
No files matched your search
@@ -101,6 +101,14 @@ it("shows debug output/state, pins actions, and does not rebuild the tree for st
|
||||
expect(d.stop).toHaveBeenCalledOnce();
|
||||
});
|
||||
|
||||
it("shows the service port announced by a debug session's application", () => {
|
||||
adoptSession(1, { runConfig: config });
|
||||
appendConsole(1, "stdout", "Tomcat started on port 8080 (http) with context path '/'\n");
|
||||
useDebugRunSessions.setState({ serviceSessions: [summary(1, { httpPort: 8080 })] });
|
||||
render(<ServicesTreeView />);
|
||||
expect(within(screen.getByRole("tree")).getByText(":8080")).toBeTruthy();
|
||||
});
|
||||
|
||||
it("keeps the other parallel instance alive and then displays it", async () => {
|
||||
adoptSession(1);
|
||||
adoptSession(2);
|
||||
|
||||
Reference in new issue
Заблокувати користувача