nvarner / typst-lsp

A brand-new language server for Typst, plus a VS Code extension
MIT License
1.19k stars 76 forks source link

Links with bibliography #433

Closed Ciflire closed 7 months ago

Ciflire commented 7 months ago

[x] I am on the latest stable version of the extension/LSP. [x] I have searched the issues of this repo and believe that this is not a duplicate.

Issue

I have a multiple file typst project.

.
├── chapters
│   ├── 01-coverPage.typ
│   ├── 02-nonPlagiat.typ
│   ├── 03-contact.typ
│   ├── 04-foreword.typ
│   ├── 05-thanks.typ
│   ├── 06-outline.typ
│   ├── 07-introduction.typ
│   ├── 08-presentation.typ
│   ├── 09-tasks.typ
│   ├── 10_1-reflexion.typ
│   ├── 10_2-reflexion.typ
│   ├── 11-conclusion.typ
│   ├── 12-bibliography.bib
│   ├── 12-bibliography.typ
│   ├── 13-illustrations.typ
│   ├── 14-table.typ
│   ├── 15-listings.typ
│   └── 16-glossary.typ
├── figures
│   ├── anonymous_company-logo.svg
│   ├── collegium-logo.svg
│   ├── school-logo.svg
│   └── university-logo.svg
├── main.typ
├── README.md
└── template.typ

The lsp seems to provide the value of the link, it gives the autocompletion. But i'm also getting an error that the label does not exist. image

It does work inside the document where i create the bibliography but nowhere else, either above or below that document

Ciflire commented 7 months ago

Closed as duplicate of #366