mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Show running state in cell toolbar immediately when cell is run (#4484)
This commit is contained in:
@@ -212,12 +212,12 @@ export class CellModel implements ICellModel {
|
|||||||
// TODO update source based on editor component contents
|
// TODO update source based on editor component contents
|
||||||
let content = this.source;
|
let content = this.source;
|
||||||
if (content) {
|
if (content) {
|
||||||
this.fireExecutionStateChanged();
|
|
||||||
let future = await kernel.requestExecute({
|
let future = await kernel.requestExecute({
|
||||||
code: content,
|
code: content,
|
||||||
stop_on_error: true
|
stop_on_error: true
|
||||||
}, false);
|
}, false);
|
||||||
this.setFuture(future as FutureInternal);
|
this.setFuture(future as FutureInternal);
|
||||||
|
this.fireExecutionStateChanged();
|
||||||
// For now, await future completion. Later we should just track and handle cancellation based on model notifications
|
// For now, await future completion. Later we should just track and handle cancellation based on model notifications
|
||||||
let result: nb.IExecuteReplyMsg = <nb.IExecuteReplyMsg><any>await future.done;
|
let result: nb.IExecuteReplyMsg = <nb.IExecuteReplyMsg><any>await future.done;
|
||||||
if (result && result.content) {
|
if (result && result.content) {
|
||||||
|
|||||||
Reference in New Issue
Block a user