mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 17:22:59 -05:00
Highlight all matches in Notebook on Find (#15562)
* iterate over every cell and highlight ranges. * fix yellow for all matches and orange for current * fix * avoid duplicate deltaDecorations call * initialize on declare
This commit is contained in:
@@ -186,7 +186,7 @@ export interface ICellEditorProvider {
|
||||
hasEditor(): boolean;
|
||||
cellGuid(): string;
|
||||
getEditor(): BaseTextEditor;
|
||||
deltaDecorations(newDecorationRange: NotebookRange, oldDecorationRange: NotebookRange): void;
|
||||
deltaDecorations(newDecorationsRange: NotebookRange | NotebookRange[], oldDecorationsRange: NotebookRange | NotebookRange[]): void;
|
||||
}
|
||||
|
||||
export class NotebookRange extends Range {
|
||||
@@ -220,7 +220,7 @@ export interface INotebookEditor {
|
||||
clearAllOutputs(): Promise<boolean>;
|
||||
getSections(): INotebookSection[];
|
||||
navigateToSection(sectionId: string): void;
|
||||
deltaDecorations(newDecorationRange: NotebookRange, oldDecorationRange: NotebookRange): void;
|
||||
deltaDecorations(newDecorationsRange: NotebookRange | NotebookRange[], oldDecorationsRange: NotebookRange | NotebookRange[]): void;
|
||||
addCell(cellType: CellType, index?: number, event?: UIEvent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user