-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Description
Environment
- TeXstudio: 4.8.2
- Qt: 6.7.2
- OS: macOS 14.6.1
- TeX distribution: BasicTeX 2024
Expected behavior
After loading a package library, the keys defined in cwl of that library are shown in the corresponding completion list(s).
Actual behavior
Those keys are recognized (no "unrecognized key in key option" prompt), but missing in completion list(s).
How to reproduce
\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{breakable}
\tcbset{}
\begin{document}
\begin{tcolorbox}[]
content
\end{tcolorbox}
\end{document}The corresponding cwl for tcolorbox library breakable provides key breakable and many more for the option list of \tcbset, \begin{tcolorbox}, etc.
texstudio/completion/tcolorboxlibrarybreakable.cwl
Lines 8 to 9 in ed175a7
| #keyvals:\tcbset,\begin{tcolorbox},\tcbsetforeverylayer,\tcbox,\newtcolorbox,\renewtcolorbox,\newtcbox,\renewtcbox,\tcolorboxenvironment,\tcbsubtitle,\tcbsidebyside,\tcbsubskin,\tcbincludegraphics,\tcbincludepdf,\begin{tcbraster},\begin{tcbitemize},\tcbitem,\begin{tcboxedraster},\begin{tcboxeditemize},\begin{tcblisting},\tcbinputlisting,\newtcblisting,\renewtcblisting,\newtcbinputlisting,\renewtcbinputlisting,\NewTcbTheorem,\newtcbtheorem,\RenewTcbTheorem,\renewtcbtheorem,\ProvideTcbTheorem,\DeclareTcbTheorem,\tcboxmath,\tcbhighmath,\usetcboxarray,\consumetcboxarray,\posterbox,\begin{posterboxenv},\tcboxfit,\newtcboxfit,\renewtcboxfit,\DeclareTColorBox,\NewTColorBox,\RenewTColorBox,\ProvideTColorBox,\DeclareTotalTColorBox,\NewTotalTColorBox,\RenewTotalTColorBox,\ProvideTotalTColorBox,\DeclareTCBox,\NewTCBox,\RenewTCBox,\ProvideTCBox,\DeclareTotalTCBox,\NewTotalTCBox,\RenewTotalTCBox,\ProvideTotalTCBox,\DeclareTCBListing,\NewTCBListing,\RenewTCBListing,\ProvideTCBListing,\DeclareTCBInputListing,\NewTCBInputListing,\RenewTCBInputListing,\ProvideTCBInputListing,\DeclareTCBoxFit,\NewTCBoxFit,\RenewTCBoxFit,\ProvideTCBoxFit,\DeclareTotalTCBoxFit,\NewTotalTCBoxFit,\RenewTotalTCBoxFit,\ProvideTotalTCBoxFit,\tcboxverb,\begin{docCommand},\begin{docCommand*},\begin{docCommands},\begin{docEnvironment},\begin{docEnvironment*},\begin{docEnvironments},\begin{docKey},\begin{docKey*},\begin{docKeys},\begin{docPathOperation},\begin{docPathOperation*},\begin{docPathOperations},\docValue,\docValue*,\docAuxCommand,\docAuxCommand*,\docAuxEnvironment,\docAuxEnvironment*,\docAuxKey,\docAuxKey*,\docCounter,\docCounter*,\docLength,\docLength*,\docColor,\docColor*,\begin{dispExample*},\begin{dispListing*},\tcbdocmarginnote | |
| breakable |
- In the argument of
\tcbset{...}, type in "break" and see that there's no "breakable" in the completion list, "all" tab. \tcbset{break}shows "break" is unrecognized, but\tcbset{breakable}is recognized.- In the optional argument of
\begin{tcolorbox}[...], type in "break" and check the similar behavior.
Commands provided by libraries are both recognized and shown in completion list, for example \tcbbreak in breakable library.
It seems to me this is a regression, though I'm not sure.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

