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
tbombach
changed the title
[Web] Define Studio/AML extension user experience and technical solution for re-opening active file(s) from notebook editor @sevillal and @tbombach
[Web] Define Studio/AML extension user experience and technical solution for re-opening active file(s) from notebook editor
Nov 14, 2022
ML Studio adds a new query parameter like &editorContext=["path/to/file1", "path/to/file2"], then the remote web extension can read it and when the connection is ready, call vscode.workspace.openNotebookDocument(uri).then(vscode.window.showNotebookDocument); or the equivalent for textdocuments.
Note: I would suggest that we use this approach just to transfer active editor context and not multiple editors to avoid long URLs. Browser URLs have a size limit of 2048 characters.
🟡 Discuss: I propose we clear the query param once it is used, this to open the file only the first time connected. If the customer closes the file, open others and reload the window it would not open that "default" file automatically.
POST request
ML Studio does a POST call with the continueOn route which includes a redirect URL to the already known vscode.dev extension URL, in the request body it includes a JSON containing an array of the files to open automatically after connecting. The extension's web opener will receive the JSON data which can be used to open the files.
🟡 Discuss: If there is no clear evidence that customers want to transfer all the open editors context it will be faster to use the query string approach.
tbombach
changed the title
[Web] Define Studio/AML extension user experience and technical solution for re-opening active file(s) from notebook editor
Preserve active file context when clicking out from notebook editor
Jan 19, 2023
Depends on: #1939
The text was updated successfully, but these errors were encountered: