You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Possibly no (I have only been able to reproduce it with Jupyter+Python enabled, or using a custom extension)
VS Code Version: 1.88.0-insider
OS Version: Windows 11
Steps to Reproduce:
Open a fresh VS Code Insiders window
Run the command "Create: New Jupyter Notebook"
Close the new tab and discard changes
Repeat steps 2 & 3
An error may appear after a few tries. If it doesn't, open a new VS Code window and try again
I have also had success reproducing the issue using a custom extension with the following code:
// 1. Create an untitled notebook.constnotebook=awaitvscode.workspace.openNotebookDocument("jupyter-notebook",newvscode.NotebookData([newvscode.NotebookCellData(vscode.NotebookCellKind.Code,"123","python")]));// 2. Open a second document so the notebook is not visible.consttextDoc=awaitvscode.workspace.openTextDocument({content: "foo bar"});awaitvscode.window.showTextDocument(textDoc);// 3. Add a new cell to the notebook document.constedit=newvscode.WorkspaceEdit();constnotebookEdit=newvscode.NotebookEdit(newvscode.NotebookRange(1,1),[{kind: vscode.NotebookCellKind.Code,value: "456",languageId: "python",outputs: []}]);edit.set(notebook.uri,[notebookEdit]);awaitvscode.workspace.applyEdit(edit);// 4. Switch to the notebook documentawaitvscode.window.showNotebookDocument(notebook);// 5. Close all editors (Select "Don't save" when prompted)awaitvscode.commands.executeCommand("workbench.action.closeAllEditors");// 6. Create another untitled notebook. This should fail.awaitvscode.workspace.openNotebookDocument("jupyter-notebook",newvscode.NotebookData([newvscode.NotebookCellData(vscode.NotebookCellKind.Code,"123","python")]));
The text was updated successfully, but these errors were encountered:
Does this issue occur when all extensions are disabled?: Possibly no (I have only been able to reproduce it with Jupyter+Python enabled, or using a custom extension)
Steps to Reproduce:
I have also had success reproducing the issue using a custom extension with the following code:
The text was updated successfully, but these errors were encountered: