Update provideCellStatusBarItems

This commit is contained in:
Rob Lourens
2021-06-01 15:47:55 -07:00
parent ac7bb556e8
commit 872bbcc8c1
2 changed files with 4 additions and 5 deletions

View File

@@ -327,7 +327,8 @@ export class ExtHostNotebookController implements ExtHostNotebookShape {
const disposables = new DisposableStore();
const cacheId = this._statusBarCache.add([disposables]);
const items = (result && result.map(item => typeConverters.NotebookStatusBarItem.from(item, this._commandsConverter, disposables))) ?? undefined;
const resultArr = Array.isArray(result) ? result : [result];
const items = resultArr.map(item => typeConverters.NotebookStatusBarItem.from(item, this._commandsConverter, disposables));
return {
cacheId,
items