mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
parent
934e0ee5d8
commit
9894ae8700
|
@ -19,7 +19,7 @@ const getCodeLineElements = (() => {
|
|||
return (documentVersion: number) => {
|
||||
if (!cachedElements || documentVersion !== cachedVersion) {
|
||||
cachedVersion = documentVersion;
|
||||
cachedElements = [{ element: document.body, line: 0 }];
|
||||
cachedElements = [{ element: document.body, line: -1 }];
|
||||
for (const element of document.getElementsByClassName(codeLineClass)) {
|
||||
const line = +element.getAttribute('data-line')!;
|
||||
if (isNaN(line)) {
|
||||
|
|
Loading…
Reference in a new issue