quarto-dev / quarto-dev/quarto
autocompletion for figures doesn't work in VS Code
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
When using the figure command ![](){@fig-a}, the prompts for autocompletion would not appear typing @fig . But the autocompletion for figure command
:::{#fig-a layout-ncol=2}
{#fig-b}
{#fig-c}
:::
works well.
And if the last line of the side-by-side figure above is commented out like
:::{#fig-a layout-ncol=2}
{#fig-b}
{#fig-c}
<!-- ::: -->
, the autocompletion disappear.
The completions for equation and table work well. The figure cross reference in output pdf file looks good.
Am I setting something wrong?
I use quarto 1.4.18 and vs code plugin 1.83.0.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied figure-reference examples in VS Code with Quarto 1.4.18 and the VS Code plugin 1.83.0, comparing the inline figure case with the working side-by-side, equation, and table cases. Done means autocompletion appears while typing @fig for inline figures without breaking the existing completions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100