From 720a7fbfa29f2874b116e653a5fa88aae2ac9640 Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Mon, 29 Jul 2019 11:19:57 -0700 Subject: [PATCH] Multiline cell execution fix (#6522) --- src/sql/workbench/parts/notebook/common/models/cell.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql/workbench/parts/notebook/common/models/cell.ts b/src/sql/workbench/parts/notebook/common/models/cell.ts index 49b02e3150..443d3ff258 100644 --- a/src/sql/workbench/parts/notebook/common/models/cell.ts +++ b/src/sql/workbench/parts/notebook/common/models/cell.ts @@ -267,6 +267,8 @@ export class CellModel implements ICellModel { } let content = this.source; if (content) { + // requestExecute expects a string for the code parameter + content = Array.isArray(content) ? content.join('') : content; let future = await kernel.requestExecute({ code: content, stop_on_error: true