Problem
The @codeserver use the terminal to run command test opens a terminal via focusTerminal() but never closes it. When running the test repeatedly (especially in CDP mode against a persistent browser), terminal tabs accumulate — each run adds a new one.
Expected behavior
The test should close the terminal it opened during teardown, leaving the code-server UI in the same state it was before the test.
Suggested fix
Add cleanup in the test's step or in a test.afterEach hook to close the terminal panel (e.g., via the Command Palette → "Terminal: Kill All Terminals" or similar).
Context
Observed during local development with connectCDP: 9222 where the browser persists between test runs. Not a problem in CI (fresh browser per run) but makes iterative local development noisy.
Problem
The
@codeserver use the terminal to run commandtest opens a terminal viafocusTerminal()but never closes it. When running the test repeatedly (especially in CDP mode against a persistent browser), terminal tabs accumulate — each run adds a new one.Expected behavior
The test should close the terminal it opened during teardown, leaving the code-server UI in the same state it was before the test.
Suggested fix
Add cleanup in the test's step or in a
test.afterEachhook to close the terminal panel (e.g., via the Command Palette → "Terminal: Kill All Terminals" or similar).Context
Observed during local development with
connectCDP: 9222where the browser persists between test runs. Not a problem in CI (fresh browser per run) but makes iterative local development noisy.