* This method is called when all execution has been completed (successfully or failed). * Or when execution has been cancelled.
()
| 146 | * Or when execution has been cancelled. |
| 147 | */ |
| 148 | public dispose() { |
| 149 | if (this.disposed) { |
| 150 | return; |
| 151 | } |
| 152 | this.disposed = true; |
| 153 | if (!this._completed) { |
| 154 | traceExecMessage(this.extensionId, this.executionId, 'Execution disposed'); |
| 155 | } |
| 156 | dispose(this.disposables); |
| 157 | } |
| 158 | |
| 159 | private async execute(code: string, session: IKernelSession) { |
| 160 | if (!session.kernel) { |
no test coverage detected