Closed suikan4github closed 3 months ago
I have narrowed down the condition of the problem.
Adding the following line to my settings.json caused this problem.
"latex-workshop.view.outline.commands": [],
The minimum settings.json to reproduce this problem at my environment is :
{
"latex-workshop.latex.clean.fileTypes": [
"*.aux",
"*.bbl",
"*.blg",
"*.idx",
"*.ind",
"*.lof",
"*.lot",
"*.out",
"*.toc",
"*.acn",
"*.acr",
"*.alg",
"*.glg",
"*.glo",
"*.gls",
"*.ist",
"*.fls",
"*.log",
"*.fdb_latexmk",
"*.snm",
"*.nav",
"*.dvi",
"*.synctex.gz"
],
"latex-workshop.latex.outDir": "out",
"latex-workshop.latex.recipes": [
{
"name": "latexmk",
"tools": [
"latexmk-process"
]
},
],
"latex-workshop.latex.tools": [
{
"name": "latexmk-process",
"command": "latexmk",
"args": [
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
}
],
//-----------------------
"latex-workshop.view.outline.commands": [],
}
I've found that in my case this issue was caused by me deleting "latex-workshop.view.outline.commands": "label"
from the settings. Restoring it fixed the issue with Intellisense for references, but obviously now all of these labels are polluting the document outline on the left. Is there a way around this?
Edit: actually I'm realizing that must not be the source of the bug, but only a partial workaround. Intelligence still fails to suggest commands defined in my preamble (separate file). Specifying the root file didn't help.
Pre-checks*
Environment*
The Issue*
Reproduction Steps
Following are the demo file contents.
There is a repository that has an entire demo project to reproduce the problem. Run the following commands to clone.
Expected Behavior
Screenshots
The IntelliSense fails when a file is read with the include command.
The IntelliSense works well when a file is read with the input command. The IntelliSense fails when a file is read with the include command.
Logs
LaTeX Workshop Output*
Developer Tools Console
Anything Else?