src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts/JSHighlighter/highlightCurrentMatch
class JSHighlighter:		highlightCurrentMatch(index: number) {
			const oldMatch = this.matches[this._findMatchIndex];
			if (oldMatch) {
				oldMatch.highlightResult?.update(matchColor, oldMatch.isShadow ? undefined : 'find-match');
			}

			const match = this.matches[index];
			this._findMatchIndex = index;
			const sel = window.getSelection();
			if (!!match && !!sel && match.highlightResult) {
				let offset = 0;
				try {
					const outputOffset = document.getElementById(match.id)!.getBoundingClientRect().top;
					const tempRange = document.createRange();
					tempRange.selectNode(match.highlightResult.range.startContainer);
					const rangeOffset = tempRange.getBoundingClientRect().top;
					tempRange.detach();
					offset = rangeOffset - outputOffset;
				} catch (e) {
				}

				match.highlightResult?.update(currentMatchColor, match.isShadow ? undefined : 'current-find-match');

				document.getSelection()?.removeAllRanges();
				postNotebookMessage('didFindHighlight', {
					offset
				});
			}
		}