소스 검색

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