浏览代码

Address comments.

Ian Rose 6 年之前
父节点
当前提交
1f9b34e826
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 2 1
      packages/application-extension/src/index.tsx
  2. 3 0
      packages/application/src/connectionlost.ts

+ 2 - 1
packages/application-extension/src/index.tsx

@@ -749,7 +749,8 @@ const paths: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
 };
 
 /**
- * The default JupyterLab paths dictionary provider.
+ * The default JupyterLab connection lost provider. This may be overridden
+ * to provide custom behavior when a connection to the server is lost.
  */
 const connectionlost: JupyterFrontEndPlugin<IConnectionLost> = {
   id: '@jupyterlab/apputils-extension:connectionlost',

+ 3 - 0
packages/application/src/connectionlost.ts

@@ -7,6 +7,9 @@ import { ServerConnection, ServiceManager } from '@jupyterlab/services';
 
 import { IConnectionLost } from './tokens';
 
+/**
+ * A default connection lost handler, which brings up an error dialog.
+ */
 export const ConnectionLost: IConnectionLost = async function(
   manager: ServiceManager.IManager,
   err: ServerConnection.NetworkError