Skip to content

Formatting a notebook results in having the last cell's code pasted into every cell. It also doesn't format the notebook. #16980

@greazer

Description

@greazer

Version: 1.60.0-insider (user setup)
Commit: 58454f7
Date: 2021-08-13T05:15:29.421Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000

Python: v2021.9.1125171759-dev
Jupyter: v2021.8.2027072902
Pylance: v2021.8.2-pre.1

  1. Open a notebook. I used the one from https://github.com/greazer/covid-19-data/tree/master/SampleNbsAndScripts
  2. Right click on the first code cell and choose Format Notebook...

A lot of activity will occur (based on the progress bar spinning for a few seconds), but the only formatting that will have happened is that code from the last cell in the notebook will be pasted into the top of every cell.

Clearly this is wrong. :)
recording (5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-formattingbugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-prioritypartner ask

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions