I am creating a VSCode extension that is going to use another tool. so my VSCode extension needs that third-party tool installed on the system to work. so how can I install that dependency and add it to the system environment path when any user will install my extension?
Asked
Active
Viewed 742 times
0
-
Your extension is no different from a typical Node.js console application, so I wonder why it cannot install the dependency and configure the system. You just need to learn JS/TS and Node.js. – Lex Li Sep 25 '21 at 21:37
-
yes you mean I should add packages to package.json, right? but I want to install a exe software and set its path. because only after that my extension will work – Kunal Burangi Sep 27 '21 at 04:35
-
"I want to install a exe software and set its path" are super easy to achieve by executing external commands, https://stackoverflow.com/questions/5775088/how-to-execute-an-external-program-from-within-node-js – Lex Li Sep 27 '21 at 04:40
-
I don't know why are you dissing me at this point when I am just seeking some information. but anyway. I know how to run external commands and but I am not getting how to do it automatically when some user will install my Exension. – Kunal Burangi Sep 27 '21 at 04:45
-
"how to do it automatically when some user will install my Exension". It is impossible as the installation of an extension is just unzipping the contents. You have to use code in `activate` to perform installation of any dependencies. – Lex Li Sep 27 '21 at 05:34