mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-08-30 21:37:25 +00:00
![]() This happens in projects where an #include is normally guarded by #ifdef. File A conditionally includes either B or C based on an #ifdef. Both B and C include D, so D gets merged twice. Previously, the offset to which a file view has been created is stored globally. This means that the offset would be reused on a fresh include in the above situation. Solved by storing offsets keyed by the NodeIndex of the parent file that is including and the NodeIndex of the file being included. |
||
---|---|---|
.. | ||
src | ||
testdata | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
Makefile |