Closed adamanteye closed 6 months ago
As the extension seems to enable itself gloably in every VS code workspace
how to check if an extension is enabled or not?
https://code.visualstudio.com/api/references/activation-events
this looks useful. i will add it
As the extension seems to enable itself gloably in every VS code workspace
how to check if an extension is enabled or not?
I find the icon "T" shows in the Activity Bar :)
As the extension seems to enable itself gloably in every VS code workspace
how to check if an extension is enabled or not?
I find the icon "T" shows in the Activity Bar :)
that's interesting. it doesnt appear for me. iirc it should only appear after you actually preview a typst file.
Perhaps it's because I have enabled typst-preview.showInActivityBar
. My guess is if it activates on an actual typst file, then enabling typst-preview.showInActivityBar
still won't make it appear constantly.
sorry i misread. i reproduced what you described
https://code.visualstudio.com/api/references/activation-events
this looks useful. i will add it
this is already deprecated. VSCode will activate the extension on generated hooks to events since about 1.71
you are correct. the root cause is the when
clause of activity bar view doesnt take editor language id into account
I am not sure whether this has already been done or I am doing the wrong way. Apologies in advance.
I was searching for how to enable the typst-preview extension if and only if on
typ
language mode, like enable a VS Code extension only for certain file types. As the extension seems to enable itself gloably in every VS code workspace. And I seemed to find no clue. All I know is that probably the developer can decide when to start typst-preview.And again thanks for your impressive work!