Skip to content

Remove export specific methods form Session #13736

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

Merged
merged 3 commits into from
Jun 21, 2023
Merged

Remove export specific methods form Session #13736

merged 3 commits into from
Jun 21, 2023

Conversation

DonJayamanne
Copy link
Contributor

Fixes #13577

@@ -161,121 +166,79 @@ suite('Jupyter Connection', async () => {
verify(sessionManager.getRunningKernels()).once();
verify(sessionManager.dispose()).once();
});

/* eslint-disable , @typescript-eslint/no-explicit-any */
suite('JupyterConnection', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to a separate file, these tests didn't belong here

}

// If connecting on HTTP without a token prompt the user that this connection may not be secure
private async insecureServerWarningPrompt(): Promise<boolean> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved from JupyterSessionManager
(unfortunately this introduces a cyclic dependency, but the plan is to fix this)

@@ -196,53 +192,6 @@ export class JupyterSession
return promise;
}

async invokeWithFileSynced(contents: string, handler: (file: IBackupFile) => Promise<void>): Promise<void> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now moved into export class

@@ -339,190 +316,4 @@ export class JupyterSessionManager implements IJupyterSessionManager {
return [];
}
}

private async getServerConnectSettings(connInfo: IJupyterConnection): Promise<ServerConnection.ISettings> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved into JupyterConnection class

@DonJayamanne DonJayamanne marked this pull request as ready for review June 21, 2023 00:51
@DonJayamanne DonJayamanne merged commit 6c91106 into main Jun 21, 2023
@DonJayamanne DonJayamanne deleted the issue13577 branch June 21, 2023 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export Notebook for Web: call JupyterLab#ContentManager directly to simplify JupyterKernelSession
2 participants