interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Polyglot Notebook: [DevExE2E] The execution result of "Output" doesn't change after setting value in JavaScript when using split view

Open v-hozha1 opened this issue 1 year ago • 5 comments

Describe the bug

Using extension Polyglot Notebook in VS Code insider. The execution result of "Output" doesn't change after setting value in JavaScript.

Detailed Repro Build info: VSCodeSetup-x64-1.79.0 + dotnet-interactive-vscode-1.0.4309011.vsix VSCode Link: https://code.visualstudio.com/download Version: 1.79.0 (system setup) Commit: b380da4ef1ee00e224a15c1d4d9793e27c2b6302 Date: 2023-06-07T14:26:35.552Z Electron: 22.5.5 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Windows_NT x64 10.0.20348

dotnet-interactive-vscode-1.0.4309011.vsix https://dev.azure.com/dnceng/internal/_build/results?buildId=2197700&view=artifacts&pathAsName=false&type=publishedArtifacts

sdk info: dotnet-sdk-7.0.302-win-x64

Note: 1.It's not a regression issue. It also repro on VSCodeUserSetup-x64-1.78.1 + dotnet-interactive-vscode-1.0.4259021.vsix.

Steps: 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 "C#" -> Specify the code in cell-> execution var x=123; 4. Add a new code cell below as html. -> Specify the code in cell-> execution

The value is not yet set.
5. Add a new code cell below as javascript. -> Specify the code in cell-> execution #!share --from csharp x document.getElementById("output").innerText = The value is ${x}.; console.log(The value is ${x}.);

Expected Results: After executing Step5, the Output should be shown as "The value is 123" in step4. image

Actual Results: The execution result of "Output" doesn't change after setting value in JavaScript. image

OutputValue

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)

v-hozha1 avatar Jun 12 '23 06:06 v-hozha1