Would it make sense to scope bibtex formatting settings by resource? #3191
-
Related to #3082, I'd like to convert BibTeX formattings settings scopes to as well as in several places in https://github.com/James-Yu/LaTeX-Workshop/blob/d608023b862e0bc1d39735cc753061a7ffd25036/src/providers/bibtexformatterlib/bibtexutils.ts The only downside I can think of is performance which (if relevant) might be remedied with caching. I wonder if the maintainers would be open to a PR. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The difficulty is not so much to generate You point out the lines LaTeX-Workshop/src/providers/bibtexcompletion.ts Lines 57 to 61 in fa516ba Note they are called through in the constructor ofBibtexCompleter to build the default suggestion lists once and for all. We would need a way to rebuild these lists whenever the current workspace changes. As there is no notion of active workspace in VS Code (see https://code.visualstudio.com/api/references/vscode-api#WorkspaceFolder), we would need to monitor it inside the extension along with the root file. It may be possible but this is a huge effort and I am not sure yet about the extra maintenance cost.
|
Beta Was this translation helpful? Give feedback.
-
PR #3219 closes this discussion. Now, all |
Beta Was this translation helpful? Give feedback.
PR #3219 closes this discussion. Now, all
bibtex
related settings have theresource
scope and any configuration change is immediately effective without reloading.