anseki / vscode-color

Helper with GUI to generate color codes such as CSS color notations.
MIT License
97 stars 27 forks source link

Trying to Integrate Electron into VSCode Extension #106

Closed CJLA closed 3 years ago

CJLA commented 3 years ago

Hello @anseki,

We are working on a vscode extension and have not been able to get electron working. We wanted to use color picker as an example but there seems to be some neccessary files missing from the repo that would get it up and running. Do you have any advice on how to get it running, or can you provide some guidance on how to integrate electron? From our research, color picker is the only extension we have found that can do this. Thank you.

anseki commented 3 years ago

Hi @CJLA, thank you for the comment. Sorry, my English is poor. Do you mean that the Color Picker extension didn't work? Did the installing fail?

CJLA commented 3 years ago

Thank you for your response @anseki, We do not have a problem with the color picker extension. We are asking for advice.

We are trying to build our own extension (different functions. Not a color picker). We want a new window to pop up using Electron but do not know how to do it. Your extension is the only one we have found that appears to do this.

anseki commented 3 years ago

I see. As you know maybe, VS Code itself also is Electron app. And extensions run as Node.js program. You can call external programs (including another Electron program) via child_process.spawn. If you need, you can implement the "IPC" (interprocess communication) for those programs (process). The Color Picker extension uses standard IO for very simple IPC.

CJLA commented 3 years ago

Okay thank you, I will test this out.

anseki commented 3 years ago

I'm glad if I could help you. :smile: Could you close this issue if it was solved?

CJLA commented 3 years ago

Alright thanks!