Enable status bar for notebooks (#14817)

* enable status bar for notebooks

* add onCellExecutionStart event to notebook service

* fix test, change var name
This commit is contained in:
Lucy Zhang
2021-03-22 14:54:13 -07:00
committed by GitHub
parent 8fb54710fb
commit 780ca84f9a
5 changed files with 33 additions and 3 deletions

View File

@@ -108,6 +108,7 @@ export class NotebookService extends Disposable implements INotebookService {
private _isRegistrationComplete = false;
private _trustedCacheQueue: URI[] = [];
private _unTrustedCacheQueue: URI[] = [];
private _onCodeCellExecutionStart: Emitter<void> = new Emitter<void>();
constructor(
@ILifecycleService lifecycleService: ILifecycleService,
@@ -639,4 +640,12 @@ export class NotebookService extends Disposable implements INotebookService {
return isTrusted;
}
get onCodeCellExecutionStart(): Event<void> {
return this._onCodeCellExecutionStart.event;
}
notifyCellExecutionStarted(): void {
this._onCodeCellExecutionStart.fire();
}
}