From 78ff6f654af45c592d8326e4669bccd3f3b39160 Mon Sep 17 00:00:00 2001 From: Jacob Roberts Date: Sat, 15 Nov 2025 08:07:54 +0000 Subject: [PATCH] Use performance now in tokenizeString instead of the raw Date.now() --- lib/src/vscode-textmate/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/vscode-textmate/index.js b/lib/src/vscode-textmate/index.js index f133639..4c47a44 100644 --- a/lib/src/vscode-textmate/index.js +++ b/lib/src/vscode-textmate/index.js @@ -1427,9 +1427,9 @@ function ne(e, t, s, r, i, o, a, c) { })(e, t, s, r, i, o); (i = a.stack), (r = a.linePos), (s = a.isFirstLine), (u = a.anchorPosition); } - const p = Date.now(); + const p = _(); for (; !h; ) { - if (0 !== c && Date.now() - p > c) return new te(i, !0); + if (0 !== c && _() - p > c) return new te(i, !0); d(); } return new te(i, !1);