mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
parent
821cd165e9
commit
755bc5f7bf
|
@ -401,6 +401,17 @@ async function webviewPreloads(ctx: PreloadContext) {
|
|||
});
|
||||
}
|
||||
|
||||
function isAncestor(testChild: Node | null, testAncestor: Node | null): boolean {
|
||||
while (testChild) {
|
||||
if (testChild === testAncestor) {
|
||||
return true;
|
||||
}
|
||||
testChild = testChild.parentNode;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function _internalHighlightRange(range: Range, tagName = 'mark', attributes = {}) {
|
||||
// derived from https://github.com/Treora/dom-highlight-range/blob/master/highlight-range.js
|
||||
|
||||
|
|
Loading…
Reference in a new issue