Resizing terminal in VSCode causes a line in the scrollback buffer to be lost
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 40.5k
- Forks
- 2.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 85
Description
Describe the bug
Resizing the terminal in VSCode (using the "Restore Panel Size" button) causes one line of text to disappear in the scrollback buffer.
This doesn't happen with Powershell, so I'm assuming this is a bug on the Nushell side.
How to reproduce
Here's a recording of the bug happening. Notice the line after echo 3 disappeared.
Tested on a fresh install of Nushell and VSCode Insider.
Expected behavior
No text should be lost when resizing.
Configuration
| key | value |
|---|---|
| version | 0.98.1 |
| major | 0 |
| minor | 98 |
| patch | 1 |
| branch | main |
| commit_hash | 639bd4fc2eec0134f70a2bbda771f7a0b558ebc4 |
| build_os | windows-x86_64 |
| build_target | x86_64-pc-windows-msvc |
| rust_version | rustc 1.79.0 (129f3b996 2024-06-10) |
| rust_channel | 1.79.0-x86_64-pc-windows-msvc |
| cargo_version | cargo 1.79.0 (ffa9cf99a 2024-06-03) |
| build_time | 2024-10-15 15:16:02 +08:00 |
| build_rust_channel | debug |
| allocator | mimalloc |
| features | default, sqlite, trash |
| installed_plugins |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by resizing a Nushell terminal in VSCode with the reported Nushell 0.98.1 configuration, then inspect the terminal resize and scrollback handling. Done means resizing no longer removes any line of existing terminal output; verify this against the recording scenario and compare the behavior with PowerShell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, vscode
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100