Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering New Notebooks Panel using VS Code Task Provider #1784

Merged
merged 7 commits into from
Nov 26, 2024

Conversation

pastuxso
Copy link
Contributor

@pastuxso pastuxso commented Nov 7, 2024

Refactoring of New Notebooks Panel in order to avoid duplication and to have a unique source of truth for tasks.

@pastuxso pastuxso force-pushed the cris/runme-notebooks-panel-improvements branch from 141ba89 to a74c7b4 Compare November 7, 2024 16:04
@pastuxso pastuxso force-pushed the cris/runme-notebooks-panel-improvements branch from a74c7b4 to d63f82d Compare November 7, 2024 16:07
@pastuxso pastuxso changed the title Refactor New Runme Notebooks Panel to use Runme Tasks Rendering New Runme Notebooks Panel using VS Code Task Provider Nov 7, 2024
@pastuxso pastuxso changed the title Rendering New Runme Notebooks Panel using VS Code Task Provider Rendering New Notebooks Panel using VS Code Task Provider Nov 7, 2024
@pastuxso pastuxso marked this pull request as ready for review November 13, 2024 02:44
Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to not uncollapse the whole tree when switching between named / unnamed @pastuxso?

Screen.Recording.2024-11-20.at.10.39.47.AM.mov

- Introduced caching for notebooks and their cells to optimize tree view rendering.
- Added a parent property to RunmeFile to properly associate child items with their parent notebooks.
- Updated getChildren method to use cached data and return child items based on their parent.
- Removed unnecessary sauceCount logic, simplifying the tree re-rendering workaround.
- Added logic to store and preserve the collapsibleState when including named or unnamed cells
Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM. As discussed, any further changes going into new PR(s).

@sourishkrout sourishkrout merged commit ce5c5af into main Nov 26, 2024
1 check passed
@sourishkrout sourishkrout deleted the cris/runme-notebooks-panel-improvements branch November 26, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants