Skip to content

Remove deprecated notebook output settings and migration - #326496

Merged
roblourens merged 2 commits into
mainfrom
roblou/remove-deprecated-notebook-output-settings
Jul 19, 2026
Merged

roblourens merged 2 commits into
mainfrom
roblou/remove-deprecated-notebook-output-settings

Conversation

@roblourens

@roblourens roblourens commented Jul 19, 2026 •

Copy link
Copy Markdown
Member

Removes the deprecated notebook output settings and their one-time migration logic:

  • notebook.outputLineHeight → notebook.output.lineHeight
  • notebook.outputFontSize → notebook.output.fontSize
  • notebook.outputFontFamily → notebook.output.fontFamily
  • notebook.experimental.outputScrolling → notebook.output.scrolling

These were deprecated in Feb 2023 (8fdb79a56c4) with a // TOOD @rebornix remove after a few iterations of deprecated setting comment — well past "a few iterations".

Why it's safe

  • The deprecated keys are no longer registered in the configuration schema (notebook.contribution.ts only registers the notebook.output.* keys).
  • Their only references were the migration branches in notebookOptions.ts and the *Deprecated entries in the NotebookSetting map.
  • This lets us drop the now-unused _migrateDeprecatedSetting method. The ConfigurationTarget import stays (still used for ConfigurationTarget.DEFAULT).

Tradeoff

A user who still has an old key in settings.json and hasn't opened a notebook since 2023 will lose that value rather than have it auto-migrated. Given the 3+ year window, that's an acceptable cleanup.

Also

  • Drops a stale // temporary fix for #205044 reference in extHostNotebook.ts (the remotehub notebook-results guard), keeping just the behavioral comment.

Refs #326491

(Written by Copilot)

Removes the deprecated notebook output settings (notebook.outputLineHeight,
notebook.outputFontSize, notebook.outputFontFamily,
notebook.experimental.outputScrolling) and their one-time migration logic.
These were deprecated in Feb 2023 in favor of the notebook.output.* keys and
are no longer registered in the configuration schema, so only the migration
code referenced them.

Refs #326491

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings July 19, 2026 00:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes obsolete notebook output-setting migration code and legacy setting constants.

Changes:

  • Removes deprecated notebook setting keys and migration branches.
  • Retains direct reads of current notebook.output.* settings.
  • Simplifies an unrelated RemoteHub notebook-search comment.
Show a summary per file
File Description
src/vs/workbench/contrib/notebook/common/notebookCommon.ts Removes deprecated setting constants.
src/vs/workbench/contrib/notebook/browser/notebookOptions.ts Removes migration logic and reads current settings directly.
src/vs/workbench/api/common/extHostNotebook.ts Updates a temporary-workaround comment.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Medium

@roblourens
roblourens merged commit 6931748 into main Jul 19, 2026
29 checks passed
@roblourens
roblourens deleted the roblou/remove-deprecated-notebook-output-settings branch July 19, 2026 00:59
@vs-code-engineering vs-code-engineering Bot added this to the 1.130.0 milestone Jul 19, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants