coder / code-server

VS Code in the browser
https://coder.com
MIT License
67.27k stars 5.51k forks source link

[Bug]: Render *.ipynb file as json when openFile with payload in url #6642

Closed huxianc closed 1 month ago

huxianc commented 6 months ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

  1. When open url such as http://127.0.0.1:8010/?folder=/home/lhdu/kbdev/aistudio-test&payload=[[%22openFile%22,%22vscode-remote:///home/lhdu/kbdev/aistudio-test/b.ipynb%22]],sometimes rendered as json 2.Personal speculation: OpenFile behavior is activated earlier than the ipynb extension, or the activation time of the ipynb extension is too long 3.There is a small probability of it appearing when refreshing the browser

Expected

always render as jupyter-notebook

Actual

sometimes render as json

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

Are you accessing code-server over a secure context?

Notes

No response

code-asher commented 6 months ago

Could you test this in Codespaces as well? Seems like the sort of thing that could be an upstream bug.

code-asher commented 1 month ago

Closing as stale, but feel free to comment if you come back to this.