Fix/search text cell on edit (#9685)

* find in text cell changes

* remove prev decorations

* update find index on cell edit

* added test

* addressed comments

* emit error
This commit is contained in:
Maddy
2020-03-25 22:47:06 -07:00
committed by GitHub
parent 4241ca523e
commit 685e0ccf7e
12 changed files with 177 additions and 28 deletions

View File

@@ -179,10 +179,12 @@ export class NotebookRange extends Range {
this.cell = cell;
}
cell: ICellModel;
isMarkdownSourceCell: boolean;
constructor(cell: ICellModel, startLineNumber: number, startColumn: number, endLineNumber: number, endColumn: number) {
constructor(cell: ICellModel, startLineNumber: number, startColumn: number, endLineNumber: number, endColumn: number, markdownEditMode?: boolean) {
super(startLineNumber, startColumn, endLineNumber, endColumn);
this.updateActiveCell(cell);
this.isMarkdownSourceCell = markdownEditMode ? markdownEditMode : false;
}
}