From b1b66e2a2862bdb8bc3c2d0a3a8a11e84974cade Mon Sep 17 00:00:00 2001 From: Dunqing <29533304+Dunqing@users.noreply.github.com> Date: Sun, 28 Jul 2024 01:58:50 +0000 Subject: [PATCH] Revert "fix(website): incorrect reference displayed" (#4506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverts oxc-project/oxc#4453 https://github.com/oxc-project/oxc/issues/4467 changes reference_id to zero-based index 😅 --- website/playground/symbols.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/playground/symbols.ts b/website/playground/symbols.ts index 6d49c51fd9ab2..d65f7931fb77b 100644 --- a/website/playground/symbols.ts +++ b/website/playground/symbols.ts @@ -37,8 +37,7 @@ export const renderSymbols = (symbols: SymbolTable): string => { span: symbols.spans[index], references: symbols.resolvedReferences[index].map(id => ({ referenceId: id, - // reference id is 1-based - ...symbols.references[id - 1], + ...symbols.references[id], })), }) return acc