mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
make getEditorById strict
This commit is contained in:
@@ -55,7 +55,7 @@ export class ExtHostNotebookEditors implements ExtHostNotebookEditorsShape {
|
||||
|
||||
$acceptEditorPropertiesChanged(id: string, data: INotebookEditorPropertiesChangeData): void {
|
||||
this._logService.debug('ExtHostNotebook#$acceptEditorPropertiesChanged', id, data);
|
||||
const editor = this._notebooksAndEditors.getEditorById(id, true);
|
||||
const editor = this._notebooksAndEditors.getEditorById(id);
|
||||
// ONE: make all state updates
|
||||
if (data.visibleRanges) {
|
||||
editor._acceptVisibleRanges(data.visibleRanges.ranges.map(typeConverters.NotebookRange.to));
|
||||
@@ -81,7 +81,7 @@ export class ExtHostNotebookEditors implements ExtHostNotebookEditorsShape {
|
||||
|
||||
$acceptEditorViewColumns(data: INotebookEditorViewColumnInfo): void {
|
||||
for (const id in data) {
|
||||
const editor = this._notebooksAndEditors.getEditorById(id, true);
|
||||
const editor = this._notebooksAndEditors.getEditorById(id);
|
||||
editor._acceptViewColumn(typeConverters.ViewColumn.to(data[id]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user