ojsheikh / unicode-latex

A visual studio code extension to insert Unicode symbols given LaTeX symbol names
MIT License
28 stars 26 forks source link

opt-in to "workspace trust" settings to work in "restricted mode" #42

Open stevengj opened 7 months ago

stevengj commented 7 months ago

Currently, this extension is disabled if the workspace is in "restricted mode":

image

As mentioned on stackoverflow, ideally the extension can indicate whether it is safe to run in restricted mode. This is also echoed by the [vscode docs]:

Most extensions run code on your behalf and could potentially do harm. Some extensions have settings that could cause them to act maliciously if configured to run an unexpected executable. For this reason, extensions that have not explicitly opted into Workspace Trust are disabled by default in Restricted Mode.

See the Workspace Trust Extension Guide for how to do it.

Since this extension is just tab completions, it should be safe to run when editing untrusted files, no?