notebook: address messaging api changes

This commit is contained in:
Connor Peet
2021-05-20 10:54:52 -07:00
parent f75152cd81
commit 59abb887f6
7 changed files with 41 additions and 22 deletions

View File

@@ -73,6 +73,8 @@ class NotebookEditorCellEditBuilder implements vscode.NotebookEditorEdit {
export class ExtHostNotebookEditor {
public static readonly apiEditorsToExtHost = new WeakMap<vscode.NotebookEditor, ExtHostNotebookEditor>();
private _selections: vscode.NotebookRange[] = [];
private _visibleRanges: vscode.NotebookRange[] = [];
private _viewColumn?: vscode.ViewColumn;
@@ -127,6 +129,8 @@ export class ExtHostNotebookEditor {
return that.setDecorations(decorationType, range);
}
};
ExtHostNotebookEditor.apiEditorsToExtHost.set(this._editor, this);
}
return this._editor;
}