Skip to content
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

Provide the YDrive as the default drive #365

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Sep 25, 2024

Alternative to #345

Needs jupyterlab/jupyterlab#16794

Register the YDrive as a the default drive in JupyterLab, relying on the split of the service manager plugins in jupyterlab/jupyterlab#16794.

One of the nice side effect is the removal of the RTC: prefix, which should help fix some issues reported on this repo.

rtc-swap-default-drive.webm

@jtpio jtpio added the enhancement New feature or request label Sep 25, 2024
Copy link
Contributor

Binder 👈 Launch a Binder on branch jtpio/jupyter-collaboration/swap-default-drive

Comment on lines +82 to +85
ydrive.translator = (translator ?? nullTranslator).load('jupyterlab');
if (globalAwareness) {
ydrive.globalAwareness = globalAwareness;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the service manager plugins are activated first and their app is still null during the first phase, we extract setting the translator and globalAwareness to a separate plugin, so it is activated as a regular plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant