mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
💄
This commit is contained in:
parent
f71d4b6a02
commit
23b4873fda
|
@ -404,17 +404,6 @@ 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