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

easier to use show options, notebook repl editor helper #228577

Merged
merged 4 commits into from
Sep 16, 2024
Merged

Conversation

amunger
Copy link
Contributor

@amunger amunger commented Sep 13, 2024

@amunger amunger marked this pull request as ready for review September 13, 2024 19:01
@vs-code-engineering vs-code-engineering bot added this to the September 2024 milestone Sep 13, 2024
if (this.viewModel === undefined || !this.viewModel.equal(textModel)) {
const oldBottomToolbarDimensions = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
this._detachModel();
await this._attachModel(textModel, viewState, perf);
await this._attachModel(textModel, viewType ?? textModel.viewType, viewState, perf);
Copy link
Contributor Author

@amunger amunger Sep 13, 2024

Choose a reason for hiding this comment

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

more separation between the textModel's viewtype (more like notebook type) and the viewmodels viewtype - the notebook type is used by default, but a different viewtype could be set.
The only other usage of the viewmodel.viewtype was for determining the placement of the cell toolbar which can be configured by viewtype, and should therefore probably be independent from the notebook type

@amunger amunger merged commit e34ecab into main Sep 16, 2024
7 checks passed
@amunger amunger deleted the aamunger/replAPI branch September 16, 2024 00:16
This pull request was closed.
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.

3 participants