interactive
interactive copied to clipboard
Polyglot Notebook: [DevExE2E]The copy/pasted code cell kernel doesn't follow the original cell, it shows same as the above one.
Describe the bug
Using extension Polyglot Notebook in VS Code The copy/pasted code cell kernel doesn't follow the original cell, it shows same as the above one.
Detailed Repro Build info: VSCode 1.77.3 + dotnet-interactive-vscode-1.0.4227011.vsix VS Code Version: 1.77.3 (user setup) Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710 Date: 2023-04-12T09:16:02.548Z Electron: 19.1.11 Chromium: 102.0.5005.196 Node.js: 16.14.2 V8: 10.2.154.26-electron.0 OS: Windows_NT x64 10.0.22621 Sandboxed: No
dotnet-interactive-vscode-1.0.4227011.vsix build link: https://dev.azure.com/dnceng/internal/_build/results?buildId=2168897&view=artifacts&pathAsName=false&type=publishedArtifacts
sdk info: dotnet-sdk-7.0.203-win-x64.exe
Note: 1.It's a not a regression issue. It also repro on VSCode 1.77.3 + dotnet-interactive-vscode-1.0.4219021.vsix. 2.Repro VM: 172.16.195.186
Steps: 1.Start with an empty text file open in VSCode 2.Ctrl+Shift+P => "Polyglot Notebook: Create new blank notebook" 3.Select "Create as .dib" ->Select "F#" 4. Add code in the default cell as F# script. 5. insert code cell below as C# script. 6. Copy the step4 F# code cell. 7. Paste the copied one below the step5 C# code cell.
Expected Results: The copied code cell should keep the original cell kernel.
Actual Results:
The copy/pasted code cell kernel doesn't follow the original cell.

Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
- OS
- [√] Windows 11
- [ ] Windows 10
- [ ] macOS
- [ ] Linux (Please specify distro)
- [ ] iOS
- [ ] Android
- Browser
- [ ] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari
- Frontend
- [ ] Jupyter Notebook
- [ ] Jupyter Lab
- [ ] nteract
- [√] Visual Studio Code
- [ ] Visual Studio Code Insiders
- [ ] Visual Studio
- [ ] Other (please specify)
Screenshots
If applicable, add screenshots to help explain your problem.