add and adopt implementsExecutionOrder

This commit is contained in:
Johannes Rieken
2021-04-09 13:03:49 +02:00
parent 4cacb3dce4
commit edd36fd64c
7 changed files with 10 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ abstract class MainThreadKernel implements INotebookKernel2 {
detail?: string;
isPreferred?: boolean;
supportedLanguages: string[];
hasExecutionOrder: boolean;
implementsExecutionOrder: boolean;
localResourceRoot: URI;
preloads?: URI[];
@@ -42,7 +42,7 @@ abstract class MainThreadKernel implements INotebookKernel2 {
this.description = data.description;
this.isPreferred = data.isPreferred;
this.supportedLanguages = data.supportedLanguages;
this.hasExecutionOrder = data.hasExecutionOrder ?? false;
this.implementsExecutionOrder = data.hasExecutionOrder ?? false;
this.localResourceRoot = URI.revive(data.extensionLocation);
this.preloads = data.preloads && data.preloads.map(u => URI.revive(u));
}
@@ -67,7 +67,7 @@ abstract class MainThreadKernel implements INotebookKernel2 {
event.supportedLanguages = true;
}
if (data.hasExecutionOrder !== undefined) {
this.hasExecutionOrder = data.hasExecutionOrder;
this.implementsExecutionOrder = data.hasExecutionOrder;
event.hasExecutionOrder = true;
}
this._onDidChange.fire(event);