tinymist
tinymist copied to clipboard
Go to label definition dereferences to original
Describe the bug
LSP command "go to definition" for labels dereferences to original object instead of the latest indirection.
// No indirection
#set heading(numbering: "1")
#heading("test") <h1>
@h1
Go to definition on label @h1
will correctly go to the test heading.
// 1st indirection
#let h2a(body) = heading(body, level: 2)
#h2a([Test]) <h2a>
@h2a
Go to definition on label @h2a
will go to h2a
's definition instead of the function call.
// 2nd indirection
#let h2b(body) = h2a(body)
#h2b([Test]) <h2b>
@h2b
Same but for 2 indirections.
Package/Software version:
VSCode version(Help -> About):
Version: 1.93.0-insider
Commit: 922413f6d97e16c05b565398f33d95c306b1ceb7
Date: 2024-08-13T05:04:09.073Z
Electron: 30.3.1
ElectronBuildId: 9960165
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Linux x64 6.10.5-zen1-1-zen
tinymist extension version: v0.11.0
. Get it by tinymist --version
in terminal.
tinymist
Build Timestamp: 2024-08-11T06:18:23.146209245Z
Build Git Describe: v0.11.19
Commit SHA: 606486b9fd64d117880578477c0188a136094db1
Commit Date: None
Commit Branch: None
Cargo Target Triple: x86_64-unknown-linux-gnu
Typst Version: 0.11.1