-
Notifications
You must be signed in to change notification settings - Fork 28.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotebookController asWebviewUri does not work for notebooks #121981
Comments
Problem 1 -
Which makes me wonder whether NotebookController is the right place for this function now, since it's not tied to one editor. Or it needs to take a NotebookDocument from the extension too. Problem 2
I don't know what to do about that because this webview is not associated with one extension. Maybe instead of |
Does the ID have a meaning? Does it matches against some implicit webview id that notebook editors assign? I only reviewed how the internal |
@jrieken Yes the id in For webview panels, we create the webview id on the extension host side and then send this over to the main process before creating the webview. The confusing part is that the id we create on the extension host side is also used as the handle For notebooks, I'm not sure if this same model will work or not since a notebookController can talk about multiple different notebook instances, correct? |
Talked to Matt offline, here's a summary
|
Hey @mjbvz if you get a chance you could look at d5210de. I went with adding a flag for the notebook service worker to ignore the first part of the domain for requests it's intercepting. I think this is ok for now. I really don't like what the extension has to do to pass the editor to @DonJayamanne there should be nothing you have to do for this to work. |
Great, I'm also mostly done with adding support for Widgets with the new notebook controller changes. |
@DonJayamanne if you want to test it, there's a windows build here, you could test with local or desktop remote at least, https://az764295.vo.msecnd.net/insider/d5210de428a4ed692c52cc598573833ec8c60040/VSCode-win32-x64-1.56.0-insider.zip lmk if you need a different platform |
I'll need a mac build, thanks |
Brilliant, works now, Please feel free to close this issue. |
Will keep it for the real fixes |
Thanks, I've published the insider version of the Juypter exension to marketplace as well. |
Will test on codespaces on monday. |
@roblourens I am very much in favour of not requiring the editor-id/instance when calling |
related unload discussion: #120747 |
Opened #122221 (nice issue number) to continue |
Run a remote-ssh notebook that does something like this:
I get a uri
https://0.vscode-webview-test.com/vscode-resource/file///datadrive/vscode-notebook-testbed/img.png
, and it 404scc @mjbvz @rebornix @jrieken @DonJayamanne
The text was updated successfully, but these errors were encountered: