Skip to content

Test result doesn't always scroll when it comes in #229531

@r3m0t

Description

@r3m0t

Does this issue occur when all extensions are disabled?: N/A

  • VS Code Version:
  • OS Version: Version: 1.94.0-insider (user setup)
    Commit: f35c382
    Date: 2024-09-24T05:04:12.797Z
    Electron: 30.5.1
    ElectronBuildId: 10262041
    Chromium: 124.0.6367.243
    Node.js: 20.16.0
    V8: 12.4.254.20-electron.0
    OS: Windows_NT x64 10.0.26100

Steps to Reproduce:

  1. Change test-provider-sample https://github.com/microsoft/vscode-extension-samples/blob/main/test-provider-sample/src/extension.ts#L101 and install it
diff --git a/test-provider-sample/src/extension.ts b/test-provider-sample/src/extension.ts
index e124f3e0..84aeaf19 100644
--- a/test-provider-sample/src/extension.ts
+++ b/test-provider-sample/src/extension.ts
@@ -99,6 +99,9 @@ export async function activate(context: vscode.ExtensionContext) {
                                        (lineInfo.executed as number)++;
                                }

+                               for (let i = 0; i < 1000; i++) {
+                                       run.appendOutput(`Val ${i}\r\n`);
+                               }
                                run.appendOutput(`Completed ${test.id}\r\n`);
                        }
  1. Open the sample folder- https://github.com/microsoft/vscode-extension-samples/tree/main/test-provider-sample/sample
  2. Run a test, the Test Results appears and the output scrolls to the bottom
  3. Scroll up in the Test Results terminal
  4. Run a test, the Test Results terminal clears but it no longer scrolls to the bottom

It's annoying as you need to press Ctrl+End before each test run to have what should be the default behaviour of displaying the logs on screen as they come in. (Yes I have slow tests :) )

I have a PR for this

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions