In NodeJS, I need to "access" a running VSCode instance and see if the current working directory is a specific folder, i.e. "/home/foobar/Desktop/myproject".
Is that possible in NodeJS?
In NodeJS, I need to "access" a running VSCode instance and see if the current working directory is a specific folder, i.e. "/home/foobar/Desktop/myproject".
Is that possible in NodeJS?
On Unix systems, see Find out current working directory of a running process? (pwdx <PID>
and other methods). On Windows systems, see windows batch command to determine working directory of a process (suggestions to install non-native programs that do the job) and Is it possible to determine the working directory of another process? (how to do it with the Windows API, which I don't know if is accessible directly via NodeJS). At least on UNIX systems, you could just use child_process
(see also Execute a command line binary with Node.js).