mathworks / mathworks/MATLAB-extension-for-vscode
Printing a table prints all rows by default. It should print just a few rows, like in the MATLAB IDE
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 435
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Printing a table prints all rows by default. It should print just a few rows, like in the MATLAB IDE.
To Reproduce
tb = table();
tb.("column") = rand(1000,1);
Type tb in the terminal and press enter. The entire table is printed instead of just a preview.
Expected behavior
I expected only the first 7 rows and the last 7 rows to be printed, like in the MATLAB IDE:
MATLAB Version: '24.2.0.2740171 (R2024b) Update 1'
VS Code Version: 1.85.2 (system setup)
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
Date: 2024-01-18T06:40:10.514Z
Electron: 25.9.7
ElectronBuildId: 26354273
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
Extension Version: 1.3.6
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 creating a table with 1,000 rows and entering tb in the terminal. Trace the MATLAB extension's terminal table-printing entry point and compare its output with the expected first 7 and last 7 rows; done means large tables show that preview instead of every row.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matlab, typescript, vscode
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100